public static BuffEffect Get(int type) { BuffEffect temp = null; buffs.TryGetValue(type, out temp); return(temp == null ? (buffs[-1]) : (temp)); }
public override void load(System.IO.BinaryReader Data) { this.type = Get(Data.ReadInt32()); this.time = Data.ReadInt32(); }
public static void Register(BuffEffect buff) { buffs.Add(buff.TypeID, buff); }
public static void Register(BuffEffect buff) { buffs.Add(buff.typeID, buff); }