コード例 #1
0
ファイル: CustomDye.cs プロジェクト: gamrguy/CustomDyes
 public override bool UseItem(Player player)
 {
     currentThing += 1;
     if (!Enum.IsDefined(typeof(StuffThings), currentThing))
     {
         currentThing = 0;
     }
     return(true);
 }
コード例 #2
0
ファイル: CustomDye.cs プロジェクト: gamrguy/CustomDyes
 public override void NetRecieve(BinaryReader reader)
 {
     currentThing = (StuffThings)reader.ReadInt32();
 }