Exemplo n.º 1
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;
 }
Exemplo n.º 2
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;
        }