34 lines
1.7 KiB
XML
34 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
|
<context:annotation-config />
|
|
|
|
<bean id="config" class="mc.core.embedded.ConfigFromSpring">
|
|
<property name="descriptionServer" value="MC Core"/>
|
|
<property name="maxPlayers" value="100"/>
|
|
<property name="faviconBase64" value="icon.png"/>
|
|
</bean>
|
|
|
|
<bean id="gameLoop" class="mc.core.GameLoop">
|
|
<property name="startGameTime" value="6000"/>
|
|
<property name="timeMode" value="realtime"/>
|
|
</bean>
|
|
|
|
<bean id="playerManager" class="mc.core.embedded.InMemoryPlayerManager">
|
|
<property name="keepAliveInterval" value="10"/>
|
|
</bean>
|
|
|
|
<!-- Netty Server -->
|
|
<bean id="pipeline.log" class="io.netty.handler.logging.LoggingHandler" scope="prototype"/>
|
|
<bean id="pipeline.decoder" class="mc.core.network.proto_125.netty.PacketDecoder" scope="prototype"/>
|
|
<bean id="pipeline.encoder" class="mc.core.network.proto_125.netty.PacketEncoder" scope="prototype"/>
|
|
<bean id="pipeline.handler" class="mc.core.network.proto_125.netty.PacketHandler" scope="prototype"/>
|
|
|
|
<bean id="server" class="mc.core.network.proto_125.netty.NettyServer">
|
|
<property name="host" value="127.0.0.1"/>
|
|
<property name="port" value="25565"/>
|
|
<property name="workerGroupCount" value="2"/>
|
|
</bean>
|
|
</beans> |