Files
ZYZ/game-server/app/servers/guild/remote/guildRemote.ts
2021-11-11 15:51:25 +08:00

29 lines
719 B
TypeScript

import { Application, ChannelService, HandlerService, } from 'pinus';
import { reloadResources } from '../../../pubUtils/data';
import { treatGuildName } from '../../../services/sdkService';
export default function (app: Application) {
new HandlerService(app, {});
return new GuildRemote(app);
}
export class GuildRemote {
constructor(private app: Application) {
this.app = app;
this.channelService = app.get('channelService');
}
private channelService: ChannelService;
/**
* 重载json资源
*/
public async reloadResources() {
reloadResources();
}
public async treatGuildName(content: string) {
await treatGuildName(content);
}
}