Skip to content

civ-clone/core-unit-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core-unit-transport

Includes the core functionality to have Units that can carry other units (Trireme, Sail, etc. in Civilization).

Transport provides a mixin style applicator which accepts a Unit (or something that extends Unit) class and adds the required methods from ITransport, e.g. class SomeTransport extends Transport(SomeBase) { /* ... */ }.

TransportManifests are used to track what cargo a Transport is carrying. and the TransportRegistry is used to retrieve these manifests.

Includes Stowed and Unloaded Rules triggered when the corresponding action is performed on a Transport.

Hopefully, the way this has been written, it should be possible to have any type of unit be a Transport so you could have Air Units, Land Units, or even Diplomatic Units...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published