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
Vassyli
b93aea6831
Changed daenerys to support bootstrap for new commands
2016-07-29 09:35:46 +02:00
Vassyli
58147ed14b
Updated bootstrap to call packages Bootstrap
...
The bootstrap procedure has been updated to search through all packages to get the ones with an lotgd-namespace extra field. These are then tested if they have or have not a bootstrap class implementing BootstrapInterface. If yes, they get added to a stack used to modify the bootstrap procedure. For know, bootstrap supports additional entity directories.
2016-07-29 09:35:46 +02:00
Austen McDonald
86b5f075fa
Fix configuration bug with new game settings and add tests
...
Merge pull request #52 from lotgd/feature/fix-config
2016-07-28 13:38:29 -07:00
Austen McDonald
50ea982985
Fix configuration bug with new game settings and add tests
2016-07-28 13:20:16 -07:00
Austen McDonald
06794f2ec2
Add time keeper to Game.
2016-07-27 21:25:23 +00:00
Austen McDonald
0e70b7f0b1
Add time keeper configuration values.
2016-07-27 21:25:11 +00:00
Austen McDonald
8e8b2de219
Make reading lotgd-namespace directories more generic, to support crates for example
...
Merges #49
2016-07-26 12:44:26 +02:00
Austen McDonald
a37a0dbc89
Add translateNamespaceToPath to ComposerManager
2016-07-26 09:48:02 +00:00
Austen McDonald
ffa65b3042
Change module configs to take lotgd-namespace and lotgd-subscriptions
2016-07-25 22:08:06 +00:00
Austen McDonald
bc297076fa
Dont print password when we convert Configuration to a string, this is just too unsafe.
2016-07-25 21:36:04 +00:00
Austen McDonald
3090dece7f
Reorder use statements in ModuleManagerTest
2016-07-25 21:35:10 +00:00
Austen McDonald
0873121151
Change bootstrap to look for metadata directories from modules.
2016-07-25 21:35:09 +00:00
Austen McDonald
f5bea45317
Extract finding the autoloader into a helper method.
2016-07-25 21:35:05 +00:00
Austen McDonald
e12741cff5
Change ComposerManager to take a logger instead of a game.
2016-07-25 20:19:46 +00:00
Austen McDonald
a673efaf4e
Add some help to the daenerys console command.
2016-07-22 06:26:23 +00:00
Austen McDonald
6efd89419b
Add __toString() to Configuration class.
2016-07-22 06:26:17 +00:00
Austen McDonald
23c2b79094
Add console command to daenerys tool.
2016-07-22 06:26:07 +00:00
Austen McDonald
5078a8a889
Update the README to include information about the new configuration setup
2016-07-22 04:58:07 +00:00
Austen McDonald
8d31f715ad
Add some documentation to the Configuration object.
2016-07-22 04:45:27 +00:00
Austen McDonald
2370528392
Transition from environment variables to a configuration file format.
2016-07-22 04:19:10 +00:00
Austen McDonald
8973dc943b
Add Configuration object.
2016-07-22 04:18:08 +00:00
Austen McDonald
f4859eeaf4
Add module instructions to README
2016-07-21 07:49:49 +00:00
Austen McDonald
31c0f4341c
Change format of module configuration to make them implement their events on a single calss.
2016-07-21 07:49:46 +00:00
Austen McDonald
53b25a85ed
Add Module interface for Modules to extend from.
2016-07-21 06:40:51 +00:00
Basilius Sauter
77aab6f9cb
Making bin/daenerys more extensible
...
In order to make bin/daenerys more extensible and usable from outside with
more configuration, the bootstrap of the game object has been moved to
bin/daenerys where it is a closure stored in LotGD\Core\Console\Main.
Commands now call Main::createGame() instead of Bootstrap::createGame().
Added the command database:init
Merges #43
Closes #40
2016-07-19 18:01:46 +02:00
Austen McDonald
6083e5c170
Add logger to Game, along with some basic log messages
2016-07-18 23:03:52 +00:00
Austen McDonald
50879ec6f4
Update README.md
...
Added instructions for phpunit and included php7.0-sqlite, which is needed for tests.
2016-07-18 16:17:57 -07:00