1
0
forked from mirrors/0ad

Script integration work - valueOf() is no longer required most of the time; also property-change watches and enumeration over entities (but not yet other native objects), rudimentary beginnings of a global events system, and adjusted the status orb to update only on changes.

This was SVN commit r2157.
This commit is contained in:
MarkT
2005-04-22 07:12:55 +00:00
parent 498d58ee61
commit bcabe3aa53
38 changed files with 942 additions and 959 deletions
+4 -4
View File
@@ -48,10 +48,10 @@ void SColour::SColourInit( float _r, float _g, float _b, float _a )
void SColour::ScriptingInit()
{
AddMethod<jsval, &SColour::ToString>( "toString", 0 );
AddClassProperty<float>( L"r", (float IJSObject::*)&SColour::r );
AddClassProperty<float>( L"g", (float IJSObject::*)&SColour::g );
AddClassProperty<float>( L"b", (float IJSObject::*)&SColour::b );
AddClassProperty<float>( L"a", (float IJSObject::*)&SColour::a );
AddProperty<float>( L"r", (float IJSObject::*)&SColour::r );
AddProperty<float>( L"g", (float IJSObject::*)&SColour::g );
AddProperty<float>( L"b", (float IJSObject::*)&SColour::b );
AddProperty<float>( L"a", (float IJSObject::*)&SColour::a );
CJSObject<SColour>::ScriptingInit( "Colour", SColour::Construct, 3 );
}