Repository navigation
Releases
Releases · civ-clone/core-unit
v0.1.33
DelayedActionDefinition.actiongets the loading game'sBusyContextasaction(unit, context), through the rebuiltBusyand the loading game's handler. A completion after a load can then write to that game's registries (#10, civ-clone/web-renderer#248).BusyContextgainsunits, and documents reading otherGameslots by name.
v0.1.32
v0.1.31
- Unit traits: marker classes (some parameterised) declared per unit class as
UnitTraitsrules, queried withunit.hasTrait(T)/traits(T),hasTrait/traitsOf/traitCriterion;unitActionaccepts trait classes. Never saved. Requires core-rule ^0.1.9 (#8, civ-clone/web-renderer#1008).
v0.1.30
Unit#setCity(null) leaves a unit with no home city, as the constructor and transfer(player, null) already could (civ-clone/web-renderer#969). Nothing changes in a game until a ruleset uses it.