SettlementManager class
A class that handles the available settlements and using them
When making a custom settlement type, make sure to register it or else some features might not work
- Inheritance
-
- Object
- Manager<
SettlementType> - SettlementManager
Constructors
- SettlementManager()
-
const
Properties
-
activeTypes
→ List<
SettlementType> -
Returns all active settlements
no setteroverride
-
allTypes
→ List<
SettlementType> -
Returns all the settlement types
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteType(
SettlementType settlementType) → void -
Removes
settlementTypefrom the active location types and from all location types listoverride -
getType(
String type) → SettlementType -
Returns the corresponding settlement type from all settlements from type
typeoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerType(
SettlementType settlementType) → void -
Adds
settlementTypeto the list of all location types and active location typesoverride -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterType(
SettlementType settlementType) → void -
Removes
settlementTypeonly from the active racesoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited