mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 21:34:08 -07:00
13 lines
301 B
JavaScript
13 lines
301 B
JavaScript
function TestScript2A() {}
|
|
|
|
TestScript2A.prototype.Schema = "<ref name='anything'/>";
|
|
|
|
TestScript2A.prototype.Init = function() {
|
|
this.x = eval(this.template.y);
|
|
};
|
|
|
|
TestScript2A.prototype.GetX = function() {
|
|
return this.x;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test2, "TestScript2A", TestScript2A);
|