mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 05:44:08 -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.
18 lines
482 B
JavaScript
18 lines
482 B
JavaScript
function TestScript1_Interface() {}
|
|
|
|
TestScript1_Interface.prototype.GetX = function()
|
|
{
|
|
return IID_TestScriptIfc + Engine.QueryInterface(this.entity, IID_TestScriptIfc).Method();
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "TestScript1_Interface", TestScript1_Interface);
|
|
|
|
|
|
function TestScript2_Interface() {}
|
|
|
|
TestScript2_Interface.prototype.Method = function()
|
|
{
|
|
return 1000;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_TestScriptIfc, "TestScript2_Interface", TestScript2_Interface);
|