コード例 #1
0
 public Item(string name, string desc, int cost, int initialQuantity, ItemType type, Rarity rarity, Action onUse)
 {
     Name          = name;
     Description   = desc;
     Cost          = cost;
     Rarity        = rarity;
     Quantity      = initialQuantity;
     Type          = type;
     OnUse         = onUse;
     CanBuy        = true;
     CoolDownTimer = new CoolDown(0);
 }
コード例 #2
0
ファイル: Skill.cs プロジェクト: jonnelfernandez/GTARPG
 public Skill(string name, string desc, int pointsToUnlock)
 {
     Name = name;
     Description = desc;
     PointsToUnlock = pointsToUnlock;
     Unlocked = false;
     CoolDownTimer = new CoolDown(1000);
     Parameters = new Dictionary<string, object>();
     VisibleParameters = new Dictionary<string, Func<Skill, string>>();
     UsedMods = new List<string>();
     Mods = new Dictionary<string, int>();
 }
コード例 #3
0
ファイル: Item.cs プロジェクト: jonnelfernandez/GTARPG
 public Item(string name, string desc,int cost, int initialQuantity, ItemType type, Rarity rarity, Action onUse)
 {
     Name = name;
     Description = desc;
     Cost = cost;
     Rarity = rarity;
     Quantity = initialQuantity;
     Type = type;
     OnUse = onUse;
     CanBuy = true;
     CoolDownTimer = new CoolDown(0);
 }
コード例 #4
0
ファイル: Skill.cs プロジェクト: tuita520/GTARPG
 public Skill(string name, string desc, int pointsToUnlock)
 {
     Name              = name;
     Description       = desc;
     PointsToUnlock    = pointsToUnlock;
     Unlocked          = false;
     CoolDownTimer     = new CoolDown(1000);
     Parameters        = new Dictionary <string, object>();
     VisibleParameters = new Dictionary <string, Func <Skill, string> >();
     UsedMods          = new List <string>();
     Mods              = new Dictionary <string, int>();
 }