コード例 #1
0
 internal FloorController(ILoggerProvider loggerProvider, Settings settings, BeatSaberUtilities beatSaberUtilities, GameScenesManager gameScenesManager)
 {
     _logger             = loggerProvider.CreateLogger <FloorController>();
     _settings           = settings;
     _beatSaberUtilities = beatSaberUtilities;
     _gameScenesManager  = gameScenesManager;
 }
コード例 #2
0
 internal void Construct(ILogger <EnvironmentObject> logger, PlayerAvatarManager playerAvatarManager, Settings settings, BeatSaberUtilities beatSaberUtilities)
 {
     _logger = logger;
     _playerAvatarManager = playerAvatarManager;
     _settings            = settings;
     _beatSaberUtilities  = beatSaberUtilities;
 }
コード例 #3
0
 internal PlayerAvatarManager(DiContainer container, ILogger <PlayerAvatarManager> logger, AvatarLoader avatarLoader, Settings settings, AvatarSpawner spawner, BeatSaberUtilities beatSaberUtilities)
 {
     _container          = container;
     _logger             = logger;
     _avatarLoader       = avatarLoader;
     _settings           = settings;
     _spawner            = spawner;
     _beatSaberUtilities = beatSaberUtilities;
 }
コード例 #4
0
 internal VRPlayerInput(ILoggerProvider loggerProvider, DeviceManager trackedDeviceManager, PlayerAvatarManager avatarManager, Settings settings, CalibrationData calibrationData, BeatSaberUtilities beatSaberUtilities, TrackingHelper trackingHelper)
 {
     _logger             = loggerProvider.CreateLogger <VRPlayerInput>();
     _deviceManager      = trackedDeviceManager;
     _avatarManager      = avatarManager;
     _settings           = settings;
     _calibrationData    = calibrationData;
     _beatSaberUtilities = beatSaberUtilities;
     _trackingHelper     = trackingHelper;
 }
コード例 #5
0
 private PlayerAvatarManager(DiContainer container, ILoggerProvider loggerProvider, AvatarLoader avatarLoader, Settings settings, AvatarSpawner spawner, BeatSaberUtilities beatSaberUtilities, FloorController floorController)
 {
     _container          = container;
     _logger             = loggerProvider.CreateLogger <PlayerAvatarManager>();
     _avatarLoader       = avatarLoader;
     _settings           = settings;
     _spawner            = spawner;
     _beatSaberUtilities = beatSaberUtilities;
     _floorController    = floorController;
 }
コード例 #6
0
        private PlayerAvatarManager(DiContainer container, ILoggerProvider loggerProvider, AvatarLoader avatarLoader, Settings settings, AvatarSpawner spawner, BeatSaberUtilities beatSaberUtilities, FloorController floorController)
        {
            _container          = container;
            _logger             = loggerProvider.CreateLogger <PlayerAvatarManager>();
            _avatarLoader       = avatarLoader;
            _settings           = settings;
            _spawner            = spawner;
            _beatSaberUtilities = beatSaberUtilities;
            _floorController    = floorController;

            _fileSystemWatcher = new FileSystemWatcher(kCustomAvatarsPath, "*.avatar");
            _fileSystemWatcher.NotifyFilter = NotifyFilters.CreationTime | NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.Size;
        }
コード例 #7
0
        public Plugin(Logger ipaLogger)
        {
            // can't inject at this point so just create it
            ILogger <Plugin> logger = new IPALogger <Plugin>(ipaLogger);

            logger.Info("Initializing Custom Avatars");

            Harmony harmony = new Harmony("com.nicoco007.beatsabercustomavatars");

            ZenjectHelper.Init(harmony, ipaLogger);
            BeatSaberUtilities.ApplyPatches(harmony);

            ZenjectHelper.RegisterInitInstaller <CustomAvatarsInstaller>(ipaLogger);
            ZenjectHelper.RegisterMenuViewControllersInstaller <UIInstaller>();
            ZenjectHelper.RegisterGameplayInstaller <GameplayInstaller>();
        }
コード例 #8
0
 internal FloorController(PlayerAvatarManager playerAvatarManager, BeatSaberUtilities beatSaberUtilities, Settings settings)
 {
     _playerAvatarManager = playerAvatarManager;
     _beatSaberUtilities  = beatSaberUtilities;
     _settings            = settings;
 }