예제 #1
0
파일: Game.cs 프로젝트: otbr/OTSharp
 /// <summary>
 /// Remove a creature from the map
 /// </summary>
 /// <param name="player"></param>
 public static void RemoveCreature(Creature creature)
 {
     Creatures.Remove(creature);
     creature.StandingTile.RemoveCreature(creature);
     if (creature is Player)
     {
         Channels.RemovePlayerFromAllChannels((Player)creature);
         RuleViolations.CloseRuleViolationReport((Player)creature);
     }
 }
예제 #2
0
        private void parseCloseRuleViolation(NetworkMessage msg)
        {
            string reporter = msg.ReadString();
            Player player   = Game.getPlayer(reporter);

            if (player != null)
            {
                RuleViolations.CloseRuleViolationReport(player);
            }
        }