2020-01-15 08:43:00 +00:00
|
|
|
/// <reference types="@ms/types/dist/typings/bungee" />
|
|
|
|
|
2020-02-24 10:36:08 +00:00
|
|
|
import { server, command, event, channel, task } from '@ms/api'
|
2020-01-31 18:46:06 +00:00
|
|
|
import { Container } from '@ms/container'
|
2020-01-15 08:43:00 +00:00
|
|
|
|
|
|
|
import { BungeeConsole } from './console';
|
|
|
|
import { BungeeEvent } from './event';
|
|
|
|
import { BungeeServer } from './server';
|
|
|
|
import { BungeeCommand } from './command';
|
2020-02-24 10:36:08 +00:00
|
|
|
import { BungeeChannel } from './channel';
|
2020-01-15 08:43:00 +00:00
|
|
|
import { BungeeTaskManager } from './task';
|
|
|
|
|
2020-01-31 18:46:06 +00:00
|
|
|
export default function BungeeImpl(container: Container) {
|
|
|
|
container.bind(server.Console).toConstantValue(BungeeConsole);
|
|
|
|
container.bind(event.Event).to(BungeeEvent).inSingletonScope();
|
|
|
|
container.bind(server.Server).to(BungeeServer).inSingletonScope();
|
|
|
|
container.bind(command.Command).to(BungeeCommand).inSingletonScope();
|
2020-02-24 10:36:08 +00:00
|
|
|
container.bind(channel.Channel).to(BungeeChannel).inSingletonScope();
|
2020-01-31 18:46:06 +00:00
|
|
|
container.bind(task.TaskManager).to(BungeeTaskManager).inSingletonScope();
|
|
|
|
}
|