mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 23:19:56 +00:00
34 lines
751 B
C++
34 lines
751 B
C++
//
|
|
// Created by koncord on 01.04.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYERCHARGEN_HPP
|
|
#define OPENMW_PROCESSORPLAYERCHARGEN_HPP
|
|
|
|
|
|
#include "apps/openmw-mp/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.charGenStage.current == player.charGenStage.end && player.charGenStage.current != 0)
|
|
Script::Call<Script::CallbackIdentity("OnPlayerEndCharGen")>(player.getId());
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERCHARGEN_HPP
|