An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef OPENMW_PROCESSORPLAYERCHARGEN_HPP
#define OPENMW_PROCESSORPLAYERCHARGEN_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerCharGen : public PlayerProcessor
{
public:
ProcessorPlayerCharGen()
{
BPP_INIT(ID_PLAYER_CHARGEN)
}
void Do(PlayerPacket &packet, Player &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
if (player.charGenState.currentStage == player.charGenState.endStage)
Script::Call<Script::CallbackIdentity("OnPlayerEndCharGen")>(player.getId());
}
};
}
#endif //OPENMW_PROCESSORPLAYERCHARGEN_HPP