Exemplo n.º 1
0
        public override void InitServer()
        {
            base.InitServer();

            ServersHolder.AddResolvableConfig(ServerConfigs);

            Register <INotice>(NoticeResolver, Pooling <Notice> .Instance);
            Register <IParamNotice <int> >(IntParamerResolver, Pooling <ParamNotice <int> > .Instance);
            Register <IParamNotice <bool> >(BoolParamerResolver, Pooling <ParamNotice <bool> > .Instance);
            Register <IParamNotice <Vector3> >(V3ParamerResolver, Pooling <ParamNotice <Vector3> > .Instance);
            Register <IParamNotice <string> >(StringParamerResolver, Pooling <ParamNotice <string> > .Instance);
        }
Exemplo n.º 2
0
        public override void InitServer()
        {
            base.InitServer();

            ServersHolder.AddResolvableConfig(new ResolvableConfigItem <IConfigNotice, ConfigNotice>("ConfigNotice"));

            Register <IConfigNotice>(GetConfigNotice, Pooling <ConfigNotice> .Instance);

            if (hasLocalsConfig)
            {
                Register <IConfigHolder>(GetLocalCNConfig);
            }

            mHelper = new ConfigHelper();

            SetConfigCreater("Locals_CN");
        }