wow, its like resource management!
git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1063 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
17
OpenRa.Core/Resource.cs
Normal file
17
OpenRa.Core/Resource.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenRa.Core
|
||||
{
|
||||
public interface IResource { }
|
||||
|
||||
public abstract class Resource<T> : IResource
|
||||
where T : Resource<T>
|
||||
{
|
||||
public static T Get(string filename)
|
||||
{
|
||||
return (T)ResourceCache.Get(filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user