// LOGIC

    public void Initialize()
    {
        // Initialize providers

        m_ServiceProvider = new ServiceProvider();
        m_ServiceProvider.Initialize();

        // Initialize modules

        m_Modules = new List <GameServicesModule>();

        // User Info module

        UserInfoModule userInfoModule = new UserInfoModule();

        userInfoModule.Initialize();

        m_Modules.Add(userInfoModule);

        // Friends module

        FriendsModule friendsModule = new FriendsModule();

        friendsModule.Initialize();

        m_Modules.Add(friendsModule);

        // Matchmaking module

        MatchmakingModule matchmakingModule = new MatchmakingModule();

        matchmakingModule.Initialize();

        m_Modules.Add(matchmakingModule);

        // Achievements module

        AchievementsModule achievementsModule = new AchievementsModule();

        achievementsModule.Initialize();

        m_Modules.Add(achievementsModule);

        // Stats module

        StatsModule statsModule = new StatsModule();

        statsModule.Initialize();

        m_Modules.Add(statsModule);

        m_Initialized = true;
    }
        public void Init()
        {
            IConfigSource config = new IniConfigSource();

            config.AddConfig("Modules");
            // Not strictly necessary since FriendsModule assumes it is the default (!)
            config.Configs["Modules"].Set("FriendsModule", "FriendsModule");
            config.AddConfig("Friends");
            config.Configs["Friends"].Set("Connector", "OpenSim.Services.FriendsService.dll");
            config.AddConfig("FriendsService");
            config.Configs["FriendsService"].Set("StorageProvider", "OpenSim.Data.Null.dll");

            m_scene = SceneHelpers.SetupScene();
            m_fm    = new FriendsModule();
            SceneHelpers.SetupSceneModules(m_scene, config, m_fm);
        }
示例#3
0
        public void Init()
        {
            // We must clear friends data between tests since Data.Null holds it in static properties.  This is necessary
            // so that different services and simulator can share the data in standalone mode.  This is pretty horrible
            // effectively the statics are global variables.
            NullFriendsData.Clear();

            IConfigSource config = new IniConfigSource();

            config.AddConfig("Modules");
            // Not strictly necessary since FriendsModule assumes it is the default (!)
            config.Configs["Modules"].Set("FriendsModule", "FriendsModule");
            config.AddConfig("Friends");
            config.Configs["Friends"].Set("Connector", "OpenSim.Services.FriendsService.dll");
            config.AddConfig("FriendsService");
            config.Configs["FriendsService"].Set("StorageProvider", "OpenSim.Data.Null.dll");

            m_scene = new SceneHelpers().SetupScene();
            m_fm    = new FriendsModule();
            SceneHelpers.SetupSceneModules(m_scene, config, m_fm);
        }