/// <summary> /// /// </summary> /// <param name="superMonoBehaviour"></param> /// <param name="storageName">Имя хранилища</param> /// <param name="fileName">Имя сохраняемого файла</param> /// <param name="fileName">расширение сохраняемого файла</param> /// <param name="serializerSettings">Настройки (де)сериализации данных</param> public DataStorage(SuperMonoBehaviour superMonoBehaviour, string storageName, string fileName, string fileExtension, IJsonConvertor <T> jsonConvertor) : base(superMonoBehaviour) { if (superMonoBehaviour is null) { throw new ArgumentNullException(nameof(superMonoBehaviour)); } if (string.IsNullOrEmpty(storageName)) { throw new ArgumentException($"{nameof(storageName)} не может быть пустым или иметь значение null", nameof(storageName)); } if (string.IsNullOrEmpty(fileName)) { throw new ArgumentException($"{nameof(fileName)} не может быть пустым или иметь значение null", nameof(fileName)); } if (string.IsNullOrEmpty(fileExtension)) { throw new ArgumentException($"{nameof(fileExtension)} не может быть пустым или иметь значение null", nameof(fileExtension)); } Name = storageName; FileName = FileName; FileExtension = fileExtension; this.jsonConvertor = jsonConvertor ?? throw new ArgumentNullException(nameof(jsonConvertor)); }
public Synchronizer(SuperMonoBehaviour superMonoBehaviour, IModelInteraction <T> model, ReaderWriter <T> readerWriter) : base(superMonoBehaviour) { this.model = model ?? throw new ArgumentNullException(nameof(model)); this.readerWriter = readerWriter ?? throw new ArgumentNullException(nameof(readerWriter)); ChooseDataInfo = superMonoBehaviour.CreateCoroutineContainer(); }
public ColorSchemeGenerator(SuperMonoBehaviour superMonoBehaviour, ColorSchemeData colorSchemeData, Image backgroundImageToCamera) { this.superMonoBehaviour = superMonoBehaviour != null ? superMonoBehaviour : throw new System.ArgumentNullException(nameof(superMonoBehaviour)); this.colorSchemeData = colorSchemeData != null ? colorSchemeData : throw new System.ArgumentNullException(nameof(colorSchemeData)); this.backgroundImageToCamera = backgroundImageToCamera != null ? backgroundImageToCamera : throw new System.ArgumentNullException(nameof(backgroundImageToCamera)); changeColorSchemeInfo = superMonoBehaviour.CreateCoroutineContainer(); }
public RewardedAdLoader(SuperMonoBehaviour superMonoBehaviour, CommandQueueMainThreadExecutor commandQueueHandler) { this.commandQueueHandler = commandQueueHandler != null ? commandQueueHandler : throw new ArgumentNullException(nameof(commandQueueHandler)); this.superMonoBehaviour = superMonoBehaviour != null ? superMonoBehaviour : throw new ArgumentNullException(nameof(superMonoBehaviour)); tryToReLoadAdInfo = superMonoBehaviour.CreateCoroutineContainer(); CreateNewRewardedAd(); }
public SafeReaderWriter(SuperMonoBehaviour superMonoBehaviour, DataStorage <T> dataStorage) : base(superMonoBehaviour) { if (dataStorage is null) { throw new ArgumentNullException(nameof(dataStorage)); } readerWriterState = new AtomicReference <ReaderWriterState <T> >(new InitialState <T>(dataStorage)); }
public LocalStorageCrypto(SuperMonoBehaviour superMonoBehaviour, string fileName, string fileExtension, IJsonConvertor <T> jsonConvertor) : base(superMonoBehaviour, fileName, fileExtension, jsonConvertor) { jsonEncryption = new JsonEncryption(FileName, FileExtension); }
public GooglePlayStorage(SuperMonoBehaviour superMonoBehaviour, string fileName, string fileExtension, IJsonConvertor <T> jsonConvertor) : base(superMonoBehaviour, "Облачное хранилище google play-я", fileName, fileExtension, jsonConvertor) { loadDataInfo = superMonoBehaviour.CreateCoroutineContainer(); }
public DataAssetInitializer(SuperMonoBehaviour superMonoBehaviour, params DataStorage <TData>[] storages) { dataModel = new Model.DataModel <TData, TGetter, TSetter, TChangingNotifier>(); ReaderWriter <TData>[] safeReaderWriters = storages .Select(storage => new SafeReaderWriter <TData>(superMonoBehaviour, storage)) .ToArray(); ReaderWriter <TData> readerWritersContainer = new DataReaderWritersContainer <TData>(superMonoBehaviour, safeReaderWriters); synchronizer = new Synchronizer <TData>(superMonoBehaviour, dataModel, readerWritersContainer); }
public LocalStorage(SuperMonoBehaviour superMonoBehaviour, string fileName, string fileExtension, IJsonConvertor <T> jsonConvertor) : base(superMonoBehaviour, "Локальное хранилище", fileName, fileExtension, jsonConvertor) { filePath = FilePathGetter.GetFilePath(FileNameWithExtension); Debug.Log($"{Name}. Путь к файлу данных : {filePath}"); deviceDataLoader = new DeviceDataLoader(superMonoBehaviour, filePath); }
public CloudDataStorage(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { loadDataInfo = this.superMonoBehaviour.CreateCoroutineContainer(); }
public LocalDataStorage(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { filePath = FilePathGetter.GetFilePath(DataModel.FileNameWithExtension); loadDataInfo = superMonoBehaviour.CreateCoroutineContainer(); }
protected AnimationByScript(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { SetBaseDefaultAnimationExecutionParameters(); SetCommandsOnSwitchingActiveStateGameObject(); }
protected ReaderWriter(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { }
public AnimatorByScript(T animationByScript, SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { this.Animation = animationByScript ?? throw new ArgumentNullException(nameof(animationByScript)); animationInfo = superMonoBehaviour.CreateCoroutineContainer(); SetCommandsOnSwitchingActiveStateGameObject(); }
public SuperMonoBehaviourContainer(SuperMonoBehaviour superMonoBehaviour) { this.superMonoBehaviour = superMonoBehaviour != null ? superMonoBehaviour : throw new ArgumentNullException(nameof(superMonoBehaviour)); }
public DataStorageOld(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { }
public DataReaderWritersContainer(SuperMonoBehaviour superMonoBehaviour, params ReaderWriter <T>[] storages) : base(superMonoBehaviour) { this.storages = storages; }
public FadeAnimation(SuperMonoBehaviour superMonoBehaviour, ComponentWithColor componentWithColor) : base(superMonoBehaviour) { this.componentWithColor = componentWithColor != null ? componentWithColor : throw new ArgumentNullException(nameof(componentWithColor)); }
public DeviceDataLoader(SuperMonoBehaviour superMonoBehaviour, string filePath) : base(superMonoBehaviour) { this.filePath = filePath; loadDataInfo = superMonoBehaviour.CreateCoroutineContainer(); }
protected BaseAnimationByScript(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { SetBaseDefaultAnimationCreatingParameters(); }
public DataLoader(SuperMonoBehaviour superMonoBehaviour, params StorageDataReaderWriter[] storages) : base(superMonoBehaviour) { this.storages = storages; }
protected StorageDataReaderWriter(SuperMonoBehaviour superMonoBehaviour) : base(superMonoBehaviour) { }