riversong code showcase
This commit is contained in:
22
Source/Riversong/Game/Unlocks/UnlockCondition.cs
Normal file
22
Source/Riversong/Game/Unlocks/UnlockCondition.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using Sirenix.OdinInspector;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[Serializable]
|
||||
public class UnlockCondition
|
||||
{
|
||||
public UnlockConditionType Type;
|
||||
|
||||
[ShowIf("Type", UnlockConditionType.BuildingPlaced)]
|
||||
public BuildingDefinition Building;
|
||||
|
||||
[ShowIf("Type", UnlockConditionType.HouseCountAtTierOrAbove)]
|
||||
[LabelText("Count")]
|
||||
public int HouseCount;
|
||||
|
||||
[ShowIf("Type", UnlockConditionType.HouseCountAtTierOrAbove)]
|
||||
[LabelText("Tier")]
|
||||
public int MinHouseTierIndex;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user