C# Class ARCed.Core.GameResource

Base class for resource classes
Inheritance: IComparable
ファイルを表示 Open project: borisblizzard/arcreator

Public Methods

Method Description
Compare ( object obj1, object obj2 ) : int

Compares two objects for equality.

CompareTo ( object other ) : int

Compares two GameResource objects. Local resources are listed first, names are sorted alphabetically within their location.

GameResource ( string filename, Location location, ResourceType type ) : System

Constructor with parameters

Method Details

Compare() public static method

Compares two objects for equality.
public static Compare ( object obj1, object obj2 ) : int
obj1 object First object to compare
obj2 object Second object to compare
return int

CompareTo() public method

Compares two GameResource objects. Local resources are listed first, names are sorted alphabetically within their location.
Thrown when object to compare is not a GameResource
public CompareTo ( object other ) : int
other object GameResource object to compare
return int

GameResource() public method

Constructor with parameters
public GameResource ( string filename, Location location, ResourceType type ) : System
filename string Filename of the resource
location Location Flag for resource location
type ResourceType Flag for resource type
return System