mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 06:43:58 -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.
11 lines
242 B
JavaScript
11 lines
242 B
JavaScript
function TestScript2A() {}
|
|
|
|
TestScript2A.prototype.Init = function() {
|
|
this.x = eval(this.template.y);
|
|
};
|
|
|
|
TestScript2A.prototype.GetX = function() {
|
|
return this.x;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test2, "TestScript2A", TestScript2A);
|