# Scene-Context

The Scene-Context is used whenever scene related actions are executed. Here the user can provide his own implementation on how these actions are to be performed. Besides the Scene-Context itself there are also secondary classes (e.g. Scene/SceneTable) what the user can adapt to fit certain requirements.

#### Required Methods

There are some required methods that need to be implemented in the Scene-Context by default.

**SetSceneState**

Called when a Scene action is triggered, and the state of a scene is to be changed.

<table border="1" id="bkmrk-property-name-descri-10" style="border-collapse: collapse; width: 78.5185%;"><colgroup><col style="width: 23.4646%;"></col><col style="width: 18.1092%;"></col><col style="width: 58.4262%;"></col></colgroup><tbody><tr><td class="align-center" style="background-color: rgb(230, 126, 35);"><span style="color: rgb(255, 255, 255);">**Argument Name**</span></td><td class="align-center" style="background-color: rgb(230, 126, 35);"><span style="color: rgb(255, 255, 255);">**Type**</span></td><td class="align-center" style="background-color: rgb(230, 126, 35);"><span style="color: rgb(255, 255, 255);">**Description**</span></td></tr><tr><td>**scene**</td><td>Scene&amp;</td><td>Scene to be manipulated</td></tr><tr><td>**state**</td><td>FeatStd::Int8</td><td>State of the scene to set.</td></tr></tbody></table>

**SetSceneTableState**

Called when a Scene-Table action is triggered, and the state of a Scene-Table is to be changed.

<table border="1" id="bkmrk-argument-name-type-d" style="border-collapse: collapse; width: 78.5185%; height: 119.188px;"><colgroup><col style="width: 23.4646%;"></col><col style="width: 18.1092%;"></col><col style="width: 58.4262%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td class="align-center" style="background-color: rgb(230, 126, 35); height: 29.7969px;"><span style="color: rgb(255, 255, 255);">**Argument Name**</span></td><td class="align-center" style="background-color: rgb(230, 126, 35); height: 29.7969px;"><span style="color: rgb(255, 255, 255);">**Type**</span></td><td class="align-center" style="background-color: rgb(230, 126, 35); height: 29.7969px;"><span style="color: rgb(255, 255, 255);">**Description**</span></td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**sceneTable**</td><td style="height: 29.7969px;">SceneTable&amp;</td><td style="height: 29.7969px;">Scene-Table to be manipulated</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**entryId**</td><td style="height: 29.7969px;">FeatStd::Int32</td><td style="height: 29.7969px;">Id of the Scene-Table entry to be activated.</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**hint**</td><td style="height: 29.7969px;">const char\*</td><td style="height: 29.7969px;">Optional hint string.</td></tr></tbody></table>

---