Advertisement
cheprogrammer

ResourceManager Prototype

Feb 25th, 2016
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. public static class ResourceManager<T> where T : UniqueEntity
  2. {
  3.     public static string ResoucePath = "data";
  4.  
  5.     public static bool IsLoaded { get; private set; }
  6.  
  7.     public static string ResourceFilename {get; }
  8.  
  9.     private static List<T> Resources { get; set; }
  10.  
  11.     private static UInt16 _currentIdentifireID = 1;
  12.  
  13.  
  14.     static ResourceManager();
  15.  
  16.     public static T GetResource(int id);
  17.  
  18.     public static void AddResource(T item);
  19.  
  20.     public static IEnumerable<T> GetResources();
  21.  
  22.     public static void Load();
  23.  
  24.     public static void Save();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement