Exemplo n.º 1
0
 void _Packet(ScRoleEffectList p)
 {
     if (p.effectList != null && p.effectList.Length > 0)
     {
         PEffect exp = null;
         isHaveExpCard = true;
         p.effectList[0].CopyTo(ref exp);
         DispatchModuleEvent(EventHaveExpBuffList, exp);
     }
     else
     {
         isHaveExpCard = false;
         DispatchModuleEvent(EventNoExpBuffList);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor of the grammar node.
 /// </summary>
 /// <param name="p">Parent master grammar.</param>
 /// <param name="bForm">Block form.</param>
 public PEffectT(MasterGrammar p, BForm bForm) : base(p, bForm)
 {
     Rule = PEffect.ConstructPEffectRule(p, bForm, new ValueOrTermT(p), new NumericExprDa(p));
 }