Cleaned up asset loading system, and made progress on game engine structure.
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace RecrownedGTK.AssetsSystem.Information {
|
||||
/// <summary>
|
||||
/// Describes a serializable datatype.
|
||||
/// Meant for use as a part of the asset pipeline.
|
||||
/// </summary>
|
||||
public interface IInfo
|
||||
{
|
||||
Type type {get;}
|
||||
IDisposable CreateUseable();
|
||||
}
|
||||
}
|
12
RecrownedGTK/AssetsSystem/Information/IInformation.cs
Normal file
12
RecrownedGTK/AssetsSystem/Information/IInformation.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace RecrownedGTK.AssetsSystem.Information {
|
||||
/// <summary>
|
||||
/// An interface that describes an information class.
|
||||
/// An information class is class that can produce a useable asset object.
|
||||
/// In the asset pipeline, this is the second step, after loading the asset data.
|
||||
/// </summary>
|
||||
public interface IInformation
|
||||
{
|
||||
}
|
||||
}
|
@@ -5,7 +5,7 @@ namespace RecrownedGTK.AssetsSystem.Information {
|
||||
public struct TextureInfo : IInfo {
|
||||
public readonly byte[] textureData;
|
||||
int width, height;
|
||||
public Type type => typeof(TextureData);
|
||||
public Type resultingType => typeof(TextureData);
|
||||
public TextureInfo(int width, int height, byte[] textureData) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
Reference in New Issue
Block a user