Unit selection and ordering, setTimeout, scheduler, fixed timestep code, various fixes and reinforcement of the JS<->Native code.

This was SVN commit r783.
This commit is contained in:
MarkT
2004-07-20 19:30:35 +00:00
parent be9d6d032f
commit 194fdf9b4b
41 changed files with 2087 additions and 242 deletions
@@ -31,9 +31,12 @@ JSBool JSI_BaseEntity::getProperty( JSContext* cx, JSObject* obj, jsval id, jsva
if( e->m_properties.find( propName ) != e->m_properties.end() )
{
*vp = *(e->m_properties[propName]);
*vp = e->m_properties[propName]->tojsval();
return( JS_TRUE );
}
else
JS_ReportError( cx, "No such property on %s: %s", (const char*)e->m_name, (const char*)propName );
return( JS_TRUE );
}
@@ -48,6 +51,9 @@ JSBool JSI_BaseEntity::setProperty( JSContext* cx, JSObject* obj, jsval id, jsva
e->rebuild( propName );
return( JS_TRUE );
}
else
JS_ReportError( cx, "No such property on %s: %s", (const char*)e->m_name, (const char*)propName );
return( JS_TRUE );
}