KIND Library

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(Supported Tags)
(Supported Tags)
Line 12: Line 12:
 
Each Library asset supports the following tags. Each tag is shown here with its default value.
 
Each Library asset supports the following tags. Each tag is shown here with its default value.
 
* ''always-load-in-global-context'' if set to '1', library is always loaded to [[New_TrainzScript_Features#Global_script_context|global script context]]
 
* ''always-load-in-global-context'' if set to '1', library is always loaded to [[New_TrainzScript_Features#Global_script_context|global script context]]
 +
* ''controlset'' specifies a [[KIND Controlset|controlset]] asset to link to this library
  
 
==Example Config.txt==
 
==Example Config.txt==

Revision as of 14:13, 19 October 2011

KIND Library is a coded module that interacts with other coded modules.

Contents

KIND Hierarchy

Parent Classes

  • none.

Child Classes

  • none.


Supported Tags

Each Library asset supports the following tags. Each tag is shown here with its default value.

  • always-load-in-global-context if set to '1', library is always loaded to global script context
  • controlset specifies a controlset asset to link to this library

Example Config.txt

Sample config.txt file for a library asset, with the Standard Tags excluded for brevity:

kind   "library"
script "LibraryScript.gs"
class  "LibraryClass"

Downloads

Attach sample files here?

Categories

Personal tools