示例#1
0
        public static CCharacterDescr CreateTestObject()
        {
            var descr = new CCharacterDescr("TestCharDescr");

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

            return(descr);
        }
示例#2
0
        public static CMoverDescr CreateTestObject()
        {
            var descr = new CMoverDescr();

            descr._move_angle                = 70;
            descr._exactly_forward           = 3;
            descr._ignor_pathfinder_distance = 50;

            return(descr);
        }
示例#3
0
        public void TestMethodAllDefaultClass()
        {
            ResetTestState();
            Console.WriteLine(MethodBase.GetCurrentMethod().Name);
            var v1 = CMoverDescr.CreateTestObject();

            string text = _serializer.SerializeToCascade(v1, this);

            Console.WriteLine(text);
            var v2 = _serializer.Deserialize <CMoverDescr>(text, this);

            CheckInternalErrors();
            Assert.AreEqual(v1, v2);
        }
示例#4
0
 public CCharacterDescr(string inName) : base(inName)
 {
     _default_prefab = string.Empty;
     _mover_descr    = new CMoverDescr();
     _brain_descr    = new CAIBrainDescr();
 }
示例#5
0
 public void Init()
 {
     _mover_descr = CMoverDescr.CreateTestObject();
 }
示例#6
0
 public CMoverDescrOwner()
 {
     _mover_descr = new CMoverDescr();
 }