Beispiel #1
0
 public Stunt(InitiativeEffect effect, string name = "", string description = "")
 {
     if (effect == null)
     {
         throw new ArgumentNullException(nameof(effect));
     }
     if (effect.Belong != null)
     {
         throw new ArgumentException("This item has already been bound.", nameof(effect));
     }
     _initiativeEffect = effect;
     effect.SetBelong(this);
     _name              = name ?? throw new ArgumentNullException(nameof(name));
     _description       = description ?? throw new ArgumentNullException(nameof(description));
     _battleMapProperty = SkillBattleMapProperty.INIT;
     _passiveEffects    = new StuntPropertyList <PassiveEffect>(this);
     _apiObj            = new JSAPI(this);
 }
Beispiel #2
0
 public JSAPI(StuntPropertyList <T> outer) : base(outer)
 {
     _outer = outer;
 }