예제 #1
0
 public Buff_Dot(
     int id,
     CharacterBase from,
     CharacterBase to,
     int time,
     float value,
     int interval)
 {
     this.id         = id;
     this.type       = "dot";
     this.caster     = from;
     this.owner      = to;
     this.time       = time;
     this.start_time = time;
     this.value      = value;
     this.interval   = interval;
     trigger_event   = new Effect_Damage(from, to, value).cast;
 }
예제 #2
0
    /*
     *获取触发文字队列
     */
    public Queue <triggerEvent> getTrigger()
    {
        string result = sr2.ReadToEnd();

        string[] group = result.Split('=');
        for (int i = 0; i < group.Length - 1; i++)
        {
            //Debug.Log(group[i]);
            string[]     data = group[i].Split('#');
            triggerEvent te   = new triggerEvent();
            te.setId(int.Parse(data[0]));
            te.setWord(data[1]);
            te.setWork(float.Parse(data[2]));
            te.setFamily(float.Parse(data[3]));
            te.setStatus(float.Parse(data[4]));

            trigger.Enqueue(te);
        }

        sr2.Close();
        return(trigger);
    }