TwigSceneRenderer
in package
Table of Contents
- $game : Game
- $templateValues : array<string|int, mixed>
- $twig : Environment
- __construct() : mixed
- getSecurityPolicy() : SecurityPolicy
- Returns the current security policy.
- render() : string
- Renders a given string in the context if a given viewpoint.
Properties
$game
private
Game
$game
$templateValues
private
array<string|int, mixed>
$templateValues
$twig
private
Environment
$twig
Methods
__construct()
public
__construct(Game $game) : mixed
Parameters
- $game : Game
Return values
mixed —getSecurityPolicy()
Returns the current security policy.
public
getSecurityPolicy() : SecurityPolicy
This method provides a hook.
Return values
SecurityPolicy —render()
Renders a given string in the context if a given viewpoint.
public
render(string $string, Viewpoint $viewpoint[, bool $ignoreErrors = false ][, array<string|int, mixed> $templateValues = [] ]) : string
Parameters
- $string : string
- $viewpoint : Viewpoint
- $ignoreErrors : bool = false
-
If set to true, errors are ignored and the unparsed string will be returned instead.
- $templateValues : array<string|int, mixed> = []