mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 23:03:56 -07:00
Merge from 22b478ffed8d. Pure scripted interface definitions. Entity creation from scripts. Improved messaging system. Messages on entity deletion. Basic player entities. Player ownership. Bug fixes. This was SVN commit r7281.
6 lines
182 B
JavaScript
6 lines
182 B
JavaScript
Engine.LoadComponentScript("Player.js");
|
|
|
|
var cmp = ConstructComponent(10, "Player");
|
|
|
|
TS_ASSERT_EQUALS(cmp.GetPopulationCount(), 0);
|
|
TS_ASSERT_EQUALS(cmp.GetPopulationLimit(), 50);
|