Example #1
0
 public override void SpawnSetup(Map map, bool respawningAfterLoad)
 {
     gases.Add(this);
     base.SpawnSetup(map, respawningAfterLoad);
     MapComponent_GasDanger.GetCachedComp(map).RegisterAt(this, Position);
     UpdateDanger(map);
 }
Example #2
0
        public override void DeSpawn(DestroyMode mode = DestroyMode.Vanish)
        {
            gases.Remove(this);
            var map = Map;

            MapComponent_GasDanger.GetCachedComp(map).Deregister(this, Position);
            base.DeSpawn(mode);
            UpdateDanger(map);
        }