Exemple #1
0
 public void setBattleMapProperty(SkillBattleMapProperty val)
 {
     try {
         _outer.BattleMapProperty = val;
     } catch (Exception e) {
         JSEngineManager.Engine.Log(e.Message);
     }
 }
Exemple #2
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);
 }