component.weaponsystem
System that handles weapon functionality.
- class WeaponSystem: component.system.System;
System that handles weapon functionality.
- this(EntitySystem entitySystem, const(GameTime) gameTime);
Construct a WeaponSystem working on entities from specified EntitySystem and using specified game time subsystem to determine time.
- @property void yamlManager(ResourceManager!(Node) rhs);
Provide a reference to the YAML resource manager. Must be called at least once after construction.
Throws:SystemInitException on failure.- void update();
Fire weapons based on entities' controller components.