示例#1
0
        bool HandleMapObjectDeletion(ReceptionPacket rcvData)
        {
            int guid = rcvData.ReadGuid();

            CurrentMap.RemoveObject(guid);

            Log.Cldebug(guid, "Removed oject", System.ConsoleColor.Cyan);

            return true;
        }
示例#2
0
        bool HandleObjectMove(ReceptionPacket rcvData)
        {
            DynamicWorldObject dObj = CurrentMap.GetObject(rcvData.ReadGuid());

            dObj.MoveTo(rcvData.ReadVector2());
            dObj.Direction = rcvData.ReadDirection();
              //  dObj.ResetDirectionStates(rcvData.ReadDirectionStates()); TODO : fix it

            Log.Cldebug(dObj.Guid, "Moved oject", System.ConsoleColor.Cyan);

            return true;
        }
示例#3
0
        bool HandleLoginValidation(ReceptionPacket data)
        {
            Guid = data.ReadGuid();

            Log.Cldebug("Logged as " + GetLogin() + " with Guid " + Guid.ToString(), ConsoleColor.Green);

            SendingPacket sndData = new SendingPacket(PacketType.CLIENT_REQUEST_MAP_LOADING);
            SendPacket(sndData);

            return true;
        }