コード例 #1
0
 public FieldItemDefinition(ushort id, ushort dig, ushort pick, string name, FieldItemKind kind)
 {
     Index = id;
     Dig   = dig;
     Pick  = pick;
     Name  = name;
     Kind  = kind;
 }
コード例 #2
0
 public static ItemKind ToItemKind(this FieldItemKind type)
 {
     if (type.IsTree())
     {
         return(ItemKind.Kind_Tree);
     }
     if (type.IsFlower())
     {
         return(ItemKind.Kind_Flower);
     }
     if (type.IsWeed())
     {
         return(ItemKind.Kind_Weed);
     }
     return(ItemKind.Unknown);
 }
コード例 #3
0
ファイル: FieldItemKind.cs プロジェクト: vanton/NHSE
 public static bool IsWeed(this FieldItemKind type) => type is >= PltWeedAut0 and <= PltWeedWin1;
コード例 #4
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsStone(this FieldItemKind type) => StoneA <= type && type <= StoneE;
コード例 #5
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsTree(this FieldItemKind type) => PltTreeBamboo <= type && type <= PltTreePalm;
コード例 #6
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsFlower(this FieldItemKind type) => PltFlwAnemone <= type && type <= PltFlwYuri;
コード例 #7
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsBush(this FieldItemKind type) => PltBushAzalea <= type && type <= PltBushOsmanthus;
コード例 #8
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsFence(this FieldItemKind type) => FenceBamboo <= type && type <= FenceWoodWhite;
コード例 #9
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsPlant(this FieldItemKind type) => PltFlwAnemone <= type && type <= PltWeedWin1;
コード例 #10
0
ファイル: FieldItemKind.cs プロジェクト: Nawor3565/NHSE
 public static bool IsWeed(this FieldItemKind type) => PltWeedAut0 <= type && type <= PltWeedWin1;
コード例 #11
0
ファイル: FieldItemDefinition.cs プロジェクト: Nawor3565/NHSE
 public FieldItemDefinition(ushort id, string name, FieldItemKind kind)
 {
     Index = id;
     Name  = name;
     Kind  = kind;
 }