15 lines
300 B
JavaScript
15 lines
300 B
JavaScript
import { MODULE_NAME } from './conf';
|
|
export default {
|
|
_send: null,
|
|
init() {
|
|
this._send = GameGlobal.Module.SendMessage;
|
|
},
|
|
send(method, str = '') {
|
|
if (!this._send) {
|
|
this.init();
|
|
}
|
|
|
|
this._send(MODULE_NAME, method, str);
|
|
},
|
|
};
|