New Event: EShoot. New Components: PrimaryItem,SecondaryItem. New Test: ShootEventTest. Added LeftMouseRelease->Shoot in PlayerSystem
TODO: generalize the test
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<c:Player>
|
||||
<EquippedItem>0</EquippedItem>
|
||||
<Velocity X="0" Y="0" Z="0"/>
|
||||
<Forward>false</Forward>
|
||||
<Left>false</Left>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user