示例#1
0
        private void Awake()
        {
            Ruins.LoadAll();
            Structural.InitMaterialLookup();

            On.ZNetScene.Awake             += ZNetSceneAwake;
            On.LocationProxy.SpawnLocation += OnSpawnLocation;
        }
示例#2
0
        private bool OnSpawnLocation(On.LocationProxy.orig_SpawnLocation orig, LocationProxy self)
        {
            bool result = orig(self);

            if (result)
            {
                Jotunn.Logger.LogInfo($"LocationProxy.SpawnLocation {self.m_instance.name} with {self.m_instance.transform.childCount} items");
                Structural.SettleIntegrity(self.m_instance);
            }
            return(result);
        }