riversong code showcase
This commit is contained in:
32
Source/Riversong/Game/World/BlockMap/BlockReason.cs
Normal file
32
Source/Riversong/Game/World/BlockMap/BlockReason.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[Flags]
|
||||
public enum BlockReason
|
||||
{
|
||||
None,
|
||||
|
||||
InvalidElevation = 1 << 0,
|
||||
|
||||
RawResource = 1 << 1,
|
||||
|
||||
ProductStack = 1 << 2,
|
||||
|
||||
Building = 1 << 3,
|
||||
|
||||
Road = 1 << 4,
|
||||
|
||||
CannotBuild = InvalidElevation | Building | Road,
|
||||
|
||||
CannotBuildRoad = InvalidElevation | Building,
|
||||
|
||||
ClearGrassMask = ProductStack | Building | Road,
|
||||
|
||||
CannotMakeCamp = RawResource | ProductStack | CannotBuild,
|
||||
|
||||
BlocksAgents = InvalidElevation | Building,
|
||||
|
||||
Any = ~None
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user