185 Commits

Author SHA1 Message Date
Katrina Knight 5e6f132131 Fixed formatting issues as per comment 2021-09-06 07:04:11 +02:00
Katrina Knight 83c3d697c9 Added test for correct Semantic Versioning as per #34 2021-09-06 07:04:11 +02:00
Vassyli 5718f57c91 Twig accepts abs filter, added 2 more tests. 2021-08-28 12:46:19 +02:00
Vassyli 127abf136e Fixes #164 by introducing a PostLoad lifecycle callback for the viewpoint entity. 2021-04-13 19:43:28 +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. 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 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 f7504bbb60 Adds a test and the corresponding bugfix. 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. 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 2a3a3e7bc2 Introduces a SceneAttachment model for registering attachments. 2021-01-29 20:16:51 +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 c4634b90b7 Adds a new common LotGDTestCase providing additional assertions. Adds a HasAction constraint, too. 2021-01-08 20:00:25 +01:00
Vassyli dd074a8bea Fixed a bug that used a misspelled stdout stream for StreamHandler 2021-01-04 19:14:23 +01:00
Vassyli 126fdee80e Adds additional methods to ModelTestCase for modules to refine their tests. 2020-12-30 14:28:53 +01:00
Vassyli 81c72ca91a Adds an assertDataWasKeptIntact method to ModelTestCase in lieu of the DBUnit features. 2020-12-30 14:11:07 +01:00
Vassyli 29e5ced0f9 Adds a test for null-template scenes. 2020-12-28 13:40:19 +01:00
Vassyli 557215bba3 Temporarily removes php-cs-fixer as it does not support PHP8 yet 2020-12-23 13:32:49 +01:00
Vassyli 81a6edc074 Merge branch 'master' of https://github.com/lotgd/core into php8-compability 2020-12-23 12:44:41 +01:00
Vassyli 90f187dbf2 Doctrine: Fixed class reference to ClassMetadata 2020-12-21 19:21:25 +01:00
Basilius Sauter 1c53604244 Adjusted tests. 2019-06-27 14:39:03 +02:00
Basilius Sauter a375cb98cd Removed all Warnings from PHPUnit 8 2019-06-27 09:52:18 +02:00
Basilius Sauter e18cdd21cc Added void return type to setUp/tearDown test methods. 2019-06-27 09:40:12 +02:00
Basilius Sauter d0b2d48cc1 Upgrades successfully to PHPUnit 7, removed DBUnit support and integrated custom testing. 2019-06-16 17:50:58 +02:00
Basilius Sauter 248258a8fe Adds character stats and tests. 2019-04-03 16:17:36 +02:00
Basilius Sauter 4d1ab9e763 Changed quote strategy to BasicQuoteStrategy as AnsiQuoteStrategy seems to mess up the column names. 2019-04-02 21:12:02 +02:00
Basilius Sauter a097c29d67 Added tests to ensure ModuleManager::register does not change anything upon error. 2018-10-08 17:29:44 +02:00
Basilius Sauter bab3e0f236 Changed viewpoint to use uuid-based primary key 2018-10-08 17:29:44 +02:00
Basilius Sauter b398ffae14 Changed motd id to uuid 2018-10-08 17:29:44 +02:00
Basilius Sauter 90971d152a Changed motd id to uuid 2018-10-08 17:29:44 +02:00
Basilius Sauter 04b3b6aaf9 Changed character id to uuid 2018-10-08 17:29:44 +02:00
Vassyli c07f7b3342 Removed auto-flushing for every event from EventManager. 2018-10-08 17:26:44 +02:00
Vassyli 8a75e81431 Updated failing tests 2018-10-08 17:26:44 +02:00
Vassyli 2a0bf5f038 Fixes inheritance issue with CharacterRepository 2018-04-12 19:40:57 +02:00
nekosune 6c4b1e15f4 Made changes requested, and fixed tests 2018-04-09 16:01:37 +00:00
Vassyli ccbfa0553c Replaced diceBag()->normal with diceBag()->pseudoBell, added a few fight fixes. 2018-01-27 19:33:59 +01:00
Vassyli 04a5b59ea2 Fixed an issue with PropertyManager. 2018-01-26 16:21:53 +01:00
Vassyli 846ab6018e LibraryConfiguration now also knows crate packages. 2018-01-19 17:42:33 +01:00
Vassyli c9e6f679c4 Adds events to character->getAttack and getDefense to modify the value. Tests included. 2018-01-09 17:16:54 +01:00