forked from 0ad/0ad
Renamed tech and formation directories for better organization, and created a scripts directory for the game startup script, entity scripts, and eventually things like victory condition scripts for different game modes, or possibly triggers.
This was SVN commit r3995.
This commit is contained in:
parent
52077dfec5
commit
005983f237
@ -72,7 +72,7 @@
|
||||
|
||||
|
||||
|
||||
<Script File="entities/template_entity_script.js" />
|
||||
<Script File="scripts/entity_functions.js" />
|
||||
<Event On="Initialize" Function="entityInit" />
|
||||
<Event On="PrepareOrder" Function="entityEventPrepareOrder" />
|
||||
</Entity>
|
@ -16,7 +16,7 @@
|
||||
</Creation>
|
||||
</Traits>
|
||||
|
||||
<Script File="entities/template_entity_script.js" />
|
||||
<Script File="scripts/entity_functions.js" />
|
||||
<Event On="Generic" Function="entityEventGeneric" />
|
||||
<Event On="TargetChanged" Function="entityEventTargetChanged" />
|
||||
<Event On="Notification" Function="entityEventNotification" />
|
||||
|
@ -22,6 +22,6 @@
|
||||
|
||||
</Traits>
|
||||
|
||||
<Script File="entities/template_entity_script.js" />
|
||||
<Script File="scripts/entity_functions.js" />
|
||||
<Event On="Death" Function="foundationDestroyed" />
|
||||
</Entity>
|
@ -36,7 +36,7 @@
|
||||
</Vision>
|
||||
</Traits>
|
||||
|
||||
<Script File="entities/template_entity_script.js" />
|
||||
<Script File="scripts/entity_functions.js" />
|
||||
<Event On="StartProduction" Function="entityStartProduction" />
|
||||
<Event On="CancelProduction" Function="entityCancelProduction" />
|
||||
<Event On="FinishProduction" Function="entityFinishProduction" />
|
||||
|
@ -99,6 +99,6 @@
|
||||
|
||||
</Actions>
|
||||
|
||||
<Script File="entities/template_entity_script.js" />
|
||||
<Script File="scripts/entity_functions.js" />
|
||||
<Event On="StartConstruction" Function="entityStartConstruction" />
|
||||
</Entity>
|
6
binaries/data/mods/official/scripts/game_startup.js
Normal file
6
binaries/data/mods/official/scripts/game_startup.js
Normal file
@ -0,0 +1,6 @@
|
||||
/*
|
||||
DESCRIPTION : Script called when the game is started, which should initialize the players and their units based on the game settings.
|
||||
NOTES :
|
||||
*/
|
||||
|
||||
console.write( "Game startup script done." );
|
Loading…
Reference in New Issue
Block a user