Files
aaaa/src/server/server.ts
2025-07-25 19:00:06 -04:00

23 lines
908 B
TypeScript

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<ServerEvents> {
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;