Пример #1
0
 public static TDCGroupData Clone(TDCGroupData instance)
 {
     var tmp = new TDCGroupData ();
     tmp.ID = instance.ID;
     tmp.Name = instance.Name;
     tmp.Description = instance.Description;
     tmp.ModelPath = instance.ModelPath;
     tmp.GameType = instance.GameType;
     tmp.Radius = instance.Radius;
     tmp.MemberType = instance.MemberType;
     tmp.CurrentMember = instance.CurrentMember;
     tmp.MaxMember = instance.MaxMember;
     tmp.GroupType = instance.GroupType;
     tmp.GroupSpawnType = instance.GroupSpawnType;
     tmp.Icon = instance.Icon;
     tmp.TimeSpawnMember = instance.TimeSpawnMember;
     tmp.FSMPath = instance.FSMPath;
     tmp.CurrentHP = instance.CurrentHP;
     tmp.MaxHP = instance.MaxHP;
     tmp.Inventory = instance.Inventory;
     tmp.IsShine = instance.IsShine;
     return tmp;
 }
Пример #2
0
 public TDCGroup(TDCBaseController ctrl, TDCBaseData data)
     : base(ctrl, data)
 {
     m_Controller = ctrl as TDCBaseGroupController;
     m_Data = data as TDCGroupData;
 }
Пример #3
0
 public override void SetData(TDCBaseData data)
 {
     m_Data = data as TDCGroupData;
 }