示例#1
0
 /// <description>
 /// Script callback when a message is first created and registered.
 /// </description>
 /// <code>
 /// function Message::onAdd(%this)
 /// {
 ///     // Perform on add code here
 /// }
 /// </code>
 public virtual void OnAdd()
 {
     InternalUnsafeMethods.OnAdd__Args _args = new InternalUnsafeMethods.OnAdd__Args()
     {
     };
     InternalUnsafeMethods.OnAdd()(ObjectPtr, _args);
 }
示例#2
0
 /// <summary>Called when the object is added to the scene.</summary>
 /// <description>
 ///
 /// </description>
 /// <param name="obj">the GameBase object</param>
 /// <code>
 /// datablock GameBaseData(MyObjectData)
 /// {
 ///    category = "Misc";
 /// };
 ///
 /// function MyObjectData::onAdd( %this, %obj )
 /// {
 ///    echo( "Added "@ %obj.getName()
 /// </code>
 public virtual void OnAdd(GameBase obj)
 {
     InternalUnsafeMethods.OnAdd__Args _args = new InternalUnsafeMethods.OnAdd__Args()
     {
         obj = obj.ObjectPtr,
     };
     InternalUnsafeMethods.OnAdd()(ObjectPtr, _args);
 }
示例#3
0
 /// <summary>Called when the Trigger is being created.</summary>
 /// <description>
 ///
 /// </description>
 /// <param name="objectId">the object id of the Trigger being created</param>
 public virtual void OnAdd(uint objectId)
 {
     InternalUnsafeMethods.OnAdd__Args _args = new InternalUnsafeMethods.OnAdd__Args()
     {
         objectId = objectId,
     };
     InternalUnsafeMethods.OnAdd()(ObjectPtr, _args);
 }