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
Austen McDonald
6c8c12758f
Add additional tests for Game and fix bugs
2016-08-01 10:04:35 +00:00
Austen McDonald
b38cc22094
Change characterViewpoint to be one-to-one, bidirectional.
2016-08-01 10:04:11 +00:00
Austen McDonald
a2fb425632
Fix bugs in Game and add some tests
2016-08-01 06:58:00 +00:00
Austen McDonald
dd9775bfd7
Include template when copying scene to new viewpoint
2016-08-01 06:57:59 +00:00
Austen McDonald
3c3f5c970c
Change Character to no longer handle creating its own CharacterViewpoint if it's empty
2016-08-01 06:57:59 +00:00
Austen McDonald
1d24aa973f
Change EventHandler to always pass by reference and kill return-value semantics.
2016-08-01 06:57:58 +00:00
Austen McDonald
318531c6ad
Add getViewpoint()
2016-07-31 22:42:21 +00:00
Austen McDonald
be2e296419
Add docblock and hook for actions to setupViewpoint
2016-07-31 22:06:07 +00:00
Austen McDonald
a4dd6a4a25
Fix missing directory separators in config file specifications.
2016-07-31 22:02:37 +00:00
Austen McDonald
d30915c514
Add takeAction as part of the main game loop
2016-07-31 22:02:36 +00:00
Austen McDonald
5c7040d593
Add template to SceneBasics
2016-07-31 22:02:02 +00:00
Austen McDonald
faff76c1d5
Add convenience method to CharacterViewpoint to find actions.
2016-07-31 22:02:02 +00:00
Austen McDonald
c7b6fb9c13
Add ActionGroup class
2016-07-31 22:02:01 +00:00
Austen McDonald
50e60e49ff
Add Action class
2016-07-31 22:02:01 +00:00
Austen McDonald
7ae281992f
Add missing docblocks
2016-07-31 21:54:54 +00:00
Austen McDonald
d30bab4ec8
Force docblock checking as part of t
2016-07-31 21:54:43 +00:00
Vassyli
9de0a38d33
Added left-over suggestions
...
Merges #50
2016-07-29 12:51:56 +02:00
Vassyli
c8790d60f0
Switched to DIRECTORY_SEPARATOR
2016-07-29 12:11:56 +02:00
Vassyli
ae63c209e9
Clean-ups
...
Left overs to clean and changes from discussion.
Fixed config path finding
2016-07-29 11:57:24 +02:00
Vassyli
712a89bdad
Changes for configuration file approach
...
Packages that are either of type lotgd-crate or lotgd-module can add daenerys commands and doctrine entity directories by using a lotgd.yml configuration file in their directory root (the same one were composer.json is).
All namespaces given in lotgd.yml have to be relative to the packages namespace, without a leading backslash (\).
Root namespace is derived from composer.json, either explicitely (via extra.lotgd-namespace) or implicitely via the first psr-4 or the first psr-0 namespace.
2016-07-29 09:35:46 +02:00
Vassyli
ba855d9b56
Added root package to ComposerManager->getPackages()
2016-07-29 09:35:46 +02:00
Vassyli
da5445db48
Removed logger dependency from composer
2016-07-29 09:35:46 +02:00
Vassyli
396e174fb5
Add working directory search path for composer
...
Added a needed search path for composer.json and a test testing exactly this.
2016-07-29 09:35:46 +02:00
Vassyli
f136711884
Adds changes as discussed in PR#50
2016-07-29 09:35:46 +02:00