mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 21:34:08 -07:00
Giant merge from http://svn.wildfiregames.com/hg-source/file/5fb522019d5e Infrastructure is largely complete, gameplay is largely missing Disabled by default; use command-line flag "-sim2" (Second attempt at commit...) This was SVN commit r7259.
12 lines
268 B
JavaScript
12 lines
268 B
JavaScript
function TestScript1A() {}
|
|
|
|
TestScript1A.prototype.GetX = function() {
|
|
// Test that .entity is readonly
|
|
delete this.entity;
|
|
this.entity = -1;
|
|
|
|
// and return the value
|
|
return this.entity;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "TestScript1A", TestScript1A);
|