Browse Source

Fix AngelScript bindings on MSVC (asMETHODPR macro needs to be used in the template base class registration functions to allow static_cast to work). Make the class names links on the attribute list page.

Lasse Öörni 11 years ago
parent
commit
b4ba4a3573
3 changed files with 80 additions and 80 deletions
  1. 69 69
      Docs/ScriptAPI.dox
  2. 10 10
      Source/Engine/Script/APITemplates.h
  3. 1 1
      Source/Engine/Script/ScriptAPIDump.cpp

+ 69 - 69
Docs/ScriptAPI.dox

@@ -611,7 +611,7 @@ namespace Urho3D
 
 
 \page AttributeList Attribute list
 \page AttributeList Attribute list
 
 
-### %AnimatedModel
+### AnimatedModel
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Model : ResourceRef
 - %Model : ResourceRef
 - %Material : ResourceRefList
 - %Material : ResourceRefList
@@ -630,7 +630,7 @@ namespace Urho3D
 - %Zone %Mask : int
 - %Zone %Mask : int
 - %Animation %States : VariantVector
 - %Animation %States : VariantVector
 
 
-### %AnimatedSprite2D
+### AnimatedSprite2D
 - %Speed : float
 - %Speed : float
 - %Cycle %Mode : int
 - %Cycle %Mode : int
 - %Animation : ResourceRef
 - %Animation : ResourceRef
@@ -648,10 +648,10 @@ namespace Urho3D
 - %Shadow %Mask : int
 - %Shadow %Mask : int
 - %Zone %Mask : int
 - %Zone %Mask : int
 
 
-### %AnimationController
+### AnimationController
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 
 
-### %BillboardSet
+### BillboardSet
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Material : ResourceRef
 - %Material : ResourceRef
 - %Relative %Position : bool
 - %Relative %Position : bool
@@ -670,7 +670,7 @@ namespace Urho3D
 - %Zone %Mask : int
 - %Zone %Mask : int
 - %Billboards : VariantVector
 - %Billboards : VariantVector
 
 
-### %BorderImage
+### BorderImage
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -710,7 +710,7 @@ namespace Urho3D
 - %Tiled : bool
 - %Tiled : bool
 - %Blend %Mode : int
 - %Blend %Mode : int
 
 
-### %Button
+### Button
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -754,7 +754,7 @@ namespace Urho3D
 - %Repeat %Delay : float
 - %Repeat %Delay : float
 - %Repeat %Rate : float
 - %Repeat %Rate : float
 
 
-### %Camera
+### Camera
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Near %Clip : float
 - %Near %Clip : float
 - %Far %Clip : float
 - %Far %Clip : float
@@ -774,7 +774,7 @@ namespace Urho3D
 - %Use %Reflection : bool
 - %Use %Reflection : bool
 - %Use %Clipping : bool
 - %Use %Clipping : bool
 
 
-### %CheckBox
+### CheckBox
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -816,7 +816,7 @@ namespace Urho3D
 - %Is %Checked : bool
 - %Is %Checked : bool
 - %Checked %Image %Offset : IntVector2
 - %Checked %Image %Offset : IntVector2
 
 
-### %CollisionBox2D
+### CollisionBox2D
 - %Size : Vector2
 - %Size : Vector2
 - %Center : Vector2
 - %Center : Vector2
 - %Angle : float
 - %Angle : float
@@ -828,7 +828,7 @@ namespace Urho3D
 - %Friction : float
 - %Friction : float
 - %Restitution : float
 - %Restitution : float
 
 
-### %CollisionChain2D
+### CollisionChain2D
 - %Loop : bool
 - %Loop : bool
 - %Trigger : bool
 - %Trigger : bool
 - %Category %Bits : int
 - %Category %Bits : int
@@ -838,7 +838,7 @@ namespace Urho3D
 - %Friction : float
 - %Friction : float
 - %Restitution : float
 - %Restitution : float
 
 
-### %CollisionCircle2D
+### CollisionCircle2D
 - %Radius : float
 - %Radius : float
 - %Center : Vector2
 - %Center : Vector2
 - %Trigger : bool
 - %Trigger : bool
@@ -849,7 +849,7 @@ namespace Urho3D
 - %Friction : float
 - %Friction : float
 - %Restitution : float
 - %Restitution : float
 
 
-### %CollisionEdge2D
+### CollisionEdge2D
 - %Vertex 1 : Vector2
 - %Vertex 1 : Vector2
 - %Vertex 2 : Vector2
 - %Vertex 2 : Vector2
 - %Trigger : bool
 - %Trigger : bool
@@ -860,7 +860,7 @@ namespace Urho3D
 - %Friction : float
 - %Friction : float
 - %Restitution : float
 - %Restitution : float
 
 
-### %CollisionPolygon2D
+### CollisionPolygon2D
 - %Trigger : bool
 - %Trigger : bool
 - %Category %Bits : int
 - %Category %Bits : int
 - %Mask %Bits : int
 - %Mask %Bits : int
@@ -869,7 +869,7 @@ namespace Urho3D
 - %Friction : float
 - %Friction : float
 - %Restitution : float
 - %Restitution : float
 
 
-### %CollisionShape
+### CollisionShape
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Shape %Type : int
 - %Shape %Type : int
 - %Size : Vector3
 - %Size : Vector3
@@ -880,7 +880,7 @@ namespace Urho3D
 - %Collision %Margin : float
 - %Collision %Margin : float
 - %CustomGeometry %NodeID : int
 - %CustomGeometry %NodeID : int
 
 
-### %Constraint
+### Constraint
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Constraint %Type : int
 - %Constraint %Type : int
 - %Position : Vector3
 - %Position : Vector3
@@ -894,24 +894,24 @@ namespace Urho3D
 - %CFM %Parameter : float
 - %CFM %Parameter : float
 - %Disable %Collision : bool
 - %Disable %Collision : bool
 
 
-### %ConstraintDistance2D
+### ConstraintDistance2D
 - %Owner %Body %Anchor : Vector2
 - %Owner %Body %Anchor : Vector2
 - %Other %Body %Anchor : Vector2
 - %Other %Body %Anchor : Vector2
 - %Frequency %Hz : float
 - %Frequency %Hz : float
 - %Damping %Ratio : float
 - %Damping %Ratio : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintFriction2D
+### ConstraintFriction2D
 - %Anchor : Vector2
 - %Anchor : Vector2
 - %Max %Force : float
 - %Max %Force : float
 - %Max %Torque : float
 - %Max %Torque : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintGear2D
+### ConstraintGear2D
 - %Ratio : float
 - %Ratio : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintMotor2D
+### ConstraintMotor2D
 - %Linear %Offset : Vector2
 - %Linear %Offset : Vector2
 - %Angular %Offset : float
 - %Angular %Offset : float
 - %Max %Force : float
 - %Max %Force : float
@@ -919,14 +919,14 @@ namespace Urho3D
 - %Correction %Factor : float
 - %Correction %Factor : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintMouse2D
+### ConstraintMouse2D
 - %Target : Vector2
 - %Target : Vector2
 - %Max %Force : float
 - %Max %Force : float
 - %Frequency %Hz : float
 - %Frequency %Hz : float
 - %Damping %Ratio : float
 - %Damping %Ratio : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintPrismatic2D
+### ConstraintPrismatic2D
 - %Anchor : Vector2
 - %Anchor : Vector2
 - %Axis : Vector2
 - %Axis : Vector2
 - %Enable %Limit : bool
 - %Enable %Limit : bool
@@ -937,7 +937,7 @@ namespace Urho3D
 - %Motor %Speed : float
 - %Motor %Speed : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintPulley2D
+### ConstraintPulley2D
 - %Owner %Body %Ground %Anchor : Vector2
 - %Owner %Body %Ground %Anchor : Vector2
 - %Other %Body %Ground %Anchor : Vector2
 - %Other %Body %Ground %Anchor : Vector2
 - %Owner %Body %Anchor : Vector2
 - %Owner %Body %Anchor : Vector2
@@ -945,7 +945,7 @@ namespace Urho3D
 - %Ratio : float
 - %Ratio : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintRevolute2D
+### ConstraintRevolute2D
 - %Anchor : Vector2
 - %Anchor : Vector2
 - %Enable %Limit : bool
 - %Enable %Limit : bool
 - %Lower %Angle : float
 - %Lower %Angle : float
@@ -955,19 +955,19 @@ namespace Urho3D
 - %Max %Motor %Torque : float
 - %Max %Motor %Torque : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintRope2D
+### ConstraintRope2D
 - %Owner %Body %Anchor : Vector2
 - %Owner %Body %Anchor : Vector2
 - %Other %Body %Anchor : Vector2
 - %Other %Body %Anchor : Vector2
 - %Max %Length : float
 - %Max %Length : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintWeld2D
+### ConstraintWeld2D
 - %Anchor : Vector2
 - %Anchor : Vector2
 - %Frequency %Hz : float
 - %Frequency %Hz : float
 - %Damping %Ratio : float
 - %Damping %Ratio : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %ConstraintWheel2D
+### ConstraintWheel2D
 - %Anchor : Vector2
 - %Anchor : Vector2
 - %Axis : Vector2
 - %Axis : Vector2
 - %Enable %Motor : bool
 - %Enable %Motor : bool
@@ -977,7 +977,7 @@ namespace Urho3D
 - %Damping %Ratio : float
 - %Damping %Ratio : float
 - %Collide %Connected : bool
 - %Collide %Connected : bool
 
 
-### %Cursor
+### Cursor
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1019,7 +1019,7 @@ namespace Urho3D
 - %Use %System %Shapes : bool
 - %Use %System %Shapes : bool
 - %Shapes : VariantVector
 - %Shapes : VariantVector
 
 
-### %CustomGeometry
+### CustomGeometry
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Materials : ResourceRefList
 - %Materials : ResourceRefList
 - %Is %Occluder : bool
 - %Is %Occluder : bool
@@ -1034,7 +1034,7 @@ namespace Urho3D
 - %Shadow %Mask : int
 - %Shadow %Mask : int
 - %Zone %Mask : int
 - %Zone %Mask : int
 
 
-### %DecalSet
+### DecalSet
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Material : ResourceRef
 - %Material : ResourceRef
 - %Max %Vertices : int
 - %Max %Vertices : int
@@ -1047,7 +1047,7 @@ namespace Urho3D
 - %Shadow %Mask : int
 - %Shadow %Mask : int
 - %Zone %Mask : int
 - %Zone %Mask : int
 
 
-### %DropDownList
+### DropDownList
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1094,7 +1094,7 @@ namespace Urho3D
 - %Selection : int
 - %Selection : int
 - %Resize %Popup : bool
 - %Resize %Popup : bool
 
 
-### %Light
+### Light
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Light %Type : int
 - %Light %Type : int
 - %Color : Color
 - %Color : Color
@@ -1128,7 +1128,7 @@ namespace Urho3D
 - %View %Mask : int
 - %View %Mask : int
 - %Light %Mask : int
 - %Light %Mask : int
 
 
-### %LineEdit
+### LineEdit
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1174,7 +1174,7 @@ namespace Urho3D
 - %Cursor %Blink %Rate : float
 - %Cursor %Blink %Rate : float
 - %Echo %Character : int
 - %Echo %Character : int
 
 
-### %ListView
+### ListView
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1216,12 +1216,12 @@ namespace Urho3D
 - %Base %Indent : int
 - %Base %Indent : int
 - %Clear %Sel. %On %Defocus : bool
 - %Clear %Sel. %On %Defocus : bool
 
 
-### %LuaScriptInstance
+### LuaScriptInstance
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Script %File : ResourceRef
 - %Script %File : ResourceRef
 - %Script %Object %Type : String
 - %Script %Object %Type : String
 
 
-### %Menu
+### Menu
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1266,11 +1266,11 @@ namespace Urho3D
 - %Repeat %Rate : float
 - %Repeat %Rate : float
 - %Popup %Offset : IntVector2
 - %Popup %Offset : IntVector2
 
 
-### %Navigable
+### Navigable
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Recursive : bool
 - %Recursive : bool
 
 
-### %NavigationMesh
+### NavigationMesh
 - %Tile %Size : int
 - %Tile %Size : int
 - %Cell %Size : float
 - %Cell %Size : float
 - %Cell %Height : float
 - %Cell %Height : float
@@ -1286,13 +1286,13 @@ namespace Urho3D
 - %Detail %Sample %Max %Error : float
 - %Detail %Sample %Max %Error : float
 - %Bounding %Box %Padding : Vector3
 - %Bounding %Box %Padding : Vector3
 
 
-### %NetworkPriority
+### NetworkPriority
 - %Base %Priority : float
 - %Base %Priority : float
 - %Distance %Factor : float
 - %Distance %Factor : float
 - %Minimum %Priority : float
 - %Minimum %Priority : float
 - %Always %Update %Owner : bool
 - %Always %Update %Owner : bool
 
 
-### %Node
+### Node
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Name : String
 - %Name : String
 - %Position : Vector3
 - %Position : Vector3
@@ -1300,18 +1300,18 @@ namespace Urho3D
 - %Scale : Vector3
 - %Scale : Vector3
 - %Variables : VariantMap
 - %Variables : VariantMap
 
 
-### %Octree
+### Octree
 - %Bounding %Box %Min : Vector3
 - %Bounding %Box %Min : Vector3
 - %Bounding %Box %Max : Vector3
 - %Bounding %Box %Max : Vector3
 - %Number %of %Levels : int
 - %Number %of %Levels : int
 
 
-### %OffMeshConnection
+### OffMeshConnection
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Endpoint %NodeID : int
 - %Endpoint %NodeID : int
 - %Radius : float
 - %Radius : float
 - %Bidirectional : bool
 - %Bidirectional : bool
 
 
-### %ParticleEmitter
+### ParticleEmitter
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Material : ResourceRef
 - %Material : ResourceRef
 - %Max %Particles : int
 - %Max %Particles : int
@@ -1353,7 +1353,7 @@ namespace Urho3D
 - %Period %Timer : float
 - %Period %Timer : float
 - %Emission %Timer : float
 - %Emission %Timer : float
 
 
-### %ParticleEmitter2D
+### ParticleEmitter2D
 - %Particle %Effect : ResourceRef
 - %Particle %Effect : ResourceRef
 - %Layer : int
 - %Layer : int
 - %Order %in %Layer : int
 - %Order %in %Layer : int
@@ -1366,7 +1366,7 @@ namespace Urho3D
 - %Shadow %Mask : int
 - %Shadow %Mask : int
 - %Zone %Mask : int
 - %Zone %Mask : int
 
 
-### %PhysicsWorld
+### PhysicsWorld
 - %Gravity : Vector3
 - %Gravity : Vector3
 - %Physics %FPS : int
 - %Physics %FPS : int
 - %Solver %Iterations : int
 - %Solver %Iterations : int
@@ -1375,7 +1375,7 @@ namespace Urho3D
 - %Internal %Edge %Utility : bool
 - %Internal %Edge %Utility : bool
 - %Split %Impulse : bool
 - %Split %Impulse : bool
 
 
-### %PhysicsWorld2D
+### PhysicsWorld2D
 - %Draw %Shape : bool
 - %Draw %Shape : bool
 - %Draw %Joint : bool
 - %Draw %Joint : bool
 - %Draw %Aabb : bool
 - %Draw %Aabb : bool
@@ -1390,7 +1390,7 @@ namespace Urho3D
 - %Velocity %Iterations : int
 - %Velocity %Iterations : int
 - %Position %Iterations : int
 - %Position %Iterations : int
 
 
-### %RigidBody
+### RigidBody
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Mass : float
 - %Mass : float
 - %Friction : float
 - %Friction : float
@@ -1416,7 +1416,7 @@ namespace Urho3D
 - %Is %Trigger : bool
 - %Is %Trigger : bool
 - %Gravity %Override : Vector3
 - %Gravity %Override : Vector3
 
 
-### %RigidBody2D
+### RigidBody2D
 - %Body %Type : int
 - %Body %Type : int
 - %Mass : float
 - %Mass : float
 - %Inertia : float
 - %Inertia : float
@@ -1432,7 +1432,7 @@ namespace Urho3D
 - %Linear %Velocity : Vector2
 - %Linear %Velocity : Vector2
 - %Angular %Velocity : float
 - %Angular %Velocity : float
 
 
-### %Scene
+### Scene
 - %Name : String
 - %Name : String
 - %Time %Scale : float
 - %Time %Scale : float
 - %Smoothing %Constant : float
 - %Smoothing %Constant : float
@@ -1440,12 +1440,12 @@ namespace Urho3D
 - %Elapsed %Time : float
 - %Elapsed %Time : float
 - %Variables : VariantMap
 - %Variables : VariantMap
 
 
-### %ScriptInstance
+### ScriptInstance
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Script %File : ResourceRef
 - %Script %File : ResourceRef
 - %Class %Name : String
 - %Class %Name : String
 
 
-### %ScrollBar
+### ScrollBar
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1487,7 +1487,7 @@ namespace Urho3D
 - %Up %Image %Rect : IntRect
 - %Up %Image %Rect : IntRect
 - %Down %Image %Rect : IntRect
 - %Down %Image %Rect : IntRect
 
 
-### %ScrollView
+### ScrollView
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1524,7 +1524,7 @@ namespace Urho3D
 - %Page %Step : float
 - %Page %Step : float
 - %Auto %Show/Hide %Scrollbars : bool
 - %Auto %Show/Hide %Scrollbars : bool
 
 
-### %Skybox
+### Skybox
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Model : ResourceRef
 - %Model : ResourceRef
 - %Material : ResourceRefList
 - %Material : ResourceRefList
@@ -1541,7 +1541,7 @@ namespace Urho3D
 - %Zone %Mask : int
 - %Zone %Mask : int
 - %Occlusion %LOD %Level : int
 - %Occlusion %LOD %Level : int
 
 
-### %Slider
+### Slider
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1585,10 +1585,10 @@ namespace Urho3D
 - %Value : float
 - %Value : float
 - %Repeat %Rate : float
 - %Repeat %Rate : float
 
 
-### %SoundListener
+### SoundListener
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 
 
-### %SoundSource
+### SoundSource
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Sound : ResourceRef
 - %Sound : ResourceRef
 - %Sound %Type : int
 - %Sound %Type : int
@@ -1600,7 +1600,7 @@ namespace Urho3D
 - %Autoremove %on %Stop : bool
 - %Autoremove %on %Stop : bool
 - %Play %Position : int
 - %Play %Position : int
 
 
-### %SoundSource3D
+### SoundSource3D
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Sound : ResourceRef
 - %Sound : ResourceRef
 - %Sound %Type : int
 - %Sound %Type : int
@@ -1615,13 +1615,13 @@ namespace Urho3D
 - %Outer %Angle : float
 - %Outer %Angle : float
 - %Rolloff %Factor : float
 - %Rolloff %Factor : float
 
 
-### %SplinePath
+### SplinePath
 - %Interpolation %Mode : int
 - %Interpolation %Mode : int
 - %Speed : float
 - %Speed : float
 - %Controlled : int
 - %Controlled : int
 - %Control %Points : VariantVector
 - %Control %Points : VariantVector
 
 
-### %Sprite
+### Sprite
 - %Name : String
 - %Name : String
 - %Position : Vector2
 - %Position : Vector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1644,7 +1644,7 @@ namespace Urho3D
 - %Use %Derived %Opacity : bool
 - %Use %Derived %Opacity : bool
 - %Variables : VariantMap
 - %Variables : VariantMap
 
 
-### %StaticModel
+### StaticModel
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Model : ResourceRef
 - %Model : ResourceRef
 - %Material : ResourceRefList
 - %Material : ResourceRefList
@@ -1661,7 +1661,7 @@ namespace Urho3D
 - %Zone %Mask : int
 - %Zone %Mask : int
 - %Occlusion %LOD %Level : int
 - %Occlusion %LOD %Level : int
 
 
-### %StaticModelGroup
+### StaticModelGroup
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Model : ResourceRef
 - %Model : ResourceRef
 - %Material : ResourceRefList
 - %Material : ResourceRefList
@@ -1679,7 +1679,7 @@ namespace Urho3D
 - %Occlusion %LOD %Level : int
 - %Occlusion %LOD %Level : int
 - %Instance %Nodes : VariantVector
 - %Instance %Nodes : VariantVector
 
 
-### %StaticSprite2D
+### StaticSprite2D
 - %Flip X : bool
 - %Flip X : bool
 - %Flip Y : bool
 - %Flip Y : bool
 - %Color : Color
 - %Color : Color
@@ -1694,7 +1694,7 @@ namespace Urho3D
 - %Shadow %Mask : int
 - %Shadow %Mask : int
 - %Zone %Mask : int
 - %Zone %Mask : int
 
 
-### %Terrain
+### Terrain
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Height %Map : ResourceRef
 - %Height %Map : ResourceRef
 - %Material : ResourceRef
 - %Material : ResourceRef
@@ -1713,7 +1713,7 @@ namespace Urho3D
 - %Shadow %Mask : int
 - %Shadow %Mask : int
 - %Zone %Mask : int
 - %Zone %Mask : int
 
 
-### %Text
+### Text
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1756,7 +1756,7 @@ namespace Urho3D
 - %Text %Effect : int
 - %Text %Effect : int
 - %Effect %Color : Color
 - %Effect %Color : Color
 
 
-### %Text3D
+### Text3D
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Font : ResourceRef
 - %Font : ResourceRef
 - %Material : ResourceRef
 - %Material : ResourceRef
@@ -1780,7 +1780,7 @@ namespace Urho3D
 - %Effect %Color : Color
 - %Effect %Color : Color
 - %Effect %Depth %Bias : float
 - %Effect %Depth %Bias : float
 
 
-### %ToolTip
+### ToolTip
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1814,7 +1814,7 @@ namespace Urho3D
 - %Variables : VariantMap
 - %Variables : VariantMap
 - %Delay : float
 - %Delay : float
 
 
-### %UIElement
+### UIElement
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1847,7 +1847,7 @@ namespace Urho3D
 - %Indent %Spacing : int
 - %Indent %Spacing : int
 - %Variables : VariantMap
 - %Variables : VariantMap
 
 
-### %View3D
+### View3D
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1897,7 +1897,7 @@ namespace Urho3D
 - %Modal %Frame %Size : IntVector2
 - %Modal %Frame %Size : IntVector2
 - %Auto %Update : bool
 - %Auto %Update : bool
 
 
-### %Window
+### Window
 - %Name : String
 - %Name : String
 - %Position : IntVector2
 - %Position : IntVector2
 - %Size : IntVector2
 - %Size : IntVector2
@@ -1946,7 +1946,7 @@ namespace Urho3D
 - %Modal %Frame %Color : Color
 - %Modal %Frame %Color : Color
 - %Modal %Frame %Size : IntVector2
 - %Modal %Frame %Size : IntVector2
 
 
-### %Zone
+### Zone
 - %Is %Enabled : bool
 - %Is %Enabled : bool
 - %Bounding %Box %Min : Vector3
 - %Bounding %Box %Min : Vector3
 - %Bounding %Box %Max : Vector3
 - %Bounding %Box %Max : Vector3

+ 10 - 10
Source/Engine/Script/APITemplates.h

@@ -453,16 +453,16 @@ template <class T> void RegisterAnimatable(asIScriptEngine* engine, const char*
     RegisterSerializable<T>(engine, className);
     RegisterSerializable<T>(engine, className);
     RegisterSubclass<Animatable, T>(engine, "Animatable", className);
     RegisterSubclass<Animatable, T>(engine, "Animatable", className);
 
 
-    engine->RegisterObjectMethod(className, "void set_animationEnabled(bool)", asMETHOD(T, SetAnimationEnabled), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "bool get_animationEnabled() const", asMETHOD(T, GetAnimationEnabled), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "void set_objectAnimation(ObjectAnimation@+)", asMETHOD(T, SetObjectAnimation), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "ObjectAnimation@+ get_objectAnimation() const", asMETHOD(T, GetObjectAnimation), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "void SetAttributeAnimation(const String&in, AttributeAnimation@+, WrapMode wrapMode=WM_LOOP, float speed=1.0f)", asMETHOD(T, SetAttributeAnimation), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "AttributeAnimation@+ GetAttributeAnimation(const String&in) const", asMETHOD(T, GetAttributeAnimation), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "void SetAttributeAnimationWrapMode(const String&in, WrapMode)", asMETHOD(T, SetAttributeAnimationWrapMode), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "WrapMode GetAttributeAnimationWrapMode(const String&in) const", asMETHOD(T, GetAttributeAnimationWrapMode), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "void SetAttributeAnimationSpeed(const String&in, float)", asMETHOD(T, SetAttributeAnimationSpeed), asCALL_THISCALL);
-    engine->RegisterObjectMethod(className, "float GetAttributeAnimationSpeed(const String&in) const", asMETHOD(T, GetAttributeAnimationSpeed), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "void set_animationEnabled(bool)", asMETHODPR(T, SetAnimationEnabled, (bool), void), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "bool get_animationEnabled() const", asMETHODPR(T, GetAnimationEnabled, () const, bool), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "void set_objectAnimation(ObjectAnimation@+)", asMETHODPR(T, SetObjectAnimation, (ObjectAnimation*), void), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "ObjectAnimation@+ get_objectAnimation() const", asMETHODPR(T, GetObjectAnimation, () const, ObjectAnimation*), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "void SetAttributeAnimation(const String&in, AttributeAnimation@+, WrapMode wrapMode=WM_LOOP, float speed=1.0f)", asMETHODPR(T, SetAttributeAnimation, (const String&, AttributeAnimation*, WrapMode, float), void), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "AttributeAnimation@+ GetAttributeAnimation(const String&in) const", asMETHODPR(T, GetAttributeAnimation, (const String&) const, AttributeAnimation*), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "void SetAttributeAnimationWrapMode(const String&in, WrapMode)", asMETHODPR(T, SetAttributeAnimationWrapMode, (const String&, WrapMode), void), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "WrapMode GetAttributeAnimationWrapMode(const String&in) const", asMETHODPR(T, GetAttributeAnimationWrapMode, (const String&) const, WrapMode), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "void SetAttributeAnimationSpeed(const String&in, float)", asMETHODPR(T, SetAttributeAnimationSpeed, (const String&, float), void), asCALL_THISCALL);
+    engine->RegisterObjectMethod(className, "float GetAttributeAnimationSpeed(const String&in) const", asMETHODPR(T, GetAttributeAnimationSpeed, (const String&) const, float), asCALL_THISCALL);
 }
 }
 
 
 /// Template function for registering a class derived from Component.
 /// Template function for registering a class derived from Component.

+ 1 - 1
Source/Engine/Script/ScriptAPIDump.cpp

@@ -269,7 +269,7 @@ void Script::DumpAPI(DumpMode mode)
             if (!usableAttrs)
             if (!usableAttrs)
                 continue;
                 continue;
             
             
-            Log::WriteRaw("\n### %" + objectTypes[i] + "\n");
+            Log::WriteRaw("\n### " + objectTypes[i] + "\n");
             
             
             for (unsigned j = 0; j < attrs.Size(); ++j)
             for (unsigned j = 0; j < attrs.Size(); ++j)
             {
             {