public Ability(string modelPath, string name, string suffix, int id) { Struct = new AbilityStruct(name, suffix); Name = name; Suffix = suffix; if (0 == id) { Id = ObjectId.GenerateAbilityId(); Model = new AbilityModel(TLVCustom, modelPath, null, Id); } else { Id = id; ObjectId.AddAbilityId(id); Model = new AbilityModel(TLVStandard, modelPath, null, Id); } CodeId = Id.ToObjectId(); //if (!AbilityMasterList.Exists(x => x.Path == itemPath)) // Model = new AbilityModel(this, tlvAbilityPath, null, 0) != null; //Id = id; //Model = item; Missile = new Missile(null); MasterList.Add(this); }
public Missile(AbilityStruct abilityStruct) { Struct = abilityStruct; /*Basics = new List<object>() * { * Count, * Damage, * Period, * Duration, * Arc, * Speed, * Collision, * CastDist, * Variation, * }; * * Effects = new List<object>() * { * Model, * OnHit, * OnDestroy, * };*/ }