Loading...
Searching...
No Matches
CityBuilderCore.BuildingRequirement Class Reference

Detailed Description

class that expresses what is needed for a building to be placed, used in the regular BuildingInfo
Mode, Points and Count specify which or how many points of the building are checked
the rest of the fields are the things that those points will be checked against

Public Member Functions

bool IsFulfilled (Vector2Int point, Vector2Int size, BuildingRotation rotation, IEnumerable< Vector2Int > points=null)
 

Public Attributes

BuildingRequirementMode Mode
 
Vector2Int[] Points
 
int Count = 1
 
LayerRequirement LayerRequirement
 
Object[] GroundOptions
 
BuildingInfo Building
 
Vector2Int[] BuildingPoints