Difference between revisions of "User:Glyph/sandbox"
From Kerbal Space Program Wiki
Line 1: | Line 1: | ||
− | + | <!-- Class tables autogenerated by Glyph's kerbal_wiki_pdoc program for KSP 1.04. Using syntax set up for the wiki by N3X15, format from DOCTOOLS (I'm not clear if DOCTOOLS is the script used to generate N3X15's old version of these tables, or some mediawiki thing). --> | |
+ | {{Class | ||
+ | |inherits={{Type|MonoBehaviour}} | ||
+ | |implements=<ul></ul> | ||
+ | |name=PartModule | ||
+ | |summary= | ||
+ | }} | ||
+ | |||
+ | {{PropertiesStart}} | ||
+ | {{Property | ||
+ | |type=BaseActionList | ||
+ | |name=Actions | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=int | ||
+ | |name=ClassID | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=string | ||
+ | |name=ClassName | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=BaseEventList | ||
+ | |name=Events | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=BaseFieldList | ||
+ | |name=Fields | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=string | ||
+ | |name=GUIName | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=Part | ||
+ | |name=part | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset=1 | ||
+ | }} | ||
+ | {{Property | ||
+ | |type=Vessel | ||
+ | |name=vessel | ||
+ | |desc=? | ||
+ | |hasget=1 | ||
+ | |hasset= | ||
+ | }} | ||
+ | {{PropertiesEnd}} | ||
+ | |||
+ | {{FieldsStart}} | ||
+ | {{Field | ||
+ | |type=bool | ||
+ | |name=isEnabled | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Field | ||
+ | |type=string | ||
+ | |name=moduleName | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Field | ||
+ | |type=ProtoPartModuleSnapshot | ||
+ | |name=snapshot | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Field | ||
+ | |type=enum | ||
+ | |name=StartState | ||
+ | |desc={ None, Editor, PreLaunch, Landed = 4, Docked = 8, Flying = 16, Splashed = 32, SubOrbital = 64, Orbital = 128 } | ||
+ | }} | ||
+ | {{FieldsEnd}} | ||
{{MethodsStart}} | {{MethodsStart}} | ||
+ | {{Method | ||
+ | |returntype=constructor | ||
+ | |returndesc= | ||
+ | |name=PartModule | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=void | ||
+ | |returndesc= | ||
+ | |name=Load | ||
+ | |args={{arg|ConfigNode|node}} | ||
+ | |desc=? | ||
+ | }} | ||
{{Method | {{Method | ||
|returntype=void | |returntype=void | ||
|returndesc= | |returndesc= | ||
− | |name= | + | |name=Save |
− | |args={{arg| | + | |args={{arg|ConfigNode|node}} |
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=string GetInfo | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnActive | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnAwake | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnFixedUpdate | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnInactive | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnInitialize | ||
+ | |args= | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnLoad | ||
+ | |args={{arg|ConfigNode|node}} | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnSave | ||
+ | |args={{arg|ConfigNode|node}} | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnStart | ||
+ | |args={{arg|StartState|state}} | ||
+ | |desc=? | ||
+ | }} | ||
+ | {{Method | ||
+ | |returntype=virtual | ||
+ | |returndesc= | ||
+ | |name=void OnUpdate | ||
+ | |args= | ||
|desc=? | |desc=? | ||
}} | }} | ||
{{MethodsEnd}} | {{MethodsEnd}} |
Revision as of 20:43, 12 October 2015
Contents
PartModule Class
Inherits | Implements |
---|---|
MonoBehaviour | |
Properties
The following are public properties available in Glyph/sandbox.
Signature | Description |
---|---|
BaseActionList Actions { get; } | ? |
int ClassID { get; } | ? |
string ClassName { get; } | ? |
BaseEventList Events { get; } | ? |
BaseFieldList Fields { get; } | ? |
string GUIName { get; } | ? |
Part part { get; set; } | ? |
Vessel vessel { get; } | ? |
Fields
The following is a list of publically-accessible fields in Glyph/sandbox. This includes protected items, which can be accessed by subclasses.
Signature | Description |
---|---|
bool isEnabled | ? |
string moduleName | ? |
ProtoPartModuleSnapshot snapshot | ? |
enum StartState | { None, Editor, PreLaunch, Landed = 4, Docked = 8, Flying = 16, Splashed = 32, SubOrbital = 64, Orbital = 128 } |
Methods
The following are methods included in Glyph/sandbox.
Signature | Description |
---|---|
constructor PartModule() | ? |
void Load(ConfigNode node) | ? |
void Save(ConfigNode node) | ? |
virtual string GetInfo() | ? |
virtual void OnActive() | ? |
virtual void OnAwake() | ? |
virtual void OnFixedUpdate() | ? |
virtual void OnInactive() | ? |
virtual void OnInitialize() | ? |
virtual void OnLoad(ConfigNode node) | ? |
virtual void OnSave(ConfigNode node) | ? |
virtual void OnStart(StartState state) | ? |
virtual void OnUpdate() | ? |