Exemple #1
0
        public override void DeSpawn(DestroyMode mode = DestroyMode.Vanish)
        {
            var map = Map;

            base.DeSpawn(mode);
            if (map == null)
            {
                Log.Message("Lost map");
            }
            RegisterUtility.OnBuildingDespawned(this, map);
        }
 internal static void Postfix(Building building, AvoidGrid __instance)
 {
     RegisterUtility.OnBuildingDespawned(building, __instance.map);
 }