/// <description>
 /// Add the object being created to an undo action.
 /// </description>
 /// <param name="obj">Object being created you want to create the undo for.</param>
 public void AddObject(SimObject obj)
 {
     InternalUnsafeMethods.AddObject__Args _args = new InternalUnsafeMethods.AddObject__Args()
     {
         obj = obj.ObjectPtr,
     };
     InternalUnsafeMethods.AddObject()(ObjectPtr, _args);
 }
Beispiel #2
0
 /// <description>
 /// ( SimObject pObject ) - Add a child object to this node.
 /// </description>
 /// <param name="pObject">The SimObjectID of the object to be added to this node.</param>
 /// <returns>No return value.</returns>
 public void AddObject(SimObject simObj = null)
 {
     InternalUnsafeMethods.AddObject__Args _args = new InternalUnsafeMethods.AddObject__Args()
     {
         simObj = simObj.ObjectPtr,
     };
     InternalUnsafeMethods.AddObject()(ObjectPtr, _args);
 }