Beispiel #1
0
        public override void OnChangeAI(ChangeAICmd cmd)
        {
            int    intParameter    = cmd.args.get_intParameter();
            string stringParameter = cmd.args.get_stringParameter();
            float  floatParameter  = cmd.args.get_floatParameter();

            using (Dictionary <long, EntityParent> .Enumerator enumerator = (this.GetEntity() as EntityMonster).AllParts.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    KeyValuePair <long, EntityParent> current = enumerator.get_Current();
                    if (current.get_Value() != null)
                    {
                        if (current.get_Value().TypeID == intParameter)
                        {
                            current.get_Value().GetAIManager().Deactive();
                            current.get_Value().GetAIManager().AIType        = stringParameter;
                            current.get_Value().GetAIManager().ThinkInterval = (int)floatParameter;
                            current.get_Value().GetAIManager().Active();
                        }
                    }
                }
            }
        }
Beispiel #2
0
 public virtual void OnChangeAI(ChangeAICmd cmd)
 {
 }