Ejemplo n.º 1
0
        public static void UpdatePlayerPosition(Player player, int x, int y)
        {
            var fields = new string[2]
            {
                nameof(player.X),
                nameof(player.Y)
            };
            var values = new object[2]
            {
                x,
                y
            };

            RedisHash <Player> .Update(player, fields, values);
        }
Ejemplo n.º 2
0
        public static void UpdatePlayerPosition(string uid, int x, int y)
        {
            var fields = new string[2]
            {
                "X",
                "Y"
            };
            var values = new object[2]
            {
                x,
                y
            };

            RedisHash <StoredPlayer> .Update(uid, fields, values);
        }