本文整理汇总了C#中PlantType类的典型用法代码示例。如果您正苦于以下问题:C# PlantType类的具体用法?C# PlantType怎么用?C# PlantType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PlantType类属于命名空间,在下文中一共展示了PlantType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Cypress
static Cypress()
{
_id = ItemID.Cypress;
_name = "檜木";
_description = "";
_type = PlantType.Wood;
}
示例2: RawRubber
static RawRubber()
{
_id = ItemID.Rubber;
_name = "生橡膠";
_description = "";
_type = PlantType.Product;
}
示例3: Oak
static Oak()
{
_id = ItemID.Oak;
_name = "橡木";
_description = "";
_type = PlantType.Wood;
}
示例4: Hemp
static Hemp()
{
_id = ItemID.Hemp;
_name = "麻草";
_description = "";
_type = PlantType.Herb;
}
示例5: Bamboo
static Bamboo()
{
_id = ItemID.Bamboo;
_name = "竹子";
_description = "";
_type = PlantType.Wood;
}
示例6: Coconut
static Coconut()
{
_id = ItemID.Coconut;
_name = "椰子";
_description = "";
_type = PlantType.Product;
}
示例7: Log
static Log()
{
_id = ItemID.Log;
_name = "木頭";
_description = "";
_type = PlantType.Wood;
}
示例8: Cotton
static Cotton()
{
_id = ItemID.Cotton;
_name = "棉花";
_description = "";
_type = PlantType.Product;
}
示例9: Plant
public Plant(PlantType type, decimal age, decimal size)
{
Type = type;
Size = size;
Age = age;
Construct ();
}
示例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];
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}