Example #1
0
        internal static CAIBrainDescr CreateTestObject()
        {
            var descr = new CAIBrainDescr();

            descr._person_names         = new string[] { "PersonName1", "PersonName2" };
            descr._start_invisible      = true;
            descr._stringGroupOverrides = new CStringGroupDescr[]
            {
                new CStringGroupDescr("SGO1", new string[] { "sgo_text1", "sgo_text2" }),
                new CStringGroupDescr("SGO2", new string[] { "sgo_text3", "sgo_text4" })
            };
            descr.Conditions = new CAIBehaviorConditionDescr[]
            {
                CAIBehaviorConditionDescr.CreateTestObject()
            };
            descr.BehaviorDescrs = new CAIBehaviorDescr[]
            {
                CAIBehaviorDescr.CreateTestObject("behav1"),
                CAIBehaviorDescr.CreateTestObject("behav2"),
            };

            descr._oncrash_actionDescrs = new List <CAIActionDescrs>()
            {
                CAIActionDescrs.CreateTestObject()
            };
            descr._loc_keys = new CAILocKeys(new EBehaviourReportParam[] { EBehaviourReportParam.CurrentBehaviourActiveTime, EBehaviourReportParam.CurrentWorldTime });
            descr._states   = new CAIBehaviorStateDescr[]
            {
                CAIBehaviorStateDescr.CreateTestObject("state1"),
                CAIBehaviorStateDescr.CreateTestObject("state2"),
            };

            return(descr);
        }
Example #2
0
        public static CCharacterDescr CreateTestObject()
        {
            var descr = new CCharacterDescr("TestCharDescr");

            descr._mover_descr = CMoverDescr.CreateTestObject();
            descr._brain_descr = CAIBrainDescr.CreateTestObject();

            return(descr);
        }
Example #3
0
 public CCharacterDescr(string inName) : base(inName)
 {
     _default_prefab = string.Empty;
     _mover_descr    = new CMoverDescr();
     _brain_descr    = new CAIBrainDescr();
 }