public override void DeSpawn() { base.DeSpawn(); if (Game.Mode == GameMode.MapPlaying) { ListerFilth.Notify_FilthDespawned(this); } }
public override void SpawnSetup() { base.SpawnSetup(); if (Game.Mode == GameMode.MapPlaying) { ListerFilth.Notify_FilthSpawned(this); } }
public override void MapComponentUpdate() { if (this.done) { return; } List <Area> allAreas = Verse.Find.AreaManager.AllAreas; if (!allAreas.Exists(( Area s ) => s.GetType() == typeof(Area_Cleaning))) { allAreas.Add(new Area_Cleaning()); } ListerFilth.RebuildAll(); Log.Message("LT-NC: Initialized NoCleaningPlease."); done = true; }