示例#1
0
 protected override void EmitEffect(Effect effect)
 {
     if (effect is CallEffect)
     {
         var call = (CallEffect)effect;
         Writer.AppendLine("this." + call.MethodName + "();");
     }
     else if (effect is SendEffect)
     {
         var send = (SendEffect)effect;
         Writer.AppendLine("this.PostEvent(" + Parameters.EventTypeName + "." + send.Event.Name + ");");
     }
     else
     {
         throw new NotImplementedException("effect [" + effect + "] is not supported.");
     }
 }
示例#2
0
文件: Rule.cs 项目: thomas13335/smg
 public void AddEffect(Effect effect)
 {
     Effects.Add(effect);
 }
示例#3
0
 protected virtual void EmitEffect(Effect effect)
 {
 }