16 lines
355 B
JavaScript
Raw Normal View History

2024-10-25 18:09:59 +08:00
/* eslint-disable no-underscore-dangle */
2024-10-23 09:14:01 +08:00
import { MODULE_NAME } from './conf';
export default {
_send: null,
init() {
this._send = GameGlobal.Module.SendMessage;
},
send(method, str = '') {
if (!this._send) {
this.init();
}
2024-10-25 18:09:59 +08:00
// @ts-ignore
2024-10-23 09:14:01 +08:00
this._send(MODULE_NAME, method, str);
},
};