Kerbal Space Program
1.12.4
|
A singleton class which parses the game directory for config files and files of various types. It creates a simple url access for these files and configs so they can be used in the game scripts. Contains the main instance of GameSettings. More...
Classes | |
class | TextureInfo |
Public Member Functions | |
List< AudioClip > | AudioClipNameContains (string nameContains) |
Returns a list of the elements which name contains the parameter More... | |
bool | ExistsAudioClip (string url) |
Tests for existance AudioClip of given url More... | |
bool | ExistsConfigNode (string url) |
Tests existance of ConfigNode of given url More... | |
bool | ExistsModel (string url) |
Tests existance of model (GameObject) of given url More... | |
bool | ExistsShader (string url) |
Tests for existance Shader of given url More... | |
bool | ExistsTexture (string url) |
Tests for existance of Texture2D of given url More... | |
List< TextureInfo > | GetAllTexturesInFolder (string folderURL) |
Retrieves a list of TextureInfo that are contained within this folder (with trailing /) More... | |
List< TextureInfo > | GetAllTexturesInFolderType (string folderName, bool caseInsensitive=false) |
Retrieves a list of TextureInfo that are contained within folders of given name More... | |
AudioClip | GetAudioClip (string url) |
Retrieves AudioClip of given url. Returns null if not found. More... | |
UrlDir.UrlFile | GetAudioFile (string url) |
Retrieves AudioClip of given url. Returns null if not found. More... | |
ConfigNode | GetConfigNode (string url) |
Retrieves ConfigNode of given url. Returns null if not found. More... | |
ConfigNode[] | GetConfigNodes (string typeName) |
Retrieves all ConfigNodes of the given type name. Returns empty array if none found. More... | |
ConfigNode[] | GetConfigNodes (string baseUrl, string typeName) |
Returns all ConfigNodes in a given url heirarchy of given type name. Returns empty array if none found. More... | |
UrlDir.UrlConfig[] | GetConfigs (string typeName) |
Returns all UrlConfig objects of given type name. Returns empty array if none found. More... | |
ConfigNode | GetMergedConfigNodes (string nodeName, bool mergeChildren=false) |
Merge all the root config nodes with the given name into a single one. More... | |
GameObject | GetModel (string url) |
Retrieves model (GameObject) of given url. Returns null if not found. More... | |
UrlDir.UrlFile | GetModelFile (string url) |
Retrieves model (GameObject) of given url. Returns null if not found. More... | |
UrlDir.UrlFile | GetModelFile (GameObject modelPrefab) |
Retrieves model (GameObject) of given url. Returns null if not found. More... | |
GameObject | GetModelIn (string url) |
Retrieves first model (GameObject) in a given url directory. Returns null if not found. More... | |
GameObject | GetModelPrefab (string url) |
Retrieves model (GameObject) of given url. Returns null if not found. More... | |
GameObject | GetModelPrefabIn (string url) |
Retrieves first model (GameObject) in a given url directory. Returns null if not found. More... | |
Shader | GetShader (string url) |
Retrieves Shader of given url. Returns null if not found. More... | |
Texture2D | GetTexture (string url, bool asNormalMap) |
Retrieves Texture2D of given url. Returns null if not found. More... | |
UrlDir.UrlFile | GetTextureFile (string url) |
Retrieves file of given url. Returns null if not found. More... | |
Texture2D | GetTextureIn (string url, string textureName, bool asNormalMap) |
Retrieves Texture in a given url directory with given name. Returns null if not found. More... | |
TextureInfo | GetTextureInfo (string url) |
Retrieves Texture2D of given url. Returns null if not found. More... | |
TextureInfo | GetTextureInfoIn (string url, string textureName) |
Retrieves Texture in a given url directory with given name. Returns null if not found. More... | |
override bool | IsReady () |
void | LoadEmpty () |
Initialized the Database in an empty state, so it is active but doesn't start off the loading process. More... | |
override float | ProgressFraction () |
override string | ProgressTitle () |
bool | RemoveAudioClip (string url) |
Removes audio of given url. returns true if successful, false if not found More... | |
bool | RemoveModel (string url) |
Removes Model of given url. returns true if successful, false if not found More... | |
bool | RemoveShader (string url) |
Removes audio of given url. returns true if successful, false if not found More... | |
bool | RemoveTexture (string url) |
Removes Texture of given url. returns true if successful, false if not found More... | |
bool | ReplaceTexture (string url, TextureInfo newTex) |
Removes Texture of given url. returns true if successful, false if not found More... | |
override void | StartLoad () |
override string | ToString () |
Public Member Functions inherited from LoadingSystem | |
virtual float | LoadWeight () |
Static Public Member Functions | |
static Texture2D | BitmapToUnityNormalMap (Texture2D tex) |
static void | CompileConfig (ConfigNode node) |
static void | LoadLoaderInfo (ConfigNode node, Dictionary< string, bool > dest) |
static void | SaveLoaderInfo (ConfigNode node, Dictionary< string, bool > dest) |
static void | UpdateLoaderInfo (Dictionary< string, bool > dest) |
Public Attributes | |
List< AudioClip > | databaseAudio = new List<AudioClip>() |
List< UrlDir.UrlFile > | databaseAudioFiles = new List<UrlDir.UrlFile>() |
List< GameObject > | databaseModel = new List<GameObject>() |
List< UrlDir.UrlFile > | databaseModelFiles = new List<UrlDir.UrlFile>() |
List< Shader > | databaseShaders = new List<Shader>() |
the url root node More... | |
List< TextureInfo > | databaseTexture = new List<TextureInfo>() |
Properties | |
static string | EnvironmentInfo [get] |
Experience.ExperienceSystemConfig | ExperienceConfigs [get] |
static GameDatabase | Instance [get] |
GameDatabase singleton instance More... | |
static bool | Modded [get] |
string | PluginDataFolder [get] |
bool | Recompile [get, set] |
bool | RecompileModels [get, set] |
UrlDir | root [get] |
string | settingsFileName [get] |
The filename for the settings file More... | |
A singleton class which parses the game directory for config files and files of various types. It creates a simple url access for these files and configs so they can be used in the game scripts. Contains the main instance of GameSettings.
|
inline |
Returns a list of the elements which name contains the parameter
nameContains |
|
inlinestatic |
|
inlinestatic |
|
inline |
Tests for existance AudioClip of given url
|
inline |
Tests existance of ConfigNode of given url
|
inline |
Tests existance of model (GameObject) of given url
|
inline |
Tests for existance Shader of given url
|
inline |
Tests for existance of Texture2D of given url
|
inline |
Retrieves a list of TextureInfo that are contained within this folder (with trailing /)
|
inline |
Retrieves a list of TextureInfo that are contained within folders of given name
|
inline |
Retrieves AudioClip of given url. Returns null if not found.
|
inline |
Retrieves AudioClip of given url. Returns null if not found.
|
inline |
Retrieves ConfigNode of given url. Returns null if not found.
|
inline |
Retrieves all ConfigNodes of the given type name. Returns empty array if none found.
|
inline |
Returns all ConfigNodes in a given url heirarchy of given type name. Returns empty array if none found.
|
inline |
Returns all UrlConfig objects of given type name. Returns empty array if none found.
|
inline |
Merge all the root config nodes with the given name into a single one.
nodeName | Name of the config node(s) to merge. |
mergeChildren | Whether child nodes should also be merged. |
|
inline |
Retrieves model (GameObject) of given url. Returns null if not found.
|
inline |
Retrieves model (GameObject) of given url. Returns null if not found.
|
inline |
Retrieves model (GameObject) of given url. Returns null if not found.
|
inline |
Retrieves first model (GameObject) in a given url directory. Returns null if not found.
|
inline |
Retrieves model (GameObject) of given url. Returns null if not found.
|
inline |
Retrieves first model (GameObject) in a given url directory. Returns null if not found.
|
inline |
Retrieves Shader of given url. Returns null if not found.
|
inline |
Retrieves Texture2D of given url. Returns null if not found.
|
inline |
Retrieves file of given url. Returns null if not found.
|
inline |
Retrieves Texture in a given url directory with given name. Returns null if not found.
|
inline |
Retrieves Texture2D of given url. Returns null if not found.
|
inline |
Retrieves Texture in a given url directory with given name. Returns null if not found.
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inline |
Initialized the Database in an empty state, so it is active but doesn't start off the loading process.
< create the directory structure
|
inlinestatic |
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inline |
Removes audio of given url. returns true if successful, false if not found
|
inline |
Removes Model of given url. returns true if successful, false if not found
|
inline |
Removes audio of given url. returns true if successful, false if not found
|
inline |
Removes Texture of given url. returns true if successful, false if not found
|
inline |
Removes Texture of given url. returns true if successful, false if not found
|
inlinestatic |
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inline |
|
inlinestatic |
List<AudioClip> GameDatabase.databaseAudio = new List<AudioClip>() |
List<UrlDir.UrlFile> GameDatabase.databaseAudioFiles = new List<UrlDir.UrlFile>() |
List<GameObject> GameDatabase.databaseModel = new List<GameObject>() |
List<UrlDir.UrlFile> GameDatabase.databaseModelFiles = new List<UrlDir.UrlFile>() |
List<Shader> GameDatabase.databaseShaders = new List<Shader>() |
the url root node
List<TextureInfo> GameDatabase.databaseTexture = new List<TextureInfo>() |
|
staticget |
|
get |
|
staticget |
GameDatabase singleton instance
|
staticget |
|
get |
|
getset |
|
getset |
|
get |
|
get |
The filename for the settings file