shared.dataInput:
Added shared.enums.XMLFileType, which is used to specify if a string contains a file path or file contents. Updated the XML readers to use it. Testing: Moved the networking tests and resources into racevisionGame module. Moved the remaining tests from visualiser into racevisionGame, and added a few empty tests to implement later.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package shared.enums;
|
||||
|
||||
/**
|
||||
* Represents the various ways in which we want to open/read an xml file - e.g., a string may contain the file contents, or the file path.
|
||||
*/
|
||||
public enum XMLFileType {
|
||||
|
||||
/**
|
||||
* This means that a provided string contains the contents of an XML file.
|
||||
*/
|
||||
Contents,
|
||||
|
||||
/**
|
||||
* This means that a provided string contains the path to an XML file.
|
||||
*/
|
||||
FilePath,
|
||||
|
||||
/**
|
||||
* This means that a provided string contains the path, to be loaded as a resource, of an XML file.
|
||||
*/
|
||||
ResourcePath;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user