Commit graph

38 commits

Author SHA1 Message Date
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
15abc3824a Plugins Types 2019-05-09 12:35:33 +01:00
Richard Davey
c85648e06a The PluginManager.installScenePlugin method has a new optional boolean parameter fromLoader which controls if the plugin is coming in from the result of a Loader operation or not. If it is, it no longer throws a console warning if the plugin already exists. This fixes an issue where if you return to a Scene that loads a Scene Plugin it would throw a warning and then not install the plugin to the Scene. 2019-02-28 12:24:41 +00:00
Richard Davey
42cb39749f Matter and Snapshot typedefs 2019-02-13 15:22:29 +00:00
Richard Davey
1eccff1e3b Fixed jsdoc links and markdown bullet lists 2019-01-18 15:20:56 +00:00
Richard Davey
bc962c25dc All listeners use the new Events 2019-01-18 13:41:43 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
5da77075f4 PluginManager.install returns null if the plugin failed to install in all cases. 2018-10-23 13:28:56 +01:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
2d91d4a26b You can now access the Game instance directly from a Scene using this.game 2018-08-07 11:19:20 +01:00
Richard Davey
a29aba0a11
Merge pull request #3859 from samme/feature/plugin-data
Pass `data` value to global plugins
2018-07-31 11:39:36 +01:00
Richard Davey
063a432ec9 Destroy will now clear out all custom plugins. Fix #3856 2018-07-31 10:28:36 +01:00
samme
4c23359fd8 Pass data value to global plugins 2018-07-23 10:51:00 -07:00
Rafael Barbosa Lopes
904b6c13da Delete console.log call on PluginManager. 2018-05-26 14:01:07 -03:00
Richard Davey
0b1d32b571 New registerFileType argument, new Global Plugin mapping and createEntry method
* PluginManager.registerFileType has a new property `addToScene` which allows you to inject the new file type into the LoaderPlugin of the given Scene. You could use this to add the file type into the Scene in which it was loaded.
* PluginManager.install has a new property `mapping`. This allows you to give a Global Plugin a property key, so that it is automatically injected into any Scenes as a Scene level instance. This allows you to have a single global plugin running in the PluginManager, that is injected into every Scene automatically.
* PluginManager.createEntry is a new private method to create a plugin entry and return it. This avoids code duplication in several other methods, which now use this instead.
2018-05-18 18:43:27 +01:00
Richard Davey
919676ae10 PluginManager.destroy didn't reference the plugin correctly, throwing an Uncaught TypeError if you tried to destroy a game instance. Fix #3668 2018-05-17 12:16:14 +01:00
Richard Davey
9f7d3bf9ca Allowed get to return the class and added autoStart boolean 2018-05-16 14:35:45 +01:00
Richard Davey
6d1166a9c2 lint fixes 2018-05-15 14:28:27 +01:00
Richard Davey
3043fd52e6 Added jsdocs and unified the boot process 2018-05-15 14:19:56 +01:00
Richard Davey
ef9ab052c7 PluginManager updates to handle Scene system injection, PluginCache use and registering new game objects and file types 2018-05-15 12:52:18 +01:00
Richard Davey
4741ee02b1 Updated docs and lint fixes 2018-05-11 18:55:44 +01:00
Richard Davey
444dda12d7 Added option to insert plugin into Scene immediately 2018-05-11 18:22:28 +01:00
Richard Davey
d160f5c648 Removed log and improved docs 2018-05-11 16:24:10 +01:00
Richard Davey
a2b1c72a51 PluginManager now handles booting custom scene plugins 2018-05-11 16:01:37 +01:00
Richard Davey
45c3336354 Revamped PluginManager, now working to install, start and stop plugins. 2018-05-11 14:06:51 +01:00
Richard Davey
0a46c13f4c Working through new plugin structure 2018-05-11 01:50:37 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
2813ac8162 Moved PluginManager and merged configs into single root file for easier changing. 2018-02-12 23:03:48 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00
Richard Davey
a802914243 Added in destroy methods for all managers and invoked them from Game 2018-01-31 03:38:10 +00:00
Richard Davey
bc2263dbd4 Fixed Camera3D Plugin, exposed it via camera3d in a Scene and added cameras to local array.
Closes #3188
2018-01-30 13:15:50 +00:00
Richard Davey
69dbe38c9f Scene.Systems keeps track of it's booted, so plugins know how to respond to the boot event (or not). You can now also load a plugin into a Scene at runtime. 2018-01-18 13:59:37 +00:00
Richard Davey
92e62b9368 Updated PluginManager to support installation and injection of global and local plugins 2018-01-18 05:21:14 +00:00
Richard Davey
ddba95873d Moved Arcade and Impact Physics over to the new plugin system 2018-01-17 03:41:58 +00:00
Richard Davey
f9a7939812 Lots of work migrating to the new plugin system, fixing references and exposing on the namespace 2018-01-16 22:28:29 +00:00
Richard Davey
9fabd000b5 Updated the PluginManager to be a global level instance that belongs to Game and registers all plugins 2018-01-16 02:08:04 +00:00
Richard Davey
d8f1ba03e9 Moved repository location 2018-01-09 21:43:56 +00:00
Renamed from v3/src/plugins/PluginManager.js (Browse further)