Difference between revisions of "User:Glyph/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 98: Line 98:
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=void
+
   |returntype=virtual string
 
   |returndesc=
 
   |returndesc=
   |name=Load
+
   |name=GetInfo
   |args={{arg|ConfigNode|node}}
+
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
Line 107: Line 107:
 
   |returntype=void
 
   |returntype=void
 
   |returndesc=
 
   |returndesc=
   |name=Save
+
   |name=Load
 
   |args={{arg|ConfigNode|node}}
 
   |args={{arg|ConfigNode|node}}
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=string GetInfo
+
   |name=OnActive
 
   |args=
 
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnActive
+
   |name=OnAwake
 
   |args=
 
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnAwake
+
   |name=OnFixedUpdate
 
   |args=
 
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnFixedUpdate
+
   |name=OnInactive
 
   |args=
 
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnInactive
+
   |name=OnInitialize
 
   |args=
 
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnInitialize
+
   |name=OnLoad
   |args=
+
   |args={{arg|ConfigNode|node}}
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnLoad
+
   |name=OnSave
 
   |args={{arg|ConfigNode|node}}
 
   |args={{arg|ConfigNode|node}}
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnSave
+
   |name=OnStart
   |args={{arg|ConfigNode|node}}
+
   |args={{arg|StartState|state}}
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=virtual void
 
   |returndesc=
 
   |returndesc=
   |name=void OnStart
+
   |name=OnUpdate
   |args={{arg|StartState|state}}
+
   |args=
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{Method
 
{{Method
   |returntype=virtual
+
   |returntype=void
 
   |returndesc=
 
   |returndesc=
   |name=void OnUpdate
+
   |name=Save
   |args=
+
   |args={{arg|ConfigNode|node}}
 
   |desc=?
 
   |desc=?
 
}}
 
}}
 
{{MethodsEnd}}
 
{{MethodsEnd}}

Revision as of 20:50, 12 October 2015

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()  ?
    virtual string GetInfo()  ?
    void Load(ConfigNode node)  ?
    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()  ?
    void Save(ConfigNode node)  ?