public FreeToEach2(CardEng eng, master m1) : base(eng, m1) { CardOutput = new Transaction(1, 1, 1, 1); cardName = "FreeToEach2"; Master = m1; mySprite = CheckForMissingArt(basicFactoryPath + cardName); }
public ActionResult login(master au) { string user = au.username; string pass = au.password; using (db) { string status; var use = (from s in db.masters where s.username == user && s.password == pass select s).FirstOrDefault(); if (use != null) { Session["username"] = use.username.ToString(); status = "1"; } else { status = "3"; } return(new JsonResult { Data = new { status = status } }); } }
public YellowToCoin2(CardEng eng, master m1) : base(eng, m1) { cardName = "YellowToCoin2"; CardCost = new Transaction(0, 0, 2, 0); CardOutput = new Transaction(0, 0, 0, 2); mySprite = CheckForMissingArt(basicFactoryPath + cardName); }
public YellowToUpgrade1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(0, 0, 1, 0); cardName = "YellowToUpgrade1"; mySprite = CheckForMissingArt(basicFactoryPath + cardName); CanUpgrade = true; }
public FreeToBlue2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(); CardOutput = new Transaction(0, 2, 0, 0); cardName = "FreeBlue2"; mySprite = CheckForMissingArt(LevelOneFactoryPath + cardName); }
public RedToBlue4(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(4, 0, 0, 0); CardOutput = new Transaction(0, 7, 0, 0); cardName = "RedToBlue4"; mySprite = CheckForMissingArt(LevelOneFactoryPath + cardName); }
public BlueToFactory2(CardEng eng, master m1) : base(eng, m1) { cardName = "BlueToFactory2"; CardCost = new Transaction(0, 1, 0, 0); mySprite = CheckForMissingArt(basicFactoryPath + cardName); CanUpgrade = true; }
public BlueToYellow2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(0, 1, 0, 0); CardCost = new Transaction(0, 0, 3, 0); cardName = "BlueToYellow2"; mySprite = CheckForMissingArt(basicFactoryPath + cardName); }
public BlueToRed2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(0, 2, 0, 0); CardCost = new Transaction(3, 0, 0, 0); cardName = "BlueToRed2"; mySprite = Resources.Load <Sprite>(LevelOneFactoryPath + cardName); }
public RedToBlue2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(1, 0, 0, 0); CardOutput = new Transaction(0, 2, 0, 0); cardName = "redToBlue2"; mySprite = Resources.Load <Sprite>(basicFactoryPath + cardName); }
public YellowResource(CardEng eng, master m1) : base(eng, m1) { cardName = "Yellow"; mySprite = Resources.Load <Sprite>(optionPath + cardName); CanUpgrade = false; FactoryCost = m1.yellowCost1; myCurrency = Currency.yellow; }
public static List <Card> Options(CardEng cardEng, master master) { List <Card> options = new List <Card>(); options.Add(new TrashOption(cardEng, master)); options.Add(new UpgradeOption(cardEng, master)); return(options); }
public YellowToBlue1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(0, 0, 1, 0); CardOutput = new Transaction(0, 1, 0, 0); cardName = "YellowToBlue1"; mySprite = Resources.Load <Sprite>(LevelOneFactoryPath + cardName); CanUpgrade = true; }
public BlueToRed1(CardEng eng, master m1) : base(eng, m1) { cardName = "BlueToRed1"; CardCost = new Transaction(0, 1, 0, 0); CardOutput = new Transaction(1, 0, 0, 0); mySprite = Resources.Load <Sprite>(LevelOneFactoryPath + cardName); CanUpgrade = true; }
public BlueResource(CardEng eng, master m1) : base(eng, m1) { cardName = "Blue"; mySprite = Resources.Load <Sprite>(optionPath + cardName); CanUpgrade = true; FactoryCost = m1.blueCost1; myCurrency = Currency.blue; }
public RedToBlue3(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(3, 0, 0, 0); CardOutput = new Transaction(0, 5, 0, 0); cardName = "RedToBlue3"; mySprite = CheckForMissingArt(LevelOneFactoryPath + cardName); CanUpgrade = true; }
public RedResource(CardEng eng, master m1) : base(eng, m1) { cardName = "Red"; mySprite = Resources.Load <Sprite>(optionPath + cardName); CanUpgrade = false; FactoryCost = m1.redCost1; myCurrency = Currency.red; }
public RBYToCoin1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(2, 2, 2, 0); CardOutput = new Transaction(0, 0, 0, 4); cardName = "RBYToCoin1"; mySprite = CheckForMissingArt(basicFactoryPath + cardName); CanUpgrade = true; }
public RBYToCoin2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(1, 1, 2, 0); CardCost = new Transaction(0, 0, 0, 4); cardName = "RBYToCoin2"; Master = m1; mySprite = CheckForMissingArt(basicFactoryPath + cardName); }
public CoinResource(CardEng eng, master m1) : base(eng, m1) { cardName = "Coin"; mySprite = Resources.Load <Sprite>(optionPath + cardName); CanUpgrade = false; FactoryCost = m1.coinCost1; myCurrency = Currency.coin; }
public FreeToYellow1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(); CardOutput = new Transaction(0, 0, 1, 0); cardName = "FreeYellow1"; mySprite = CheckForMissingArt(LevelOneFactoryPath + cardName); CanUpgrade = true; }
public CoinToEach2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(0, 0, 0, 1); CardOutput = new Transaction(2, 1, 1, 0); cardName = "CoinToEach2"; mySprite = Resources.Load <Sprite>(LevelOneFactoryPath + cardName); CanUpgrade = false; }
public RedToYellow2(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(1, 0, 0, 0); CardOutput = new Transaction(0, 0, 1, 0); cardName = "RedToYellow2"; mySprite = Resources.Load <Sprite>(LevelOneFactoryPath + cardName); CanUpgrade = false; }
//costs public RedToBlueFactory1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(1, 0, 0, 0); CardOutput = new Transaction(0, 2, 0, 0); cardName = "redToBlue1"; mySprite = CheckForMissingArt(basicFactoryPath + cardName); CanUpgrade = true; }
public BlueToYellow1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(0, 1, 0, 0); CardOutput = new Transaction(0, 0, 2, 0); cardName = "BlueToYellow1"; Master = m1; mySprite = CheckForMissingArt(basicFactoryPath + cardName); CanUpgrade = true; }
public FreeToEach1(CardEng eng, master m1) : base(eng, m1) { CardCost = new Transaction(); CardOutput = new Transaction(1, 1, 1, 0); cardName = "FreeToEach1"; Master = m1; mySprite = CheckForMissingArt(basicFactoryPath + cardName); CanUpgrade = true; }
public ActionResult Learnmore(string[] id) { master s = new master(); s.accessibility = dbContext.Accessibilityy.Find(id); s.Amenities = dbContext.Amenity.Find(id); s.campsites = dbContext.Campsite.Find(id); s.data = dbContext.RootObject.Find(id); return(View(s)); }
public static List <Card> ResorceCards(CardEng cardEng, master master) { List <Card> cards = new List <Card>(); cards.Add(new RedResource(cardEng, master)); cards.Add(new BlueResource(cardEng, master)); cards.Add(new YellowResource(cardEng, master)); cards.Add(new CoinResource(cardEng, master)); return(cards); }
public static List <Card> Level1ShopCards(CardEng cardEng, master master) { List <Card> cards = new List <Card>(); cards.Add(new BlueToRed1(cardEng, master)); cards.Add(new RedToYellow1(cardEng, master)); cards.Add(new YellowToBlue1(cardEng, master)); cards.Add(new RedToBlue3(cardEng, master)); cards.Add(new BlueToYellow3(cardEng, master)); return(cards); }
public static List <Card> Level1LockCards(CardEng cardEng, master master) { List <Card> cards = new List <Card>(); cards.Add(new FreeToRed2(cardEng, master)); cards.Add(new FreeToBlue1(cardEng, master)); cards.Add(new FreeToYellow1(cardEng, master)); cards.Add(new CoinToEach1(cardEng, master)); cards.Add(new RBToCoin1(cardEng, master)); return(cards); }
internal abstract void GetCoderInfo(out master._7zip.Legacy.CMethodId id, out byte[] settings);
internal override void GetCoderInfo(out master._7zip.Legacy.CMethodId id, out byte[] settings) { var stream = new MemoryStream(); var writer = new BinaryWriter(stream); writer.Write((byte)(mNumCyclesPower | ((mSalt.Length == 0 ? 0 : 1) << 7) | ((mSeed.Length == 0 ? 0 : 1) << 6))); if (mSalt.Length > 0 || mSeed.Length > 0) { var saltSize = mSalt.Length == 0 ? 0 : mSalt.Length - 1; var seedSize = mSeed.Length == 0 ? 0 : mSeed.Length - 1; writer.Write((byte)((saltSize << 4) | seedSize)); } if (mSalt.Length > 0) writer.Write(mSalt); if (mSeed.Length > 0) writer.Write(mSeed); settings = stream.ToArray(); id = master._7zip.Legacy.CMethodId.kAES; }