Documentation

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

Methods

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> = []
Tags
throws
InsecureTwigTemplateError
throws
CharacterNotFoundException
throws
LoaderError
throws
SyntaxError
Return values
string

Search results