示例#1
0
    public void Init(EventNotifier notifier, int msg, int code, bool isAll, object onFire)
    {
        if (onFire is OnFire)
        {
            this.onFire = (OnFire)onFire; fireType = enFire.onFire;
        }
        else if (onFire is OnFire1)
        {
            this.onFire1 = (OnFire1)onFire; fireType = enFire.onFire1;
        }
        else if (onFire is OnFire2)
        {
            this.onFire2 = (OnFire2)onFire; fireType = enFire.onFire2;
        }
        else if (onFire is OnFire3)
        {
            this.onFire3 = (OnFire3)onFire; fireType = enFire.onFire3;
        }
        else if (onFire is OnFireOb)
        {
            this.onFireOb = (OnFireOb)onFire; fireType = enFire.onFireOb;
        }
        else if (onFire is OnVote)
        {
            this.onVote = (OnVote)onFire; fireType = enFire.onVote;
        }


        this.notifier = notifier;
        this.msg      = msg;
        this.code     = code;
        this.isAll    = isAll;
        removeCounter = 0;
    }
示例#2
0
 public override void OnClear()
 {
     notifier = null;
     onFire   = null;
     onFire1  = null;
     onFire2  = null;
     onFire3  = null;
     onFireOb = null;
     onVote   = null;
 }