Пример #1
0
 public virtual void Reset(int BuffID, Entity owner, Entity caster)
 {
     buffInfo        = CSVManager.GetBuffCfg(BuffID);
     this.buffOwner  = owner;
     this.buffCaster = caster;
     leftTime        = 0;
 }
Пример #2
0
    public static CSVBuff GetBuffCfg(int ID)
    {
        CSVBuff data = null;

        m_BuffData.TryGetValue(ID, out data);
        return(data);
    }
Пример #3
0
 public BuffBase(int buffID, Entity buffOwner, Entity caster)
 {
     buffInfo = CSVManager.GetBuffCfg(buffID);
     if (buffInfo == null)
     {
         throw new Exception("找不到buff配置 : " + buffID);
     }
     this.buffOwner  = buffOwner;
     this.buffCaster = caster;
 }