1 Component added: CapturePoint

1 System added: CapturePointSystem
1 Test added: CapturePointTest
added 1 variable in PlayerComponent (TeamNumber)
added 2 variables in CapturePoint (CaptureTimer,OwnedBy)
CapturePointSystem is now handling 2 events: OnTriggerTouch,OnTriggerLeave
Added the CapturePointSystem to Game.cpp
This commit is contained in:
verysecrethero
2016-01-12 16:35:55 +01:00
parent 147b116f20
commit 59be714fdc
11 changed files with 325 additions and 1 deletions
+1 -1
View File
@@ -11,5 +11,5 @@
<xs:include schemaLocation="Components/Health.xsd"/>
<xs:include schemaLocation="Components/PrimaryItem.xsd"/>
<xs:include schemaLocation="Components/SecondaryItem.xsd"/>
<xs:include schemaLocation="Components/CapturePoint.xsd"/>
</xs:schema>
@@ -0,0 +1,4 @@
<c:CapturePoint>
<CaptureTimer>0</CaptureTimer>
<OwnedBy>0</OwnedBy>
</c:CapturePoint>
@@ -0,0 +1,17 @@
<?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="CapturePoint">
<xs:annotation>
<xs:documentation>A Capture Point</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="CaptureTimer" type="t:double" minOccurs="0"/>
<xs:element name="OwnedBy" type="t:int" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
+1
View File
@@ -1,4 +1,5 @@
<c:Player>
<TeamNumber>0</TeamNumber>
<EquippedItem>0</EquippedItem>
<Velocity X="0" Y="0" Z="0"/>
<Forward>false</Forward>
+1
View File
@@ -15,6 +15,7 @@
<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:element name="TeamNumber" type="t:int" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
+1
View File
@@ -18,6 +18,7 @@
<xs:element ref="c:Health" minOccurs="0"/>
<xs:element ref="c:PrimaryItem" minOccurs="0"/>
<xs:element ref="c:SecondaryItem" minOccurs="0"/>
<xs:element ref="c:CapturePoint" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>