Example #1
0
        public QuestXPEntry(int level, [NotNull] GenericStaticallySizedArrayChunkTen <int> difficultyReward)
        {
            if (level <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(level));
            }

            Level            = level;
            DifficultyReward = difficultyReward ?? throw new ArgumentNullException(nameof(difficultyReward));
        }
        public GameObjectDisplayInfoEntry(int gameObjectDisplayInfoId,
                                          [NotNull] TStringType modelPath,
                                          [NotNull] GenericStaticallySizedArrayChunkTen <int> soundSlot, [NotNull] Vector3 <float> boxMin, [NotNull] Vector3 <float> boxMax, int objectEffectsPackageId)
        {
            if (gameObjectDisplayInfoId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(gameObjectDisplayInfoId));
            }

            GameObjectDisplayInfoId = gameObjectDisplayInfoId;
            ModelPath = modelPath ?? throw new ArgumentNullException(nameof(modelPath));
            SoundSlot = soundSlot ?? throw new ArgumentNullException(nameof(soundSlot));
            BoxMin    = boxMin ?? throw new ArgumentNullException(nameof(boxMin));
            BoxMax    = boxMax ?? throw new ArgumentNullException(nameof(boxMax));
            ObjectEffectsPackageId = objectEffectsPackageId;
        }
Example #3
0
        public SoundEntriesEntry(int soundId, SoundTypes soundType, [NotNull] TStringType name, [NotNull] GenericStaticallySizedArrayChunkTen <TStringType> file, [NotNull] GenericStaticallySizedArrayChunkTen <int> frequency, [NotNull] TStringType baseDirectory, float volume, SoundInterfaceFlags flags, float minimumDistance, float distanceCutoff, int eaxDefinition, int soundEntriesAdvancedId)
        {
            if (!Enum.IsDefined(typeof(SoundTypes), soundType))
            {
                throw new InvalidEnumArgumentException(nameof(soundType), (int)soundType, typeof(SoundTypes));
            }
            if (soundId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(soundId));
            }

            SoundId                = soundId;
            SoundType              = soundType;
            Name                   = name ?? throw new ArgumentNullException(nameof(name));
            File                   = file ?? throw new ArgumentNullException(nameof(file));
            Frequency              = frequency ?? throw new ArgumentNullException(nameof(frequency));
            BaseDirectory          = baseDirectory ?? throw new ArgumentNullException(nameof(baseDirectory));
            Volume                 = volume;
            Flags                  = flags;
            MinimumDistance        = minimumDistance;
            DistanceCutoff         = distanceCutoff;
            EAXDefinition          = eaxDefinition;
            SoundEntriesAdvancedId = soundEntriesAdvancedId;
        }