Пример #1
0
        private static void onStrawberryConstructor(On.Celeste.Strawberry.orig_ctor orig, Strawberry self, EntityData data, Vector2 offset, EntityID gid)
        {
            orig(self, data, offset, gid);

            // save the value for SpringCollab2020_ignoreLighting to the DynData for the strawberry.
            new DynData <Strawberry>(self)["SpringCollab2020_ignoreLighting"] = data.Bool("SpringCollab2020_ignoreLighting");
        }
Пример #2
0
        // ================ Temple eye handling ================

        private static void modTempleEyeConstructor(On.Celeste.TempleEye.orig_ctor orig, TempleEye self, EntityData data, Vector2 offset)
        {
            orig(self, data, offset);
            new DynData <TempleEye>(self)["followMadeline"] = data.Bool("followMadeline");
        }