예제 #1
0
        private static void RegisterExpDeps()
        {
            IOCCore.RegisterFallback(() => Instance.m_experienceMachine);
            IOCCore.RegisterFallback(() => Instance.m_appTheme);
            IOCCore.RegisterFallback(() => Instance.m_audio);
            IOCCore.RegisterFallback(() => Instance.m_commonResource);
            IOCCore.RegisterFallback(() => Instance.m_settings);
            IOCCore.RegisterFallback(() => Instance.m_fordiNetwork);
            IOCCore.RegisterFallback(() => Instance.m_webInterface);
            IOCCore.RegisterFallback(() => Instance.m_network);
            IOCCore.RegisterFallback(() => Instance.m_voiceChat);
            IOCCore.RegisterFallback(() => Instance.m_assetLoader);
            IOCCore.RegisterFallback(() => Instance.m_pluginHook);
            //IOCCore.RegisterFallback(() => Instance.m_annotation);
            IOCCore.RegisterFallback(() => Instance.m_uiEngine);
            IOCCore.RegisterFallback(() => Instance.m_permissions);
            IOCCore.RegisterFallback(() => Instance.m_animationEngine);

            if (IOCCore.Resolve <ControlConfigurations>() == null)
            {
                IOCCore.Register(new ControlConfigurations());
            }
        }