コード例 #1
0
        public static BuffEffect Get(int type)
        {
            BuffEffect temp = null;

            buffs.TryGetValue(type, out temp);
            return(temp == null ? (buffs[-1]) : (temp));
        }
コード例 #2
0
ファイル: Buff.cs プロジェクト: AdamSavard/Adamrraria
 public override void load(System.IO.BinaryReader Data)
 {
     this.type = Get(Data.ReadInt32());
     this.time = Data.ReadInt32();
 }
コード例 #3
0
ファイル: Buff.cs プロジェクト: AdamSavard/Adamrraria
 public static void Register(BuffEffect buff)
 {
     buffs.Add(buff.TypeID, buff);
 }
コード例 #4
0
 public override void load(System.IO.BinaryReader Data)
 {
     this.type = Get(Data.ReadInt32());
     this.time = Data.ReadInt32();
 }
コード例 #5
0
 public static void Register(BuffEffect buff)
 {
     buffs.Add(buff.typeID, buff);
 }