public void Add(Serial corpse, Serial obj, Direction dir, bool run) { if (!_corpses.ContainsKey(corpse)) { _corpses[corpse] = new CorpseInfo(corpse, obj, dir, run); } }
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; } }