New Event: EShoot. New Components: PrimaryItem,SecondaryItem. New Test: ShootEventTest. Added LeftMouseRelease->Shoot in PlayerSystem

TODO: generalize the test
This commit is contained in:
verysecrethero
2016-01-08 16:19:18 +01:00
parent 4a516a4d86
commit 31c1c0ac8d
13 changed files with 266 additions and 0 deletions
+3
View File
@@ -9,4 +9,7 @@
<xs:include schemaLocation="Components/AABB.xsd"/>
<xs:include schemaLocation="Components/Trigger.xsd"/>
<xs:include schemaLocation="Components/Health.xsd"/>
<xs:include schemaLocation="Components/PrimaryItem.xsd"/>
<xs:include schemaLocation="Components/SecondaryItem.xsd"/>
</xs:schema>
+1
View File
@@ -1,4 +1,5 @@
<c:Player>
<EquippedItem>0</EquippedItem>
<Velocity X="0" Y="0" Z="0"/>
<Forward>false</Forward>
<Left>false</Left>
+1
View File
@@ -11,6 +11,7 @@
<xs:element name="Left" type="t:bool" minOccurs="0"/>
<xs:element name="Back" type="t:bool" minOccurs="0"/>
<xs:element name="Right" type="t:bool" minOccurs="0"/>
<xs:element name="EquippedItem" type="t:int" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
@@ -0,0 +1,4 @@
<c:PrimaryItem>
<Ammo>0</Ammo>
<CoolDownTimer>0</CoolDownTimer>
</c:Player>
@@ -0,0 +1,14 @@
<?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="PrimaryItem">
<xs:complexType>
<xs:all>
<xs:element name="Ammo" type="t:int" minOccurs="0"/>
<xs:element name="CoolDownTimer" type="t:double" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
@@ -0,0 +1,4 @@
<c:SecondaryItem>
<Ammo>0</Ammo>
<CoolDownTimer>0</CoolDownTimer>
</c:Player>
@@ -0,0 +1,14 @@
<?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="SecondaryItem">
<xs:complexType>
<xs:all>
<xs:element name="Ammo" type="t:int" minOccurs="0"/>
<xs:element name="CoolDownTimer" type="t:double" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
+2
View File
@@ -16,6 +16,8 @@
<xs:element ref="c:RaptorCopter" minOccurs="0"/>
<xs:element ref="c:Player" minOccurs="0"/>
<xs:element ref="c:Health" minOccurs="0"/>
<xs:element ref="c:PrimaryItem" minOccurs="0"/>
<xs:element ref="c:SecondaryItem" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>