private ReadOnlySoundPreset <WeaponSound> PrepareSoundPresetWeapon()
        {
            var preset = SoundPreset.CreateFromFolder <WeaponSound>(
                this.SoundsFolderPath + "/Weapon/",
                throwExceptionIfNoFilesFound: false);

            //this.VerifySoundPreset(preset);
            return(preset);
        }
        protected virtual ReadOnlySoundPreset <GroundSoundMaterial> PrepareSoundPresetFootsteps()
        {
            var preset = SoundPreset.CreateFromFolder <GroundSoundMaterial>(
                this.SoundsFolderPath + "/Footsteps/",
                throwExceptionIfNoFilesFound: false);

            this.VerifySoundPreset(preset);
            return(preset);
        }
        private ReadOnlySoundPreset <CharacterSound> PrepareSoundPresetMovement()
        {
            var preset = SoundPreset.CreateFromFolder <CharacterSound>(
                this.SoundsFolderPath + "/Movement/",
                throwExceptionIfNoFilesFound: false);

            //this.VerifySoundPreset(preset);
            return(preset);
        }
Exemplo n.º 4
0
        protected virtual ReadOnlySoundPreset <CharacterSound> PrepareSoundPresetCharacter()
        {
            if (!Api.Shared.IsFolderExists(ContentPaths.Sounds + this.SoundsFolderPath))
            {
                throw new Exception("Sounds folder for " + this + " doesn't exist");
            }

            var preset = SoundPreset.CreateFromFolder <CharacterSound>(
                this.SoundsFolderPath + "/Character/",
                throwExceptionIfNoFilesFound: false);

            //this.VerifySoundPreset(preset);
            return(preset);
        }
Exemplo n.º 5
0
        protected override ReadOnlySoundPreset <CharacterSound> PrepareSoundPresetCharacter()
        {
            if (!Api.Shared.IsFolderExists(ContentPaths.Sounds + this.SoundsFolderPath))
            {
                throw new Exception("Sounds folder for " + this + " doesn't exist");
            }

            var preset = SoundPreset.CreateFromFolder <CharacterSound>(
                this.SoundsFolderPath + "/Character/",
                throwExceptionIfNoFilesFound: false,
                customDistance: (15, 45),
                customDistance3DSpread: (10, 35));

            //this.VerifySoundPreset(preset);
            return(preset);
        }