import { EventManager } from "./baseevent.ts"; import { CommandsBase } from "./commands/commands.ts"; import GameConfigsBase from "./gameconfigs/base.ts"; import { PlatformsManager } from "./platforms/base.ts"; import { type ProfileUpdateEvent } from "./profiles/events/ProfileUpdate.ts"; import { type RoleUpdateEvent } from "./profiles/events/RoleUpdate.ts"; import ProfileManagerBase from "./profiles/manager.ts"; interface ServerEvents { 'profile.roleupdate': RoleUpdateEvent, 'profile.update': ProfileUpdateEvent } class ServerBase extends EventManager { Profiles = new ProfileManagerBase(this, 'profiles', true); GameConfigs = new GameConfigsBase(this, 'gameconfigs', true); Commands = new CommandsBase(this, 'commands'); Platforms = new PlatformsManager(this, 'platforms', true); } const Server = new ServerBase(); export { ServerBase }; export default Server;