camelot-unchained
Version:
Camelot Unchained Client Library
26 lines (25 loc) • 864 B
JavaScript
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
;
var Reflux = require('reflux');
var events_1 = require('../../events');
var _UnitFrame_1 = require('./_UnitFrame');
var FriendlyTargetStore = {
create: function create() {
var actions = Reflux.createActions(['start', 'stop']);
var store = Reflux.createStore({
mixins: [_UnitFrame_1.default],
topic: events_1.default.clientEventTopics.handlesFriendlyTarget,
listenables: actions
});
return {
store: store,
actions: actions
};
}
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = FriendlyTargetStore;