Exemplo n.º 1
0
 public UpgradeInfo(long price, string name, string description, Action upgrade_action,delegate_bool unlock_require)
 {
     Price = price;
     Name = name;
     Description = description;
     UpgradeAction = upgrade_action;
     UnlockRequire = unlock_require;
 }
Exemplo n.º 2
0
 public GroceryItem(int index, string text, Station parent, Bitmap image, string description, Keys key, int price, int owned, delegate_bool action)
     : base(index, text, parent, new Rectangle(LAYOUT_RECT.X, LAYOUT_RECT.Y + index * BLOCK_SIZE.Height, LAYOUT_RECT.Width, BLOCK_SIZE.Height), image, GroceryItem.LAYOUT_RECT)
 {
     if (image.Size != BLOCK_SIZE) throw new ArgumentException("Size of IMAGE must be {100,100}");
     image.Make_TrueOrFalse();
     DESCRIPTION = description;
     KEY_TO_USE = key;
     PublicVariables.Add_Key(key);
     _PRICE = price;
     OWNED = owned;
     USE_ACTION = action;
     this.Click += GroceryItem_Click;
 }