GearLib
Loading...
Searching...
No Matches
GearLib.API.Behaviour Class Reference

Base class for a Behaviour to attach to your Part. Ideal usage is inheriting from this class (public class MyBehaviour : Behaviour {}) More...

Inheritance diagram for GearLib.API.Behaviour:

Public Member Functions

override void LoadJsonProperty (JsonReader reader, string propertyName)
 !! NOT FOR MODDER USE !!
Used by GearBlocks for loading your Part properties.
 
override void SaveJsonProperties (JsonWriter writer)
 !! NOT FOR MODDER USE !!
Used by GearBlocks for saving your Part properties.
 
List< GameObject > GetLinkedParts (string link_name)
 Gets a list of all Parts linked to the Link Type.
 
AttachmentBase GetAttachment (string attachment_name)
 Gets a specific attachment by Attachment Name.
 

Public Attributes

Dictionary< string, TweakableBase > tweakables_dict = new Dictionary<string, TweakableBase>()
 

Properties

override string Name [get]
 
PartDescriptor descriptor [get]
 
Composite composite [get]
 
Rigidbody rigidBody [get]
 
Construction construction [get]
 

Detailed Description

Base class for a Behaviour to attach to your Part. Ideal usage is inheriting from this class (public class MyBehaviour : Behaviour {})

Member Function Documentation

◆ GetAttachment()

AttachmentBase GearLib.API.Behaviour.GetAttachment ( string attachment_name)

Gets a specific attachment by Attachment Name.

Parameters
attachment_nameUnique string ID of the attachment.
Returns

◆ GetLinkedParts()

List< GameObject > GearLib.API.Behaviour.GetLinkedParts ( string link_name)

Gets a list of all Parts linked to the Link Type.

Parameters
link_nameUnique string ID of the Link Type.
Returns
List of Parts

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