當前位置: 首頁>>代碼示例>>C#>>正文


C# BeverageType類代碼示例

本文整理匯總了C#中BeverageType的典型用法代碼示例。如果您正苦於以下問題:C# BeverageType類的具體用法?C# BeverageType怎麽用?C# BeverageType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BeverageType類屬於命名空間,在下文中一共展示了BeverageType類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GobletOfCelebration

 public GobletOfCelebration( BeverageType type )
     : base(type)
 {
     LootType = LootType.Blessed;
     Weight = 1.0;
     Hue = 1158;
 }
開發者ID:Ziden,項目名稱:ServUO-EC-Test-Fork,代碼行數:7,代碼來源:GobletOfCelebration.cs

示例2: MurkyMilk

		public MurkyMilk( BeverageType type )
			: base( type )
		{
			Name = "Murky Milk";
			Weight = 1.0;
			Hue = 2306;
			LootType = LootType.Blessed;
		}
開發者ID:greeduomacro,項目名稱:xrunuo,代碼行數:8,代碼來源:MurkyMilk.cs

示例3: BeverageBuyInfo

		public BeverageBuyInfo( string name, Type type, BeverageType content, int price, int amount, int itemID, int hue ) : base( name, type, price, amount, itemID, hue )
		{
			m_Content = content;

			if ( type == typeof( Pitcher ) )
				Name = (1048128 + (int)content).ToString();
			else if ( type == typeof( BeverageBottle ) )
				Name = (1042959 + (int)content).ToString();
			else if ( type == typeof( Jug ) )
				Name = (1042965 + (int)content).ToString();
		}
開發者ID:Godkong,項目名稱:Origins,代碼行數:11,代碼來源:BeverageBuy.cs

示例4: GetCoffee

        /// <summary>
        /// Get Coffee given the Beverage Type
        /// Is Factory Method
        /// </summary>
        /// <param name="beverageType"></param>
        /// <returns></returns>
        public IBeverage GetCoffee(BeverageType beverageType)
        {
            IBeverage coffee = null;

            switch (beverageType)
            {
                case BeverageType.HouseBlend:
                    coffee = new SpecialHouseBlend();
                    break;

                case BeverageType.Roast:
                    coffee = new AmazonRoast();
                    break;
            }

            return coffee;
        }
開發者ID:RookieOne,項目名稱:Patterns,代碼行數:23,代碼來源:ExoticFactory.cs

示例5: GetCoffee

        public IBeverage GetCoffee(StoreType storeType, BeverageType beverageType)
        {
            IBeverage coffee = null;

            switch(storeType)
            {
                case StoreType.RegularStore :

                    switch (beverageType)
                    {
                        case BeverageType.HouseBlend:
                            coffee = new HouseBlend();
                            break;

                        case BeverageType.Roast:
                            coffee = new DarkRoast();
                            break;
                    }
                    break;

                case StoreType.ExoticStore:

                    switch (beverageType)
                    {
                        case BeverageType.HouseBlend:
                            coffee = new SpecialHouseBlend();
                            break;

                        case BeverageType.Roast:
                            coffee = new AmazonRoast();
                            break;
                    }
                    break;
            }

            return coffee;
        }
開發者ID:RookieOne,項目名稱:Patterns,代碼行數:37,代碼來源:CoffeeStore.cs

示例6: FillableBvrge

 public FillableBvrge(int weight, Type type, BeverageType content)
     : base(weight, type)
 {
     this.m_Content = content;
 }
開發者ID:Ziden,項目名稱:ServUO-EC-Test-Fork,代碼行數:5,代碼來源:FillableContainers.cs

示例7: BeverageBottle

		public BeverageBottle( BeverageType type ) : base( type )
		{
			Weight = 1.0;
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:4,代碼來源:Beverage.cs

示例8: GlassMug

		public GlassMug( BeverageType type ) : base( type )
		{
			Weight = 1.0;
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:4,代碼來源:Beverage.cs

示例9: PewterMug

		public PewterMug( BeverageType type ) : base( type )
		{
			Weight = 1.0;
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:4,代碼來源:Beverage.cs

示例10: Jug

		public Jug( BeverageType type ) : base( type )
		{
			Weight = 1.0;
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:4,代碼來源:Beverage.cs

示例11: BaseBeverage

		public BaseBeverage( BeverageType type )
		{
			m_Content = type;
			m_Quantity = MaxQuantity;
			ItemID = ComputeItemID();
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:6,代碼來源:Beverage.cs

示例12: BaseBeverage

 public BaseBeverage(BeverageType type)
 {
     this.m_Content = type;
     this.m_Quantity = this.MaxQuantity;
     this.ItemID = this.ComputeItemID();
 }
開發者ID:rokann,項目名稱:JustUO,代碼行數:6,代碼來源:Beverage.cs

示例13: Drink

 /// <summary>
 /// Constructor for a beverage
 /// </summary>
 /// <param name="Ingredients"></param>
 /// <param name="Instructions"></param>
 /// <param name="Name"></param>
 /// <param name="Type"></param>
 public void Drink(List<Ingredient> Ingredients, List<string> Instructions, string Name, BeverageType Type)
 {
 }
開發者ID:adamus1red,項目名稱:barduino,代碼行數:10,代碼來源:Beverage.cs

示例14: GreenGlass

		public GreenGlass( BeverageType type ) : base( type )
		{
			Weight = 1.0;
		}
開發者ID:greeduomacro,項目名稱:cov-shard-svn-1,代碼行數:4,代碼來源:GreenGlass.cs

示例15: ConsumeTotal

		public static bool ConsumeTotal( Container pack, BeverageType content, int quantity )
		{
			return ConsumeTotal( pack, typeof( BaseBeverage ), content, quantity );
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:4,代碼來源:Beverage.cs


注:本文中的BeverageType類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。