2019-11-07 07:02:05 +00:00
|
|
|
/// <reference types="@ms/types/dist/typings/sponge" />
|
2019-09-21 07:04:47 +00:00
|
|
|
|
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'
|
2019-09-10 09:21:44 +00:00
|
|
|
|
2019-09-21 07:04:47 +00:00
|
|
|
import { SpongeConsole } from './console';
|
|
|
|
import { SpongeEvent } from './event';
|
2020-01-14 09:44:20 +00:00
|
|
|
import { SpongeServer } from './server';
|
2019-09-21 07:04:47 +00:00
|
|
|
import { SpongeCommand } from './command';
|
2020-02-24 10:36:08 +00:00
|
|
|
import { SpongeChannel } from './channel';
|
2019-09-21 07:04:47 +00:00
|
|
|
import { SpongeTaskManager } from './task';
|
2019-09-10 09:21:44 +00:00
|
|
|
|
2020-01-31 18:46:06 +00:00
|
|
|
export default function SpongeImpl(container: Container) {
|
|
|
|
container.bind(server.Console).toConstantValue(SpongeConsole);
|
|
|
|
container.bind(event.Event).to(SpongeEvent).inSingletonScope();
|
|
|
|
container.bind(server.Server).to(SpongeServer).inSingletonScope();
|
|
|
|
container.bind(command.Command).to(SpongeCommand).inSingletonScope();
|
2020-02-24 10:36:08 +00:00
|
|
|
container.bind(channel.Channel).to(SpongeChannel).inSingletonScope();
|
2020-01-31 18:46:06 +00:00
|
|
|
container.bind(task.TaskManager).to(SpongeTaskManager).inSingletonScope();
|
|
|
|
}
|