2020-06-22 02:44:17 +00:00
|
|
|
/// <reference types="@javatypes/sponge-api" />
|
2019-09-21 07:04:47 +00:00
|
|
|
|
2020-05-02 16:14:47 +00:00
|
|
|
import { server } from '@ccms/api'
|
|
|
|
import { Container } from '@ccms/container'
|
2019-09-10 09:21:44 +00:00
|
|
|
|
2020-09-24 02:33:16 +00:00
|
|
|
import { SpongeConsole } from './console'
|
|
|
|
import './chat'
|
|
|
|
import './task'
|
|
|
|
import './event'
|
|
|
|
import './server'
|
2020-12-07 03:12:49 +00:00
|
|
|
import { SpongeNativePluginManager } from './plugin'
|
2020-09-24 02:33:16 +00:00
|
|
|
import './command'
|
|
|
|
import './channel'
|
2020-12-07 03:12:49 +00:00
|
|
|
import './particle'
|
2019-09-10 09:21:44 +00:00
|
|
|
|
2020-01-31 18:46:06 +00:00
|
|
|
export default function SpongeImpl(container: Container) {
|
2020-09-24 02:33:16 +00:00
|
|
|
container.bind(server.Console).toConstantValue(SpongeConsole)
|
2020-12-07 03:12:49 +00:00
|
|
|
container.rebind(server.NativePluginManager).toConstantValue(new SpongeNativePluginManager())
|
2020-01-31 18:46:06 +00:00
|
|
|
}
|