UNPKG

@towercg2/server

Version:

The server runtime for the TowerCG2 video graphics system.

18 lines (17 loc) 735 B
/// <reference types="express" /> import Express from "express"; import { DeepPartial, AnyAction, Reducer } from "redux"; import { RosterPluginState } from "@towercg2/client"; import { ServerPlugin } from "../../ServerPlugin"; export interface RosterPluginConfig { } export declare class RosterPlugin extends ServerPlugin<RosterPluginConfig, RosterPluginState> { static readonly pluginName: string; private interval; protected buildDefaultConfig(): RosterPluginConfig; protected buildDefaultState(): DeepPartial<RosterPluginState>; protected buildReducer(): Reducer<RosterPluginState, AnyAction>; initialize(http: Express.Application): Promise<void>; cleanup(): Promise<void>; private updateRoster(); }