Difference between revisions of "NDControllerTemplates"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(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>
<ClientId>2</ClientId>
+
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Example Controller ObjectTemplate</p>
<Color>0xFF00FF00</Color>
+
<p style="width: 60%;margin: 0 auto">Below is a sample controller object template file.</p>
<Name>Time Controller</Name>
+
<div style="width:60%;margin: 0 auto">
<Tag>TimeController</Tag>
+
<ObjectTemplate>
<ObjectVariableComponent/>
+
<ClientId>2</ClientId>
<ScriptEngineComponent>
+
<Color>0xFF00FF00</Color>
<LuaModule Name="shard_time_controller">
+
<Name>Time Controller</Name>
<Initializer>
+
<Tag>TimeController</Tag>
{
+
<ObjectVariableComponent/>
DaylightDurationSecs = 45 * 60,
+
<ScriptEngineComponent>
NighttimeDurationSecs = 15 * 60,
+
<LuaModule Name="shard_time_controller">
}
+
<Initializer>
</Initializer>
+
{
</LuaModule>
+
DaylightDurationSecs = 45 * 60,
</ScriptEngineComponent>
+
NighttimeDurationSecs = 15 * 60,
</ObjectTemplate>
+
}
 +
</Initializer>
 +
</LuaModule>
 +
</ScriptEngineComponent>
 +
</ObjectTemplate>
 +
</div>

Latest revision as of 02:26, 5 December 2019

[Main] [Templates]

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>