| Package | PBLabs.Engine.Core |
| Class | public class ObjectType |
| Implements | ISerializable |
See also
| Property | Defined by | ||
|---|---|---|---|
| Bits : int [read-only]
The bitmask that this type wraps.
| ObjectType | ||
| TypeName : String
The name of the type associated with this object type.
| ObjectType | ||
| TypeNames : Array
A list of all the type names associated with this object type.
| ObjectType | ||
| Wildcard : ObjectType
[static][read-only]
| ObjectType | ||
| Method | Defined by | ||
|---|---|---|---|
|
ObjectType(type:String = null)
| ObjectType | ||
|
Deserialize(xml:XML):*
The xml description for this class can be either a single string, which will
then be assigned to the TypeName property, or a list of strings, each in their
own child tag (the name of which doesn't matter).
| ObjectType | ||
|
Serialize(xml:XML):void
Serializes the object to XML.
| ObjectType | ||
| Bits | property |
Bits:int [read-only]The bitmask that this type wraps. This should not be used directly. Instead, use the various test methods on the ObjectTypeManager.
Implementation public function get Bits():int
See also
| TypeName | property |
TypeName:String [read-write]The name of the type associated with this object type. If multiple names have been assigned, a random one is returned.
Implementation public function get TypeName():String
public function set TypeName(value:String):void
| TypeNames | property |
TypeNames:Array [read-write]A list of all the type names associated with this object type.
Implementation public function get TypeNames():Array
public function set TypeNames(value:Array):void
| Wildcard | property |
| ObjectType | () | constructor |
public function ObjectType(type:String = null)Parameters
type:String (default = null) |
| Deserialize | () | method |
public function Deserialize(xml:XML):*The xml description for this class can be either a single string, which will then be assigned to the TypeName property, or a list of strings, each in their own child tag (the name of which doesn't matter). Deserializes the object from xml. The format of the xml passed is custom, depending on the way the object was serialized with the Serialize method.
Parametersxml:XML — The xml containing the serialized definition of the class.
|
* — The deserialized object. Usually 'this' should be returned, but in
some cases it may be useful to return something else. The Enumerable class
does this to force all values to be a member of the enumeration.
|
| Serialize | () | method |
public function Serialize(xml:XML):voidSerializes the object to XML. This should not include the main tag defining the class itself.
Parametersxml:XML — The xml object to which the serialization of this class should
be added. This xml object is a single tag containing the main class definition,
so only children of this class should be added to it.
|