forked from zombieb/galvanic-corrosion-rewrite
duhhhhhhhh
This commit is contained in:
@@ -3,11 +3,14 @@ import { ServerUpdateEvent } from "../serverevents.ts";
|
||||
import { AvatarContentBase } from "./avatars/base.ts";
|
||||
import { EventManager } from "./baseevent.ts";
|
||||
import { CommandsBase } from "./commands/commands.ts";
|
||||
import { ServerConsumablesBase } from "./consumables/base.ts";
|
||||
import { ServerContentManager } from "./content/base.ts";
|
||||
import GameConfigsBase from "./gameconfigs/base.ts";
|
||||
import { InstanceManager } from "./instances/base.ts";
|
||||
import { ServerMatchmakingBase } from "./matchmaking/base.ts";
|
||||
import { Objective, ObjectiveType } from "./objectives/base.ts";
|
||||
import { PlatformsManager } from "./platforms/base.ts";
|
||||
import { ServerPresenceBase } from "./presence/base.ts";
|
||||
import { type PresenceUpdateEvent } from "./presence/events/PresenceUpdateEvent.ts";
|
||||
import { type ProfileUpdateEvent } from "./profiles/events/ProfileUpdate.ts";
|
||||
import { ProfileUpdatedSettingEvent } from "./profiles/events/ProfileUpdatedSetting.ts";
|
||||
@@ -15,6 +18,7 @@ import { type RoleUpdateEvent } from "./profiles/events/RoleUpdate.ts";
|
||||
import ProfileManagerBase from "./profiles/manager.ts";
|
||||
import { ServerRoomsBase } from "./rooms/base.ts";
|
||||
import { RoomUpdatedEvent, SubroomUpdatedEvent } from "./rooms/internal/RoomEvents.ts";
|
||||
import { AnnouncementDTO } from "./types.ts";
|
||||
|
||||
interface ServerEvents {
|
||||
'profile.roleupdate': RoleUpdateEvent,
|
||||
@@ -42,7 +46,7 @@ interface AutoMicMutingConfig {
|
||||
MicSpamWarningStateVolumeMultiplier: number;
|
||||
};
|
||||
|
||||
export type PublicConfig = {
|
||||
export interface PublicConfig {
|
||||
ShareBaseUrl: string;
|
||||
ServerMaintenance: {
|
||||
StartsInMinutes: number;
|
||||
@@ -61,6 +65,9 @@ class ServerBase extends EventManager<ServerEvents> {
|
||||
Instances = new InstanceManager(this, 'instances');
|
||||
Content = new ServerContentManager(this, "content");
|
||||
Rooms = new ServerRoomsBase(this, 'rooms', true);
|
||||
Matchmaking = new ServerMatchmakingBase(this, "match");
|
||||
Presence = new ServerPresenceBase(this, "pres");
|
||||
Consumables = new ServerConsumablesBase(this, "consumables");
|
||||
|
||||
generateMask(...num: number[]) {
|
||||
return num.reduce((sum, val) => sum + val, 0);
|
||||
@@ -137,6 +144,11 @@ class ServerBase extends EventManager<ServerEvents> {
|
||||
|
||||
return conf;
|
||||
}
|
||||
|
||||
getAnnouncements(): AnnouncementDTO[] {
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const Server = new ServerBase();
|
||||
|
||||
Reference in New Issue
Block a user