Skip to content

MountClasses ​

Inherits: RefCounted

Finds the classes that can be chosen in the Mounts editor: every script in data_classes/mount/seats/ that extends Seat, every script in data_classes/mount/drive_logic/ that extends DriveLogic, and every script in data_classes/mount/seat_ai/ that extends SeatAI. Add a script to a folder and it shows up in the editor list, with its exported variables as fields: this is how a game adds a TurretSeat or a HoverDrive.

Methods ​

Array[Script]get_seat_classes() static
Array[Script]get_drive_classes() static
Array[Script]get_ai_classes() static
Resourcemake( script: Script ) static
Stringtype_name( script: Script ) static
Stringtype_description( script: Script ) static
Scriptscript_of( object: Object ) static

Constants ​

  • String SEAT_FOLDER = "res://addons/chroniclenode/data_classes/mount/seats/"
  • String DRIVE_FOLDER = "res://addons/chroniclenode/data_classes/mount/drive_logic/"
  • String AI_FOLDER = "res://addons/chroniclenode/data_classes/mount/seat_ai/"

Method descriptions ​

Array[Script] get_seat_classes() ​

The seat classes (the base class is not in the list)

Array[Script] get_drive_classes() ​

The drive logic classes (the base class is not in the list)

Array[Script] get_ai_classes() ​

The AI classes of the seats (the base class is not in the list)

Resource make( script: Script ) ​

A new object of a class found in a folder

String type_name( script: Script ) ​

The name of a class in the editor list: what the class says it is, or its file name made readable

String type_description( script: Script ) ​

The sentence about a class, for the editor

Script script_of( object: Object ) ​

The class (its script) of an object that was made from one of the classes