public static CCharacterDescr CreateTestObject() { var descr = new CCharacterDescr("TestCharDescr"); descr._mover_descr = CMoverDescr.CreateTestObject(); descr._brain_descr = CAIBrainDescr.CreateTestObject(); return(descr); }
public static CMoverDescr CreateTestObject() { var descr = new CMoverDescr(); descr._move_angle = 70; descr._exactly_forward = 3; descr._ignor_pathfinder_distance = 50; return(descr); }
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); }
public CCharacterDescr(string inName) : base(inName) { _default_prefab = string.Empty; _mover_descr = new CMoverDescr(); _brain_descr = new CAIBrainDescr(); }
public void Init() { _mover_descr = CMoverDescr.CreateTestObject(); }
public CMoverDescrOwner() { _mover_descr = new CMoverDescr(); }