コード例 #1
0
        public void InsertKill(PlayerMobile player, Mobile killed)
        {
            foreach (PlayerKills playerKills in this.playerKillsList)
            {
                if (playerKills.player.Serial == player.Serial)
                {
                    playerKills.playerKillList.Add(killed);
                    return;
                }
            }

            // Se chegou aqui ainda nao tem na lista
            PlayerKills playerKill = new PlayerKills();
            playerKill.player = player;
            playerKill.playerKillList.Add(killed);

            this.playerKillsList.Add(playerKill);
        }
コード例 #2
0
        public void InsertKill(PlayerMobile player, Mobile killed)
        {
            foreach (PlayerKills playerKills in this.playerKillsList)
            {
                if (playerKills.player.Serial == player.Serial)
                {
                    playerKills.playerKillList.Add(killed);
                    return;
                }
            }

            // Se chegou aqui ainda nao tem na lista
            PlayerKills playerKill = new PlayerKills();

            playerKill.player = player;
            playerKill.playerKillList.Add(killed);

            this.playerKillsList.Add(playerKill);
        }