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
Richard Davey
75db482ec6
Added destroyCustomPlugin and destroyCorePlugin
2018-07-31 10:28:09 +01:00
Richard Davey
c65e3c7428
Added FB Instant Games Plugin to core (will prepare for moving to unique build once feature complete)
2018-07-27 08:33:51 +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
a8f1b23b73
Fixed jsdoc errors
2018-05-25 17:20:50 +01:00
Chris Andrew
f95b35eae7
Finished off descriptions for Data, Plugins and Sound.
2018-05-23 08:09:24 +01: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
4c1703768d
Docs update
2018-05-18 17:37:20 +01:00
Richard Davey
32818ee9cd
jsdoc fixes
2018-05-17 15:10:23 +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
350cb037b7
All systems now register themselves with the new PluginCache
2018-05-15 12:51:50 +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
9dc76348cb
Added new base ScenePlugin
2018-05-11 16:01:23 +01:00
Richard Davey
47077ea9f3
We don't need the key, so remove it.
2018-05-11 16:00:59 +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
ed8a0d97e3
Renamed Plugin to BasePlugin to accurately reflect what it is. Added default methods.
2018-05-11 14:06:35 +01:00
Richard Davey
e431cc33f9
Moved plugins file to DefaultPlugins and changed the namespace
2018-05-11 14:06:13 +01:00
Richard Davey
0a46c13f4c
Working through new plugin structure
2018-05-11 01:50:37 +01:00
Richard Davey
8ca79cdda4
Working on the plugin config setup
2018-05-10 17:15:25 +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
ef87b33a10
Added jsdocs
2018-02-12 21:54:51 +00:00
Richard Davey
b6b8f70550
DisplayList now just extends List and removed the Plugin, as it acts as its own plugin now.
2018-02-12 16:59:57 +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
f73d66a246
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-01-31 03:38:13 +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
Felipe Alfonso
d9b04ef2e9
Light2D Plugin added to scene
2018-01-30 19:46:43 -03: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
4ec30b8db8
Recoded the Data component
...
Added is back in as DataManager, which Game Objects can have an instance of. Plus exposed as DataManagerPlugin available to Scenes. Removed callback based system and implemented events and fixed the destroy method.
2018-01-30 00:55:27 +00:00
Richard Davey
9988e4eb5b
Removed un-needed files and moved plugins around.
2018-01-26 05:21:45 +00:00
Richard Davey
fd4cae12fc
Removed un-used file.
2018-01-19 13:29:24 +00:00
Richard Davey
2deb9edc9e
Plugins now check to see if the Scene is already booted and adapt accordingly.
2018-01-18 14:00:31 +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
4240f6c4af
Converted to use the new plugin format
2018-01-16 02:08:22 +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
c625b8735b
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
2018-01-12 17:09:21 +00:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00