Ian Burgmyer
7 years ago
5 changed files with 126 additions and 27 deletions
@ -0,0 +1,22 @@
|
||||
namespace DotSDL { |
||||
/// <summary> |
||||
/// Specifies an object that contains a resource. |
||||
/// </summary> |
||||
internal interface IResourceObject { |
||||
/// <summary> |
||||
/// <c>true</c> if the underlying <see cref="IResourceObject"/> has been destoryed, otherwise <c>false</c>. |
||||
/// </summary> |
||||
bool IsDestroyed { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Destroys this <see cref="IResourceObject"/>. |
||||
/// </summary> |
||||
void DestroyObject(); |
||||
|
||||
/// <summary> |
||||
/// Retrieves the SDL resource ID for the object instance.. |
||||
/// </summary> |
||||
/// <returns>The reousrce ID for the object instance.</returns> |
||||
uint GetResourceId(); |
||||
} |
||||
} |
@ -1,24 +0,0 @@
|
||||
using System; |
||||
|
||||
namespace DotSDL { |
||||
/// <summary> |
||||
/// Describes an SDL resource. These objects are tracked using the |
||||
/// <see cref="ResourceManager"/>. |
||||
/// </summary> |
||||
internal class Resource { |
||||
/// <summary> |
||||
/// The type of resource represeented by this instance. |
||||
/// </summary> |
||||
internal ResourceType Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// The numeric ID of the resource. |
||||
/// </summary> |
||||
internal uint ResourceId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// The pointer to the resource's SDL object. |
||||
/// </summary> |
||||
internal IntPtr ResourcePtr { get; set; } |
||||
} |
||||
} |
Loading…
Reference in new issue