Package forgottentowns.mod.api
Interface SettlementMap
public interface SettlementMap
Pure policies for a location map and paid arrivals; the host owns UI and saved orders.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn independent map faction with seasonal goods, recruitment and its own trade terms.static final recordA city entry, separate from the campaign mission presentation.static final recordA paid unit arrival offered by a completed city. -
Method Summary
Modifier and TypeMethodDescriptiondefault List<SettlementMap.Faction> factions(SettlementTrading.World world) Supplies independent faction outposts, alongside campaign cities.locations(SettlementTrading.World world) Supplies settlement-bearing locations; the host shows founded current towns and completed settlements.booleansupports(SettlementTrading.World world) Selects worlds that expose this map.inttravelDays(String biome) Determines an ordered unit's journey from its source location.
-
Method Details
-
supports
Selects worlds that expose this map.- Parameters:
world- detached settlement context- Returns:
- whether this policy applies; the last applicable registration wins
-
locations
Supplies settlement-bearing locations; the host shows founded current towns and completed settlements.- Parameters:
world- current campaign context- Returns:
- immutable authored locations, using native campaign stage coordinates
-
factions
Supplies independent faction outposts, alongside campaign cities. Factions use their own namespaced identity and coordinates, never a fake campaign stage. The host exposes their finite trade stock even without a separate trading mod.- Parameters:
world- current world and campaign context- Returns:
- immutable faction entries; at most 32 for the active map policy
-
travelDays
Determines an ordered unit's journey from its source location.- Parameters:
biome- native uppercase biome identifier- Returns:
- travel days, bounded by the host to 1..48
-