Пример #1
0
 public void Add(Serial corpse, Serial obj, Direction dir, bool run)
 {
     if (!_corpses.ContainsKey(corpse))
     {
         _corpses[corpse] = new CorpseInfo(corpse, obj, dir, run);
     }
 }
Пример #2
0
        public void Add(uint corpse, uint obj, Direction dir, bool run)
        {
            for (int i = 0; i < _corpses.Count; i++)
            {
                ref CorpseInfo c = ref _corpses.GetAt(i);

                if (c.CorpseSerial == corpse)
                {
                    return;
                }
            }