mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 09:19:58 +00:00
31 lines
660 B
C++
31 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
|