Пример #1
0
 public Extra(Character item)
 {
     if (item == null)
     {
         throw new ArgumentNullException(nameof(item));
     }
     if (item.Belong != null)
     {
         throw new ArgumentException("This item has already been bound.", nameof(item));
     }
     _item = item;
     item.SetBelong(this);
     _passiveEffects = new ExtraPropertyList <PassiveEffect>(this);
     _apiObj         = new JSAPI(this);
 }
Пример #2
0
 public JSAPI(ExtraPropertyList <T> outer) : base(outer)
 {
     _outer = outer;
 }