0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 05:22:40 +00:00

Moving old combat manager code into respective folders

This commit is contained in:
Scott Tolksdorf
2016-05-03 19:47:06 -04:00
parent ead50af34b
commit 7f14870732
9 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
var dispatch = require('pico-flux').dispatch;
module.exports = {
updateMonsterManual : function(json){
dispatch('UDPATE_MONSTER_MANUAL', json);
},
addEncounter : function(){
dispatch('ADD_ENCOUNTER');
},
updateEncounter : function(index, json){
dispatch('UPDATE_ENCOUNTER', index, json);
},
removeEncounter : function(index){
dispatch('REMOVE_ENCOUNTER', index);
},
updatePlayers : function(text){
dispatch('UPDATE_PLAYERS', text);
},
selectEncounter : function(index){
dispatch('SELECT_ENCOUNTER', index);
},
}