Пример #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);
        }