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); }
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); }