Commit Graph

414 Commits

Author SHA1 Message Date
Austen McDonald 1294722dbd Add logging to Game 2016-09-16 05:07:24 +00:00
Austen McDonald 1d148bbbd0 Add logging to EventManager 2016-09-16 05:05:53 +00:00
Austen McDonald c30c9a640b Add unsetProperty for property managers 2016-09-15 21:15:23 +00:00
Austen McDonald d92fc5ebbf Move save operation while registering modules after onRegister. Do likewise for onUnregister 2016-09-15 21:12:25 +00:00
Austen McDonald 2c27f2ff4f Add a convenience function to find a library by name 2016-09-12 13:33:58 -07:00
Vassyli daf374889b Adds cascade=persist to parent, cascade=remove to childrens of scenes 2016-09-06 13:41:55 +02:00
Austen McDonald f7e34162e8 Rename CharacterViewpoint::getActions() to CharacterViewpoint::getActionGroups() b/c that's what it is 2016-09-04 06:08:00 +00:00
Austen McDonald f73c5c3b11 Fix GameTest to use new hook and fix a bug in it :) 2016-09-04 06:03:07 +00:00
Austen McDonald fac5627850 Refactor Game navigation to use only one event and also to pass a referrer scene 2016-09-04 05:47:55 +00:00
Austen McDonald c585dcb33a Fix bug in Scene constructor 2016-08-30 20:40:09 +00:00
Austen McDonald 019a248333 Initialize Module model's properties property 2016-08-29 11:41:02 +00:00
Austen McDonald 2651388d3d Remove whitespace from PropertyManager lines 2016-08-27 05:08:21 +00:00
Austen McDonald ab8ab726ad Add ActionGroup::DefaultGroup constant. 2016-08-27 04:36:09 +00:00
Austen McDonald f190b61811 Adjust exception text when namespace is incorrect in modules 2016-08-24 10:16:42 +00:00
Austen McDonald 135dd22939 Add tests for simple getters in Game and fix bug with TimeKeeper 2016-08-23 22:33:46 +00:00
Austen McDonald 5fc6822737 Support modules as base packages instead of just installed in vendor/ 2016-08-22 21:54:53 +00:00
Austen McDonald 86751fc6d5 Refactor ModelTestCase so I can use it outside of the Core. 2016-08-22 14:30:22 -07:00
Vassyli db95b84452 Fixes the addition of daenerys commands by modules 2016-08-22 10:48:51 +02:00
Austen McDonald d1f6be4fb5 Add documentation for new Module changes 2016-08-21 03:59:33 +00:00
Austen McDonald d4a525dd76 Pass parameters to the next scene when taking an action 2016-08-21 03:58:35 +00:00
Austen McDonald 271ffc8b5e Add getModule() call to ModuleManager 2016-08-21 03:58:35 +00:00
Austen McDonald f0a7b0b42e Pass module model into onRegister/onUnregister 2016-08-21 03:58:35 +00:00
Austen McDonald ccf51450b0 Add property support for modules. 2016-08-21 03:58:35 +00:00
Austen McDonald 837d936326 Add template as fillable on Scene. 2016-08-21 03:58:35 +00:00
Austen McDonald 77b9c71517 Add scene parameter to context when navigating 2016-08-21 03:58:35 +00:00
Vassyli cbcc606025 Adds a few test for Configuration
Adds a bunch of tests testing if InvalidConfigurationException is thrown as expected.
2016-08-12 08:24:43 +02:00
Austen McDonald 87c45f1fae Add simple tests for Actions and Attachments 2016-08-11 15:39:26 +00:00
Austen McDonald 3671851c84 Add simple abstract Attachment class 2016-08-11 15:39:26 +00:00
Vassyli 61f25ddfb3 Add missing docblock 2016-08-11 12:09:27 +02:00
Vassyli 0fecb32b57 Adds tailing dir seperator to %cwd% and adds tests 2016-08-11 12:05:18 +02:00
Vassyli 0f18945334 Removed logger calls in Configuration. 2016-08-11 11:52:14 +02:00
Vassyli 4e1fe65619 Moved %cwd% parsing to configuration and added test 2016-08-11 11:50:00 +02:00
Vassyli 94bc8bcdaa Add support for %cwd% variable in pdo dsn.
The string %cwd% gets replaced in a pdo dsn with the cwd used to create the game. This is important since daenerys would access a different sqlite database file than web/app.php
2016-08-11 11:49:28 +02:00
Austen McDonald 36a81e209a Add logging to EventManager on publishing an event 2016-08-10 07:14:16 +00:00
Austen McDonald e6d2b09d6f Fix bug in daenerys module:register command 2016-08-10 07:14:15 +00:00
Austen McDonald 2df7216a3e Enable logging earlier in the bootstrap process and add some logging around annotation directories 2016-08-10 07:14:15 +00:00
Austen McDonald de1f385e4a Add symfony/yaml as a dependency 2016-08-10 00:09:55 -07:00
Austen McDonald e1d8b5bf1a Fix bug in how daenerys starts the bootstrap 2016-08-10 05:17:55 +00:00
Austen McDonald 921eb282a4 Add cwd or rootDir support back to the game so crates can configure where their composer root will live 2016-08-09 20:12:34 -07:00
Austen McDonald f99f94bb56 Shift to using PHP7 style checks for cwd 2016-08-09 00:51:45 -07:00
Austen McDonald b360ca9ac6 Remove support for LOTGD_CONFIG environment variable. 2016-08-09 00:49:20 -07:00
Austen McDonald 9f698239b4 Add the ability to set a cwd on game creation 2016-08-09 00:42:45 -07:00
Austen McDonald 88cafacddb Refactor BootConfiguration into LibraryConfiguration and read all configuration for modules from it 2016-08-08 23:11:57 -07:00
Austen McDonald d5747fdf95 Conform to PSR2 2016-08-08 23:03:15 -07:00
Austen McDonald f6a6ceec9e Change sortKey to be an integer on ActionGroup 2016-08-09 05:35:13 +00:00
Austen McDonald b07dbd8f29 Change action properties to be protected so it will serialize 2016-08-06 14:29:04 -07:00
Austen McDonald 05d14c8ba3 Refactor handleEvent() to pass in the Game always. 2016-08-02 21:28:19 +00:00
Austen McDonald d82f3fc588 Change hook for setting up viewpoint to handle all actions, data and attachments 2016-08-02 20:11:36 +00:00
Austen McDonald 36c57cf9cb Refactor the method to be get/setViewpoint() instead of get/setCharacterViewpoint for simplicity 2016-08-01 21:28:01 +00:00
Austen McDonald 8123e4bab5 Add attachment and data calculation to constructing a viewpoint. 2016-08-01 21:15:36 +00:00