Split Editor and Runtime into separate namespaces, Created Texture and Mesh classes
This commit is contained in:
13
Runtime/PSXMesh.cs
Normal file
13
Runtime/PSXMesh.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace PSXSplash.RuntimeCode {
|
||||
|
||||
[System.Serializable]
|
||||
public class PSXMesh {
|
||||
public bool TriangulateMesh = true;
|
||||
|
||||
public void Export() {
|
||||
Debug.Log($"Export: {this}");
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Runtime/PSXMesh.cs.meta
Normal file
2
Runtime/PSXMesh.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9025daa0c62549ee29d968f86c69eec9
|
||||
@@ -1,12 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace PSXSplash.Runtime
|
||||
namespace PSXSplash.RuntimeCode
|
||||
{
|
||||
public class PSXObjectExporter : MonoBehaviour
|
||||
{
|
||||
|
||||
public PSXMesh Mesh;
|
||||
public PSXTexture Texture;
|
||||
|
||||
public void Export()
|
||||
{
|
||||
Debug.Log($"Export: {this.name}");
|
||||
Debug.Log($"Export: {name}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace PSXSplash.Runtime
|
||||
namespace PSXSplash.RuntimeCode
|
||||
{
|
||||
public class PSXSceneExporter : MonoBehaviour
|
||||
public class PSXSceneExporter : MonoBehaviour
|
||||
{
|
||||
public void Export()
|
||||
{
|
||||
|
||||
22
Runtime/PSXTexture.cs
Normal file
22
Runtime/PSXTexture.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace PSXSplash.RuntimeCode {
|
||||
public enum PSXTextureType {
|
||||
TEX_4BPP,
|
||||
|
||||
TEX_8BPP,
|
||||
|
||||
TEX16_BPP
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class PSXTexture
|
||||
{
|
||||
public PSXTextureType TextureType;
|
||||
public bool Dithering = true;
|
||||
|
||||
public void Export() {
|
||||
Debug.Log($"Export: {this}");
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Runtime/PSXTexture.cs.meta
Normal file
2
Runtime/PSXTexture.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d64b6bb75da33720b928203b2780952
|
||||
Reference in New Issue
Block a user