VISUTransitionAnimationSystem
in package
implements
SystemInterface
Table of Contents
Interfaces
Properties
- $animationDelegates : array<string|int, VISUTransitionAnimationSystemDelegate>
- $ticksPerSecond : int
Methods
- __construct() : mixed
- addAnimationDelegate() : void
- Adds an animation delegate
- register() : void
- Registers the system, this is where you should register all required components.
- removeAnimationDelegate() : void
- Adds an animation delegate
- render() : void
- Handles rendering of the scene, here you can attach additional render passes, modify the render pipeline or customize rendering related data.
- unregister() : void
- Unregisters the system, this is where you can handle any cleanup.
- update() : void
- Updates handler, this is where the game state should be updated.
- handleAnimationContainer() : void
- Handles an animation container
Properties
$animationDelegates
private
array<string|int, VISUTransitionAnimationSystemDelegate>
$animationDelegates
= []
The list of animation delegates
$ticksPerSecond read-only
private
int
$ticksPerSecond
Methods
__construct()
public
__construct(int $ticksPerSecond) : mixed
Parameters
- $ticksPerSecond : int
addAnimationDelegate()
Adds an animation delegate
public
addAnimationDelegate(VISUTransitionAnimationSystemDelegate $delegate) : void
Parameters
- $delegate : VISUTransitionAnimationSystemDelegate
register()
Registers the system, this is where you should register all required components.
public
register(EntitiesInterface $entities) : void
Parameters
- $entities : EntitiesInterface
Tags
removeAnimationDelegate()
Adds an animation delegate
public
removeAnimationDelegate(VISUTransitionAnimationSystemDelegate $delegate) : void
Parameters
- $delegate : VISUTransitionAnimationSystemDelegate
render()
Handles rendering of the scene, here you can attach additional render passes, modify the render pipeline or customize rendering related data.
public
render(EntitiesInterface $entities, RenderContext $context) : void
Parameters
- $entities : EntitiesInterface
- $context : RenderContext
Tags
unregister()
Unregisters the system, this is where you can handle any cleanup.
public
unregister(EntitiesInterface $entities) : void
Parameters
- $entities : EntitiesInterface
Tags
update()
Updates handler, this is where the game state should be updated.
public
update(EntitiesInterface $entities) : void
Parameters
- $entities : EntitiesInterface
Tags
handleAnimationContainer()
Handles an animation container
private
handleAnimationContainer(object $animationContainer, Transform $transform, int $entity) : void
Parameters
- $animationContainer : object
-
The animation container
- $transform : Transform
-
The transform of the entity
- $entity : int
-
The entity