Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
ScriptOffloadingAssistant.ScriptComponent Class Reference

Describes a script component attached to a game object More...

Public Member Functions

bool CanSave ()
 
void Fix (ScriptOffloadingAssistant.ScriptComponent scRef)
 
void OnSceneLoaded (string sceneName)
 
void Save (ConfigNode node)
 
 ScriptComponent (GameObject root, GameObject host, MonoBehaviour script, int cIndex)
 
 ScriptComponent (ConfigNode node)
 

Public Attributes

MonoScript codeAsset
 
string codeAssetPath
 
int compIndex
 
GameObject host
 
int hostRootIndex
 
string hostUrl
 
string indexPath
 
bool isRefToPrefab
 
bool IsStock
 
GameObject prefab
 
string prefabPath
 
string scene
 
MonoBehaviour script
 
string typeName
 

Detailed Description

Describes a script component attached to a game object

Constructor & Destructor Documentation

ScriptOffloadingAssistant.ScriptComponent.ScriptComponent ( GameObject  root,
GameObject  host,
MonoBehaviour  script,
int  cIndex 
)
inline
ScriptOffloadingAssistant.ScriptComponent.ScriptComponent ( ConfigNode  node)
inline

< Only prefab refs cache their host refs here. Scene refs wait until their scene is loaded (and cache hosts through OnSceneLoaded)

Member Function Documentation

bool ScriptOffloadingAssistant.ScriptComponent.CanSave ( )
inline
void ScriptOffloadingAssistant.ScriptComponent.Fix ( ScriptOffloadingAssistant.ScriptComponent  scRef)
inline
void ScriptOffloadingAssistant.ScriptComponent.OnSceneLoaded ( string  sceneName)
inline
void ScriptOffloadingAssistant.ScriptComponent.Save ( ConfigNode  node)
inline

Member Data Documentation

MonoScript ScriptOffloadingAssistant.ScriptComponent.codeAsset
string ScriptOffloadingAssistant.ScriptComponent.codeAssetPath
int ScriptOffloadingAssistant.ScriptComponent.compIndex
GameObject ScriptOffloadingAssistant.ScriptComponent.host
int ScriptOffloadingAssistant.ScriptComponent.hostRootIndex
string ScriptOffloadingAssistant.ScriptComponent.hostUrl
string ScriptOffloadingAssistant.ScriptComponent.indexPath
bool ScriptOffloadingAssistant.ScriptComponent.isRefToPrefab
bool ScriptOffloadingAssistant.ScriptComponent.IsStock
GameObject ScriptOffloadingAssistant.ScriptComponent.prefab
string ScriptOffloadingAssistant.ScriptComponent.prefabPath
string ScriptOffloadingAssistant.ScriptComponent.scene
MonoBehaviour ScriptOffloadingAssistant.ScriptComponent.script
string ScriptOffloadingAssistant.ScriptComponent.typeName

The documentation for this class was generated from the following file: