Ejemplo n.º 1
0
        public static void OnBirth(KotlAutomaton automaton, AutomatonStatue statue)
        {
            if (Statues == null)
            {
                Statues = new Dictionary <KotlAutomaton, AutomatonStatue>();
            }

            if (!Statues.ContainsKey(automaton))
            {
                Statues[automaton] = statue;
            }
        }
Ejemplo n.º 2
0
        public override bool OnBeforeDeath()
        {
            if (!Controlled)
            {
                if (Region.IsPartOf("KotlCity"))
                {
                    AutomatonStatue.OnDeath(this);
                }
            }

            return(base.OnBeforeDeath());
        }