Commit Graph

447 Commits

Author SHA1 Message Date
Vassyli b1942e675a Fixes #164 by introducing a PostLoad lifecycle callback for the viewpoint entity. 2021-04-13 19:05:30 +02:00
Vassyli e2455be738 TwigSceneRenderer uses try-catch for publishing events. Fixes #162. 2021-04-12 18:31:11 +02:00
Vassyli ef9c040204 game->getViewpoint() now sets the TwigSceneRenderer. 2021-04-12 18:24:56 +02:00
Vassyli 1e900d8ec7 Actions have now an additional variable 'action' available, which can access the action's parameters. Render accepts additional template values. v0.6.0-alpha.6 2021-04-08 17:50:33 +02:00
Vassyli 30b9d981fa Added comment and a test for viewpoint data fields. 2021-04-08 17:50:33 +02:00
Vassyli 9019caaafc Viewpoint propagates itself to Actions and ActionGroups. 2021-04-08 17:50:33 +02:00
Vassyli 31eca85df4 Fix: Adjusted tests. v0.6.0-alpha.5 2021-03-01 20:54:30 +01:00
Vassyli 8d43b3d2ce Fix: renamed two events from character-config to scene-config. 2021-03-01 20:54:30 +01:00
Vassyli a9e5647fe0 Adds the missing initialisation of the Scene.properties collection with corresponding tests. 2021-02-26 14:32:59 +01:00
Vassyli 25ccbd8974 Adds default value to type Scene.properties. 2021-02-25 16:46:42 +01:00
Vassyli 2e9f0dc564 Sets cli column width to 120 to standardise testing environment v0.6.0-alpha.4 2021-02-16 22:13:52 +01:00
Vassyli 03fde83fc1 Fixes the actual command to import the correct commands. 2021-02-16 22:13:52 +01:00
Vassyli 669085e65d Added the possibilities to set character and scene settings over cli, with module hooks. 2021-02-16 22:13:52 +01:00
Vassyli f72adb1a38 Adds tests for scene commands. 2021-02-16 22:13:52 +01:00
Vassyli 0292a66252 Adds new commands to manage modules and corresponding tests. 2021-02-16 22:13:52 +01:00
Vassyli eea72f848b Adds tests for all character commands. 2021-02-16 22:13:52 +01:00
Vassyli c2a139d192 Adds a new CharacterEditCommand including a test. 2021-02-16 22:13:52 +01:00
Vassyli d83e437b4a Removed the same wrong assumption from LotGDTestCase, too. v0.6.0-alpha.3 2021-02-04 16:37:07 +01:00
Vassyli 99d554e5d7 Fixes a bug in HasAction->searchAction that caused actions not to be found if no groupTitle was given. 2021-02-04 16:37:07 +01:00
Vassyli 75dd7494c3 Fixes a bug in Action->setTitle() where a return type was expected instead of void. 2021-02-04 12:03:43 +01:00
Vassyli f7504bbb60 Adds a test and the corresponding bugfix. v0.6.0-alpha.2 2021-02-03 20:15:00 +01:00
Vassyli 60a3a8bd2b Adds a trait 'UserAssignable' to mark models as user-assignable. Refactored from SceneTemplates, and applied to SceneAttachments, too. v0.6.0-alpha 2021-01-29 20:16:51 +01:00
Vassyli 147692d722 Removes the ability of attachments to add actions. This should be done by modules via scene templates instead. 2021-01-29 20:16:51 +01:00
Vassyli 454248ed0f Game loop now creates attachment instances from SceneAttachments. 2021-01-29 20:16:51 +01:00
Vassyli 27347d0677 Changed SceneAttachment to require the class to implement AttachmentInterface. 2021-01-29 20:16:51 +01:00
Vassyli 69434c7bbf Adds an AttachmentInterface and adjusted the abstract class Attachment. 2021-01-29 20:16:51 +01:00
Vassyli 2a3a3e7bc2 Introduces a SceneAttachment model for registering attachments. 2021-01-29 20:16:51 +01:00
Vassyli 47693f6127 Adds commands to add, show and remove characters. 2021-01-26 21:19:12 +01:00
Vassyli e3534ea88d Adds logs to scene commands. 2021-01-26 21:19:12 +01:00
Vassyli 5dbe8fdca3 Regression fix: Adds composer requirement for d11wtq/boris back in. 2021-01-26 21:19:12 +01:00
Vassyli 31387c1840 Adds a command to remove scenes. 2021-01-26 21:19:12 +01:00
Vassyli dfd39cd1f8 Adds a feature to scene:show command that shows the corresponding group name in the connections. 2021-01-26 21:19:12 +01:00
Vassyli f25bab7af8 Adds commands to add and remove scene connection groups. 2021-01-26 21:19:12 +01:00
Vassyli c0ed663ef4 Adds the possibility to disconnect two scenes. 2021-01-26 21:19:12 +01:00
Vassyli b3b1c4af0a Adds a SceneConnect command to connect two scenes. 2021-01-26 21:19:12 +01:00
Vassyli 2153df5cc8 Small fix to the SceneAdd command. 2021-01-26 21:19:12 +01:00
Vassyli 13dfab2321 Adds improvements to the SceneTemplate object, and integrates them into the console command. 2021-01-26 21:19:12 +01:00
Vassyli 29ad369c88 Adds some additional commands to denerys cli. 2021-01-26 21:19:12 +01:00
Vassyli a576bfd2a0 Moved console commands to subdirectories. 2021-01-26 21:19:12 +01:00
Vassyli aa5b32c03d Fixes typed property to pass tests. 2021-01-18 10:24:17 +01:00
Vassyli c2aaf025f6 Adds a method AddAttachment to the viewpoint. Small changes. 2021-01-18 10:24:17 +01:00
Vassyli 9b60cc0ebb Connects the SceneRenderer to the Game bootstrap process, and parses Scenes in Viewpoint->changeFromScene(). 2021-01-16 18:55:49 +01:00
Vassyli eca1343b5f Adds events to TwigSceneRenderer, and tests to show that they correctly overwrite the data. 2021-01-16 18:55:49 +01:00
Vassyli 1fb2eb023e Adds SceneRenderer class based on twig to convert some logic and variables from Scenes, allowing them to be more flexible. 2021-01-16 18:55:49 +01:00
Vassyli 1a0b6dbe3e Adds tests to check scene properties. 2021-01-14 20:52:19 +01:00
Vassyli 96feb12fb5 Adds the ability to set properties on Scene objects. 2021-01-14 20:52:19 +01:00
Vassyli 512d875609 Updates some documentation in the Game object. 2021-01-14 20:52:19 +01:00
Vassyli 0a2313b5e5 Fixes a bug where phpunit marked tests only running our custom assertions as risky. 2021-01-13 19:37:08 +01:00
Vassyli c4634b90b7 Adds a new common LotGDTestCase providing additional assertions. Adds a HasAction constraint, too. 2021-01-08 20:00:25 +01:00
Vassyli 6325b8bd36 Adds a git add command to the update package workflow. 2021-01-04 19:40:12 +01:00