Further information:
customClasses...
entity.setValueForKey( "party", "customClass" );
This makes the entities derive from the party custom class.
Things of notice are these:
validForKey( aValue, aKey )
valueForKey( aValue, aKey )
allKeys()
These can be used for programmed variables*, access to all the keys available, or for your own error-handling. Try to keep it backward compatible... An example of this:
PHP Code:
public function validForKey( aValue, aKey )
{
if ( simplemanagedobject::validForKey( aValue, aKey ) )
{
// Your error-handling here!
if ( player.account == "Novo" )
return true;
return false;
}
return false;
}
* Programmed Variables will surely depend on the 'dependencies' functionality. It is currently AVAILABLE, however, it needs a better set-up for it to work appropiately!
Oh... Attachment shows how it could be implemented for muds.