Beispiel #1
0
        public static void Install()
        {
            // Only do this after we're sure that Building_Shield is a thing.
            CanFunctionPropertyGetter = typeof(Building_Shield)?.GetProperty("CanFunction", BindingFlags.Instance | BindingFlags.NonPublic)?.GetGetMethod(nonPublic: true);

            BlockerRegistry.RegisterCheckForCollisionCallback(CheckCollision);
            BlockerRegistry.RegisterImpactSomethingCallback(ImpactSomething);
        }
Beispiel #2
0
        public static void Install()
        {
            BlockerRegistry.RegisterCheckForCollisionCallback(EDShields.CheckForCollisionCallback);
            BlockerRegistry.RegisterImpactSomethingCallback(EDShields.ImpactSomethingCallback);
            Type t = Type.GetType("Jaxxa.EnhancedDevelopment.Shields.Shields.ShieldManagerMapComp, ED-Shields");

            HitSoundDef = (SoundDef)t.GetField("HitSoundDef", BindingFlags.Static | BindingFlags.Public).GetValue(null);
        }
Beispiel #3
0
 public static void Install()
 {
     BlockerRegistry.RegisterCheckForCollisionCallback(EDShields.CheckForCollisionCallback);
     BlockerRegistry.RegisterImpactSomethingCallback(EDShields.ImpactSomethingCallback);
 }