Changes

Jump to navigation Jump to search
456 bytes removed ,  15:14, 6 February 2020
Line 269: Line 269:     
=== Example ===
 
=== Example ===
−
==== XML layout ====
+
==== TyD layout ====
−
<pre><Root Base="Server Rack" Thumbnail="BigServerRackThumb.png" UpgradeFrom="Server Rack">
+
Furniture
−
<Models>
+
{
−
<Model>
+
Base "Server Rack"
−
<File>BigServerRack.obj</File>
+
Thumbnail "BigServerRackThumb.png"
−
<Position>0,0,0</Position>
+
UpgradeFrom "Server Rack"
−
<Rotation>0,270,0</Rotation>
+
Models
−
<Scale>1,1,1</Scale>
+
[
−
</Model>
+
{
−
</Models>
+
File "BigServerRack.obj"
−
<InteractionPoints>
+
Position [ 0; 0; 0 ]
−
<InteractionPoint>
+
  Rotation [ 0; 270; 0 ]
−
<Name>Repair</Name>
+
Scale [ 1; 1; 1 ]
−
<Position>0,0,1</Position>
+
}
−
<Rotation>0,180,0</Rotation>
+
]
−
<Animation>Repair</Animation>
+
InteractionPoints
−
<Child>1</Child>
+
[
−
</InteractionPoint>
+
{
−
<InteractionPoint>
+
Name Repair
−
<Name>Repair</Name>
+
Position [ 0; 0; 1 ]
−
<Position>0,0,-1</Position>
+
Rotation [ 0; 180; 0 ]
−
<Rotation>0,0,0</Rotation>
+
Animation Repair
−
<Animation>Repair</Animation>
+
Child 1
−
<Child>0</Child>
+
}
−
</InteractionPoint>
+
{
−
</InteractionPoints>
+
Name Repair
−
<Furniture>
+
Position [ 0; 0; -1 ]
−
<Cost>12000</Cost>
+
Rotation [ 0; 0; 0 ]
−
<Wattage>50</Wattage>
+
Animation Repair
−
<Noisiness>2</Noisiness>
+
Child 0
−
<UnlockYear>2010</UnlockYear>
+
}
−
<ButtonDescription>When you can't get enough server</ButtonDescription>
+
]
−
<ColorPrimaryDefault>0.2,0.2,0.2,1</ColorPrimaryDefault>
+
Furniture
−
<PrimaryColorName>0.2,0.2,0.2,1</PrimaryColorName>
+
{
−
<ColorSecondaryDefault>0.3,0.3,0.3,1</ColorSecondaryDefault>
+
Cost 12000
−
<ColorTertiaryDefault>0,0.8,1,1</ColorTertiaryDefault>
+
Wattage 50
−
<ColorSecondaryEnabled>True</ColorSecondaryEnabled>
+
Noisiness 2
−
<ColorTertiaryEnabled>True</ColorTertiaryEnabled>
+
UnlockYear 2010
−
<ForceColorSecondary>False</ForceColorSecondary>
+
Height1 0
−
<ForceColorTertiary>False</ForceColorTertiary>
+
Height2 1.8
−
<PrimaryColorName>Casing</PrimaryColorName>
+
OnXEdge True
−
<SecondaryColorName>Casing</SecondaryColorName>
+
ButtonDescription "When you can't get enough server"
−
<TertiaryColorName>LED</TertiaryColorName>
+
ColorPrimaryDefault "#333333"
−
<BuildBoundary>
+
ColorSecondaryDefault "#4D4D4D"
−
-0.99,-0.49
+
ColorTertiaryDefault "#00C8AA"
−
0.99,-0.49
+
ColorPrimaryEnabled True
−
0.99,0.49
+
ColorSecondaryEnabled True
−
-0.99,0.49</BuildBoundary>
+
ColorTertiaryEnabled True
−
<NavBoundary>
+
ForceColorSecondary False
−
-1,-0.5
+
ForceColorTertiary False
−
1,-0.5
+
PrimaryColorName Casing
−
1,0.5
+
SecondaryColorName Casing
−
-1,0.5</NavBoundary>
+
TertiaryColorName LED
−
<Height1>0</Height1>
+
BuildBoundary
−
<Height2>1.8</Height2>
+
[
−
<OnXEdge>True</OnXEdge>
+
[ -0.99; -0.49 ]
−
</Furniture>
+
[ 0.99; -0.49 ]
−
<Upgradable>
+
[ 0.99; 0.49 ]
−
<UpgradePrice>1000</UpgradePrice>
+
[ -0.99; 0.49 ]
−
</Upgradable>
+
]
−
<Server>
+
NavBoundary
−
<Power>10000</Power>
+
[
−
</Server>
+
[ -1; -0.5 ]
−
<BoxCollider>
+
[ 1; -0.5 ]
−
<center>0,0.9,0</center>
+
[ 1; 0.5 ]
−
<size>2,1.8,1</size>
+
[ -1; 0.5 ]
−
</BoxCollider>
+
]
−
</Root></pre>
+
}
 +
Upgradable { UpgradePrice; 1000 }
 +
 +
Server { TimeToAtrophy; 96 }
 +
 +
BoxCollider
 +
{
 +
center [ 0; 0.9; 0 ]
 +
size [ 2; 1.8; 1 ]
 +
}
 +
}
    
==== Texture used for the in-game waiting chairs ====
 
==== Texture used for the in-game waiting chairs ====
 
[[File:WChairsExample.png]]
 
[[File:WChairsExample.png]]

Navigation menu