Modification of the Godot 2 plugin https://github.com/glumpyfish/godot_redux updating it to work for Godot 3 as an addon
.
- If you don't already have an
addon
folder in your Godot project create one (res://addons/
) - Submodule this repository into
res://addons/godot_redux
, fromres://
(project root) run:NB: The addon folder must begit add submodule https://github.com/BPHarris/godot-redux.git addons/godot_redux/
godot_redux
verbatim or Godot will not correctly register the plugin. - In your Godot project go to
Project > Project Settings... > Plugins
and set the plugin to active. - Follow the steps from the Godot 2 version's 'Usage' section (might not be neccessary in latest Godot).
- Enjoy!
The usage for this plugin is almost identical to its source. Any notable changes are listed below:
- See 'Adding to a Project'
state.get()
has been renamedstate.get_state()
to avoid conflict withNode::get
NB: In Godot 3 action_types
and store
must be retreived in each method in reducers
, or else they are not instanciated correctly. I.e. in each reducers
method:
GDScript var types = get_node('/root/action_types') var store = get_node('/root/store')
There are no plans for this plugin.