Ykkrosh
4fed9b8242
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.
12 lines
315 B
JavaScript
12 lines
315 B
JavaScript
function TestScript1_AddEntity() {}
|
|
|
|
TestScript1_AddEntity.prototype.GetX = function()
|
|
{
|
|
if (Engine.AddEntity("bogus-template-name") !== 0)
|
|
throw new Error("bogus AddEntity failed");
|
|
|
|
return Engine.AddEntity("test1");
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "TestScript1_AddEntity", TestScript1_AddEntity);
|