Exemple #1
0
            public static void OnLoad()
            {
                PUtil.InitLibrary(false);
                StartLogging();

                DirectedCone = PLightShape.Register("SkyLib.LightShape.Cone", LightDefs.LightCone);
                Beam5        = PLightShape.Register("SkyLib.LightShape.Beam5", LightDefs.LinearLight5);
                SmoothCircle = PLightShape.Register("SkyLib.LightShape.Circle", LightDefs.LightCircle);
                OffsetCone   = PLightShape.Register("SkyLib.LightShape.OffsetCone", LightDefs.OffsetCone);
                FixedSemi    = PLightShape.Register("SkyLib.LightShape.FixedSemi", LightDefs.FixedLightSemicircle);
                Semicircle   = PLightShape.Register("SkyLib.LightShape.Semicircle", LightDefs.LightSemicircle);
                OffsetSemi   = PLightShape.Register("SkyLib.LightShape.OffsetSemi", LightDefs.OffsetSemicircle);
            }
        // misc bookkeeping
        public static void OnLoad()
        {
            StartLogging();

            AddDiseaseName(SlimeLethalSickness.ID, DUPLICANTS.DISEASES.SLIMESICKNESS.NAME +
                           " (lethal)");
            AddDiseaseName(SlimeCoughSickness.ID, DUPLICANTS.DISEASES.SLIMESICKNESS.NAME +
                           " (cough)");
            AddDiseaseName(FoodPoisonVomiting.ID, DUPLICANTS.DISEASES.FOODSICKNESS.NAME +
                           " (vomiting)");

            SkipNotifications.Skip(SlimeLethalSickness.ID);
            SkipNotifications.Skip(SlimeCoughSickness.ID);
            SkipNotifications.Skip(FoodPoisonVomiting.ID);

            ImaginationLoader.Init(typeof(DiseasesPatch));
            PUtil.RegisterPostload(CompatPatch.CompatPatches);
            BuildingsPatch.uvlight = PLightShape.Register("SkyLib.LightShape.FixedSemi",
                                                          BuildingsPatch.SemicircleLight);
        }