mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-23 00:31:47 -05:00
De-partialize AudioAsset.
This commit is contained in:
parent
51b9c14245
commit
7af13d86e4
6 changed files with 14 additions and 56 deletions
|
@ -1,13 +1,25 @@
|
|||
using System;
|
||||
using OpenTS2.Engine.Audio;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace OpenTS2.Content.DBPF
|
||||
{
|
||||
public partial class AudioAsset : AbstractAsset
|
||||
public class AudioAsset : AbstractAsset
|
||||
{
|
||||
public byte[] AudioData;
|
||||
public AudioClip Clip
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_clip == null)
|
||||
_clip = WavUtility.ToAudioClip(AudioData, 0, TGI.ToString());
|
||||
return _clip;
|
||||
}
|
||||
}
|
||||
AudioClip _clip;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1766c6a0260e4f24c9b61a27a486b84f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f8f4f19f36983cf41939283ff57c3fe7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e80c3fdd538f6f2478de2af030d91252
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,19 +0,0 @@
|
|||
using UnityEngine;
|
||||
using OpenTS2.Engine.Audio;
|
||||
|
||||
namespace OpenTS2.Content.DBPF
|
||||
{
|
||||
public partial class AudioAsset
|
||||
{
|
||||
public AudioClip Clip
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_clip == null)
|
||||
_clip = WavUtility.ToAudioClip(AudioData, 0, TGI.ToString());
|
||||
return _clip;
|
||||
}
|
||||
}
|
||||
AudioClip _clip;
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a03f72aea344ed64eb87b922d8cb17bf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in a new issue