void Type::SetPrototype(const Object::Ptr& object)
{
m_Prototype = object;
+ NotifyField(0);
}
-void Type::SetField(int id, const Value& value)
+void Type::SetField(int id, const Value& value, bool suppress_events, const Value& cookie)
{
if (id == 0) {
SetPrototype(value);
return;
}
- Object::SetField(id, value);
+ Object::SetField(id, value, suppress_events, cookie);
}
Value Type::GetField(int id) const
static void Register(const Type::Ptr& type);
static Type::Ptr GetByName(const String& name);
- virtual void SetField(int id, const Value& value);
+ virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty);
virtual Value GetField(int id) const;
virtual std::vector<String> GetLoadDependencies(void) const;