1
0
forked from 0ad/0ad

Possible speed optimisation for gaia entities (don't inherit the usual events and the entity script).

This was SVN commit r2842.
This commit is contained in:
Acumen 2005-10-03 20:57:10 +00:00
parent 5e3b6fcbe3
commit 7abf24b6c6
7 changed files with 19 additions and 11 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity Parent="template_entity"> <Entity Parent="template_entity_quasi">
<Traits> <Traits>
<Id <Id
civ_code="gaia" civ_code="gaia"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity Parent="template_entity"> <Entity Parent="template_entity_full">
<Traits> <Traits>
<Id <Id
civ_code="gaia" civ_code="gaia"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity Parent="template_entity"> <Entity Parent="template_entity_full">
<Traits> <Traits>
<Id <Id
generic="Generic Structure" generic="Generic Structure"

View File

@ -32,13 +32,6 @@
type="Ground" type="Ground"
/> />
</Traits> </Traits>
<Script File="entities/template_entity_script.js" />
<Event On="Attack" Function="entity_event_attack" />
<Event On="Gather" Function="entity_event_gather" />
<Event On="TakesDamage" Function="entity_event_takesdamage" />
<Event On="TargetChanged" Function="entity_event_targetchanged" />
<Event On="PrepareOrder" Function="entity_event_prepareorder" />
<Actions /> <Actions />
</Entity> </Entity>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity parent="template_entity">
<Script File="entities/template_entity_script.js" />
<Event On="Attack" Function="entity_event_attack" />
<Event On="Gather" Function="entity_event_gather" />
<Event On="TakesDamage" Function="entity_event_takesdamage" />
<Event On="TargetChanged" Function="entity_event_targetchanged" />
<Event On="PrepareOrder" Function="entity_event_prepareorder" />
</Entity>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity parent="template_entity">
</Entity>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity Parent="template_entity"> <Entity Parent="template_entity_full">
<Traits> <Traits>
<Id <Id
generic="Generic Unit" generic="Generic Unit"