public static elementGame FromDatos(Datos.Game gamer) { return(new elementGame() { Id = gamer.Id, x = (float)gamer.positionX, y = (float)gamer.positionY }); }
private static void MapToDatos(elementGame origen, ref Datos.Game destino) { destino.Id = origen.Id; destino.positionY = origen.y; }