Пример #1
0
        public static BuffEffect Get(int type)
        {
            BuffEffect temp = null;

            buffs.TryGetValue(type, out temp);
            return(temp == null ? (buffs[-1]) : (temp));
        }
Пример #2
0
 public override void load(System.IO.BinaryReader Data)
 {
     this.type = Get(Data.ReadInt32());
     this.time = Data.ReadInt32();
 }
Пример #3
0
 public static void Register(BuffEffect buff)
 {
     buffs.Add(buff.TypeID, buff);
 }
 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);
 }