-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from amazingalek/asset-overhaul
Assets overhaul
- Loading branch information
Showing
5 changed files
with
86 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
using UnityEngine; | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace OWML.Common | ||
{ | ||
public interface IModAssets | ||
{ | ||
AssetBundle LoadBundle(string filename); | ||
|
||
IModAsset<GameObject> Load3DObject(string objectFilename, string imageFilename); | ||
GameObject Get3DObject(string objectFilename, string audioFilename); | ||
|
||
Mesh GetMesh(string filename); | ||
|
||
Texture2D GetTexture(string filename); | ||
|
||
IModAsset<MeshFilter> LoadMesh(string objectFilename); | ||
|
||
IModAsset<MeshRenderer> LoadTexture(string imageFilename); | ||
AudioClip GetAudio(string filename); | ||
|
||
[Obsolete("Use Get3DObject instead.")] | ||
IModAsset<GameObject> Load3DObject(string objectFilename, string imageFilename); | ||
|
||
[Obsolete("Use GetMesh instead.")] | ||
IModAsset<MeshFilter> LoadMesh(string filename); | ||
|
||
[Obsolete("Use GetTexture instead.")] | ||
IModAsset<MeshRenderer> LoadTexture(string filename); | ||
|
||
IModAsset<AudioSource> LoadAudio(string audioFilename); | ||
[Obsolete("Use GetAudio instead.")] | ||
IModAsset<AudioSource> LoadAudio(string filename); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters