Пример #1
0
        public static void HandleLoginPositionRequest(int index, string playerID)
        {
            Point position = CommonMongo.GetEntityCoordinates(playerID);

            ServerTCP.InitializeClient(index, position.X, position.Y, playerID);
            ServerOutput.Compose(Outbound.PCLoginPositionRequest, index, position);
            ServerTCP.clients[index].MovePosition(position.X, position.Y);
            CommonMongo.SetEntityCoodinates(position.X, position.Y, ServerTCP.clients[index].properties.ID);
        }
Пример #2
0
 public static void HandlePlayerCharacterMovedPosition(int index, int x, int y)
 {
     ServerTCP.clients[index].MovePosition(x, y);
     CommonMongo.SetEntityCoodinates(x, y, ServerTCP.clients[index].properties.ID);
 }