DarkEmu_GameServer.Systems.MonsterCheck C# (CSharp) Метод

MonsterCheck() публичный Метод

public MonsterCheck ( int id ) : bool
id int
Результат bool
        public bool MonsterCheck(int id)
        {
            try
            {
                if (Character.Action.MonsterID != null)
                    for (int i = 0; i < Character.Action.MonsterID.Count; i++)
                    {
                        if (Character.Action.MonsterID != null && Character.Action.MonsterID[i] != 0 && Character.Action.MonsterID[i] == id) return true;
                    }
            }
            catch (Exception ex)
            {
                Systems.Debugger.Write(ex);
            }
            return false;
        }
Systems