当前位置: 首页>>代码示例>>C#>>正文


C# PlantType类代码示例

本文整理汇总了C#中PlantType的典型用法代码示例。如果您正苦于以下问题:C# PlantType类的具体用法?C# PlantType怎么用?C# PlantType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PlantType类属于命名空间,在下文中一共展示了PlantType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Cypress

 static Cypress()
 {
     _id = ItemID.Cypress;
     _name = "檜木";
     _description = "";
     _type = PlantType.Wood;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Cypress.cs

示例2: RawRubber

 static RawRubber()
 {
     _id = ItemID.Rubber;
     _name = "生橡膠";
     _description = "";
     _type = PlantType.Product;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:RawRubber.cs

示例3: Oak

 static Oak()
 {
     _id = ItemID.Oak;
     _name = "橡木";
     _description = "";
     _type = PlantType.Wood;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Oak.cs

示例4: Hemp

 static Hemp()
 {
     _id = ItemID.Hemp;
     _name = "麻草";
     _description = "";
     _type = PlantType.Herb;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Hemp.cs

示例5: Bamboo

 static Bamboo()
 {
     _id = ItemID.Bamboo;
     _name = "竹子";
     _description = "";
     _type = PlantType.Wood;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Bamboo.cs

示例6: Coconut

 static Coconut()
 {
     _id = ItemID.Coconut;
     _name = "椰子";
     _description = "";
     _type = PlantType.Product;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Coconut.cs

示例7: Log

 static Log()
 {
     _id = ItemID.Log;
     _name = "木頭";
     _description = "";
     _type = PlantType.Wood;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Log.cs

示例8: Cotton

 static Cotton()
 {
     _id = ItemID.Cotton;
     _name = "棉花";
     _description = "";
     _type = PlantType.Product;
 }
开发者ID:DSobscure,项目名称:Resource-Emperor,代码行数:7,代码来源:Cotton.cs

示例9: Plant

        public Plant(PlantType type, decimal age, decimal size)
        {
            Type = type;
            Size = size;
            Age = age;

            Construct ();
        }
开发者ID:CompulsiveCoder,项目名称:TileSim,代码行数:8,代码来源:Plant.cs

示例10: GetInfo

		public static PlantTypeInfo GetInfo( PlantType plantType )
		{
			int index = (int)plantType;

			if ( index >= 0 && index < m_Table.Length )
				return m_Table[index];
			else
				return m_Table[0];
		}
开发者ID:Godkong,项目名称:RunUO,代码行数:9,代码来源:PlantType.cs

示例11: Seed

		public Seed( PlantType plantType, PlantHue plantHue, bool showType ) : base( 0xDCF )
		{
			Weight = 1.0;

			m_PlantType = plantType;
			m_PlantHue = plantHue;
			m_ShowType = showType;

			Hue = PlantHueInfo.GetInfo( plantHue ).Hue;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:10,代码来源:Seed.cs

示例12: PlantTypeInfo

 private PlantTypeInfo( int itemID, int offsetX, int offsetY, PlantType plantType, bool containsPlant, bool flowery, bool crossable )
 {
     m_ItemID = itemID;
     m_OffsetX = offsetX;
     m_OffsetY = offsetY;
     m_PlantType = plantType;
     m_ContainsPlant = containsPlant;
     m_Flowery = flowery;
     m_Crossable = crossable;
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:10,代码来源:PlantType.cs

示例13: GetInfo

		public static PlantResourceInfo GetInfo( PlantType plantType, PlantHue plantHue )
		{
			foreach ( PlantResourceInfo info in m_ResourceList )
			{
				if ( info.PlantType == plantType && info.PlantHue == plantHue )
					return info;
			}

			return null;
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:10,代码来源:PlantResources.cs

示例14: Seed

        public Seed(PlantType plantType, PlantHue plantHue, bool showType)
            : base(0xDCF)
        {
            this.Weight = 1.0;
            this.Stackable = Core.SA;

            this.m_PlantType = plantType;
            this.m_PlantHue = plantHue;
            this.m_ShowType = showType;

            this.Hue = PlantHueInfo.GetInfo(plantHue).Hue;
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:12,代码来源:Seed.cs

示例15: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                    {
                        this.m_Level = (SecureLevel)reader.ReadInt();
                        goto case 0;
                    }
                case 0:
                    {
                        if (version < 1)
                            this.m_Level = SecureLevel.CoOwners;

                        this.m_PlantStatus = (PlantStatus)reader.ReadInt();
                        this.m_PlantType = (PlantType)reader.ReadInt();
                        this.m_PlantHue = (PlantHue)reader.ReadInt();
                        this.m_ShowType = reader.ReadBool();

                        if (this.m_PlantStatus < PlantStatus.DecorativePlant)
                            this.m_PlantSystem = new PlantSystem(this, reader);

                        break;
                    }
            }

            m_Instances.Add(this);
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:32,代码来源:PlantItem.cs


注:本文中的PlantType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。