Skip to content

Commit

Permalink
✨ Terrains now load terrn2 [Races] by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Nov 30, 2024
1 parent fd37aed commit 3a02667
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 307 deletions.
9 changes: 9 additions & 0 deletions resources/scripts/default.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#include "base.as"

#include "races.as"
racesManager races;

void main()
{
int numRaces = races.loadRacesFromTerrn2();
if (numRaces < 0)
game.log("Error loading races from terrn2 [Races]: " + numRaces);
else
game.log("Loaded " + numRaces + " race-defs");

game.log("default terrain script loaded");
}
Loading

0 comments on commit 3a02667

Please sign in to comment.