public override void SpawnSetup(Map map, bool respawningAfterLoad) { gases.Add(this); base.SpawnSetup(map, respawningAfterLoad); MapComponent_GasDanger.GetCachedComp(map).RegisterAt(this, Position); UpdateDanger(map); }
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); }