Esempio n. 1
0
        internal static void Postfix(Bloon __instance, Entity target, Model modelToUse)
        {
            NBloonEntity bloonEntity = new NBloonEntity(__instance);
            var          o           = new BloonEvents.CreatedEvent(bloonEntity); //Create CreatedEvent instance

            EventRegistry.instance.dispatchEvent(ref o);                          //Dispatch it
        }
Esempio n. 2
0
        public static void onCreated(BloonEvents.CreatedEvent e)
        {
            Logger.Log("Bloon created event");
            IBloon bloonType = e.getBloon().getType();

            if (bloonType is RedBloon)
            {
                RedBloon newType = (RedBloon)bloonType;
                Logger.Log("The bloon was a red bloon");
            }
        }