Lots of things done
This commit is contained in:
@@ -8,4 +8,5 @@
|
||||
<xs:include schemaLocation="Components/Player.xsd"/>
|
||||
<xs:include schemaLocation="Components/AABB.xsd"/>
|
||||
<xs:include schemaLocation="Components/Trigger.xsd"/>
|
||||
<xs:include schemaLocation="Components/CoolDeathAnim.xsd"/>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,5 @@
|
||||
<c:CoolDeathAnim>
|
||||
<OriginPos X="0" Y="0" Z="0"/>
|
||||
<TimeSinceDeath>0</TimeSinceDeath>
|
||||
<EndOfDeath>15</EndOfDeath>
|
||||
</c:CoolDeathAnim>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||
|
||||
<xs:element name="CoolDeathAnim">
|
||||
<xs:annotation>
|
||||
<xs:documentation>A component that trigger the death effect</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="OriginPos" type="t:Vector" minOccurs="0">
|
||||
<xs:annotation><xs:documentation>The position in which to spawn the component</xs:documentation></xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="TimeSinceDeath" type="t:double" minOccurs="0">
|
||||
<xs:annotation><xs:documentation>Time since death</xs:documentation></xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="EndOfDeath" type="t:double" minOccurs="0">
|
||||
<xs:annotation><xs:documentation>How long the death animation should be</xs:documentation></xs:annotation>
|
||||
</xs:element>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -66,12 +66,17 @@
|
||||
<Components>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="0"/>
|
||||
<Orientation X="0.0" Y="0" Z="1.0"/>
|
||||
<Orientation X="0.0" Y="0.0" Z="0"/>
|
||||
</c:Transform>
|
||||
<c:Model>
|
||||
<Resource>Models/Core/UnitRaptor.obj</Resource>
|
||||
<Color R="1" G="0.4" B="0.8"/>
|
||||
</c:Model>
|
||||
<c:CoolDeathAnim>
|
||||
<OriginPos X="0" Y="0" Z="0"/>
|
||||
<TimeSinceDeath>0</TimeSinceDeath>
|
||||
<EndOfDeath>15</EndOfDeath>
|
||||
</c:CoolDeathAnim>
|
||||
</Components>
|
||||
<Children>
|
||||
<Entity>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<xs:element ref="c:Test" minOccurs="0"/>
|
||||
<xs:element ref="c:RaptorCopter" minOccurs="0"/>
|
||||
<xs:element ref="c:Player" minOccurs="0"/>
|
||||
<xs:element ref="c:CoolDeathAnim" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
Reference in New Issue
Block a user