Difference between revisions of "NDControllerTemplates"
(Created page with "<ObjectTemplate> <ClientId>2</ClientId> <Color>0xFF00FF00</Color> <Name>Time Controller</Name> <Tag>TimeController</Tag> <ObjectVariableComponent/> <ScriptEngineCompo...") |
|||
Line 1: | Line 1: | ||
− | <ObjectTemplate> | + | <p style="width:60%;margin: 0 auto">[[NewDawnHome|[Main]]] [[NDServerIndexTemplateMain|[Templates]]]</p> |
− | + | <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Example Controller ObjectTemplate</p> | |
− | + | <p style="width: 60%;margin: 0 auto">Below is a sample controller object template file.</p> | |
− | + | <div style="width:60%;margin: 0 auto"> | |
− | + | <ObjectTemplate> | |
− | + | <ClientId>2</ClientId> | |
− | + | <Color>0xFF00FF00</Color> | |
− | + | <Name>Time Controller</Name> | |
− | + | <Tag>TimeController</Tag> | |
− | + | <ObjectVariableComponent/> | |
− | + | <ScriptEngineComponent> | |
− | + | <LuaModule Name="shard_time_controller"> | |
− | + | <Initializer> | |
− | + | { | |
− | + | DaylightDurationSecs = 45 * 60, | |
− | + | NighttimeDurationSecs = 15 * 60, | |
− | </ObjectTemplate> | + | } |
+ | </Initializer> | ||
+ | </LuaModule> | ||
+ | </ScriptEngineComponent> | ||
+ | </ObjectTemplate> | ||
+ | </div> |
Latest revision as of 02:26, 5 December 2019
Example Controller ObjectTemplate
Below is a sample controller object template file.
<ObjectTemplate> <ClientId>2</ClientId> <Color>0xFF00FF00</Color> <Name>Time Controller</Name> <Tag>TimeController</Tag> <ObjectVariableComponent/> <ScriptEngineComponent> <LuaModule Name="shard_time_controller"> <Initializer> { DaylightDurationSecs = 45 * 60, NighttimeDurationSecs = 15 * 60, } </Initializer> </LuaModule> </ScriptEngineComponent> </ObjectTemplate>