public void OnDisasterStarted(DisasterAI dai, byte intensity) { foreach (EnhancedDisaster ed in container.AllDisasters) { if (ed.CheckDisasterAIType(dai)) { ed.OnDisasterStarted(intensity); return; } } }
private bool isDisasterCanBeStopped(DisasterAI ai) { return((ai as ThunderStormAI != null) || (ai as SinkholeAI != null) || (ai as TornadoAI != null) || (ai as EarthquakeAI != null) || (ai as MeteorStrikeAI != null)); }