new RequirementsHelper()
- Source:
Members
DEFAULT_RECURSION_DEPTH
- Source:
EntityRequirementsSchema
- Source:
TechnologyRequirementsSchema
- Source:
Methods
AllRequirementsMet(template, cmpTechManager) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
template |
Object | The requirements template for "all". |
cmpTechManager |
component | - |
- Source:
Returns:
-
- Type
- boolean
AnyRequirementsMet(template, cmpTechManager) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
template |
Object | The requirements template for "any". |
cmpTechManager |
component | - |
- Source:
Returns:
-
- Type
- boolean
AreRequirementsMet(template, playerID) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
template |
Object | The requirements template as defined above. |
playerID |
number | - |
- Source:
Returns:
-
- Type
- boolean
BuildSchema(recursionDepth) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
recursionDepth |
number | How deeply recursive we build the schema. |
- Source:
Returns:
- A RelaxRNG schema for requirements.
- Type
- string
ChoicesSchema(recursionDepth) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
recursionDepth |
number | How deep we recurse. |
- Source:
Returns:
- A RelaxRNG schema for chosing requirements.
- Type
- string
RequirementsSchema(recursionDepth) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
recursionDepth |
number | How deep we recurse. |
- Source:
Returns:
- A RelaxRNG schema for requirements.
- Type
- string