예제 #1
0
 /// <summary>
 /// This function is used to retrieve a resource from its name. A resource's name is the same as its folder or file archive name on the server (without the extension).
 /// </summary>
 public static Resource Get(string name)
 {
     return(new Resource(MtaShared.GetResourceFromName(name)));
 }
예제 #2
0
 /// <summary>
 /// Only used to extend a specific resource class
 /// </summary>
 /// <param name="name">The name of the resource</param>
 protected Resource(string name) : this(MtaShared.GetResourceFromName(name))
 {
 }