瀏覽代碼

Update ParticleAssetEmitter_ScriptBinding.h

Added a few missing console function descriptions. Changed ParticleTarget to IsTargeting.
Peter Robinson 5 年之前
父節點
當前提交
04dd4144f5
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. 11 4
      engine/source/2d/assets/ParticleAssetEmitter_ScriptBinding.h

+ 11 - 4
engine/source/2d/assets/ParticleAssetEmitter_ScriptBinding.h

@@ -123,7 +123,11 @@ ConsoleMethodWithDocs(ParticleAssetEmitter, getEmitterOffset, ConsoleString, 2,
     return object->getEmitterOffset().scriptThis();
 }
 
-ConsoleMethodWithDocs(ParticleAssetEmitter, setTargetParticle, ConsoleVoid, 3, 3, (targetParticle))
+/*! Sets if the emitter targets a point.
+    @param target The point that the emitter's particles will be drawn to.
+    @return No return value.
+*/
+ConsoleMethodWithDocs(ParticleAssetEmitter, setIsTargeting, ConsoleVoid, 3, 3, (target))
 {
    object->setTargetParticle(dAtob(argv[2]));
 }
@@ -131,14 +135,17 @@ ConsoleMethodWithDocs(ParticleAssetEmitter, setTargetParticle, ConsoleVoid, 3, 3
 //-----------------------------------------------------------------------------
 
 /*! Gets whether the emitter targets a point.
-    @return Whether the emitter uses a target for particles.
+    @return True if the emitter uses a target for particles.
 */
-ConsoleMethodWithDocs(ParticleAssetEmitter, getTargetParticle, ConsoleBool, 2, 2, ())
+ConsoleMethodWithDocs(ParticleAssetEmitter, getIsTargeting, ConsoleBool, 2, 2, ())
 {
    return object->getTargetParticle();
 }
 
-
+/* Sets the world point that the emitter will target. Targeting must be turned on with setIsTargeting().
+    @param Position The world point that will be the target.
+    @return No return value.
+*/
 ConsoleMethodWithDocs(ParticleAssetEmitter, setTargetPosition, ConsoleVoid, 3, 4, (float X / float Y))
 {
    // Grab the element count.