register_meta


Description:

public bool register_meta (MetaFlag flags, string meta_item, Value value)

Sets the value of the specified field of the meta container to the given value, and registers the field to only hold a value of the same type.

After calling this, only values of the same type as value can be set for this field. The given flags can be set to make this field only readable after calling this method.

Parameters:

this

A MetaContainer

flags

Flags to be used for the registered field

meta_item

The key for the this field to register

value

The value to set for the registered field

Returns:

true if the meta_item field was successfully registered on this to only hold value types, with the given flags, and the field was successfully set to value .