forked from mirror/openmw-tes3mp
32 lines
660 B
C++
32 lines
660 B
C++
|
//
|
||
|
// Created by koncord on 16.04.17.
|
||
|
//
|
||
|
|
||
|
#ifndef OPENMW_PROCESSORUSERMYID_HPP
|
||
|
#define OPENMW_PROCESSORUSERMYID_HPP
|
||
|
|
||
|
|
||
|
#include "apps/openmw/mwmp/PlayerProcessor.hpp"
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class ProcessorUserMyID : public PlayerProcessor
|
||
|
{
|
||
|
public:
|
||
|
ProcessorUserMyID()
|
||
|
{
|
||
|
BPP_INIT(ID_USER_MYID)
|
||
|
avoidReading = true;
|
||
|
}
|
||
|
|
||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||
|
{
|
||
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_USER_MYID from server");
|
||
|
myGuid = guid;
|
||
|
getLocalPlayer()->guid = guid;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORUSERMYID_HPP
|