Tesseract Engine Documentation

XML.CreateGameObjectType Method 

Create an GameObject using the "type" string included in the XmlNode. User-Defined types can be added to the engine by inheriting from GameObjectTypes and overloading it's CreateGameobjectType method. This method must create a new GameObject and assign it to the incoming GameObject. Creation of the GameObject by the overloaded User-Defined class should use a case statement to decide what kind of GameObject to create based on the Xml-based "type" parameter.

public static bool CreateGameObjectType(
   ref GameObject& gameObject


A blank GameObject to replace with User-Defined GameObject.

Return Value

Returns true if GameObject was successfully created.

See Also

XML Class | DarkWynter.Engine.Init Namespace