Ejemplo n.º 1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            // NetworkConfig.serverPort.Value = CmdTest.Port;
            network = new NetworkServer(GameWorld.Active);
            network.InitializeMap((ref NetworkWriter data) => { data.WriteString("name", "plane"); });

            replicateEntityServerSystem = World.GetOrCreateSystem <ReplicateEntityServerSystem>();

            FSLog.Info($"server listening on {NetworkConfig.serverPort.Value}!");
        }
 protected override void OnCreate()
 {
     replicateEntityServerSystem = World.GetOrCreateSystem <ReplicateEntityServerSystem>();
 }