Exemplo n.º 1
0
        private static IPing MapPingClientCommand(ClientCommandDto c)
        {
            var result = new PingClientSideEntity {
                Type = c.Type, Guid = c.Guid
            };

            return(result);
        }
Exemplo n.º 2
0
        private static IMovePlayerClientCommand MapMovePlayerClientCommand(ClientCommandDto c)
        {
            var result = new MovePlayerClientCommandClientSideEntity {
                Type = c.Type, Guid = c.Guid
            };

            result.ToX = c.ToX;
            result.ToY = c.ToY;
            return(result);
        }