2017-03-31 18:36:24 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 01.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYERCHARGEN_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERCHARGEN_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
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());
|
|
|
|
|
2018-04-19 10:25:29 +00:00
|
|
|
if (player.charGenState.currentStage == player.charGenState.endStage)
|
2017-03-31 18:36:24 +00:00
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerEndCharGen")>(player.getId());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERCHARGEN_HPP
|