Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 12.13 KB | None | 0 0
  1. diff -r externs/nape/callbacks/BodyListener.hx externs2/nape/callbacks/BodyListener.hx
  2. 3c3
  3. <     public function new(event:nape.callbacks.CbEvent,cbType:nape.callbacks.CbType,handler:Dynamic):Void;
  4. ---
  5. >     public function new(event:nape.callbacks.CbEvent,cbType:nape.callbacks.CbType,handler:BodyCallback->Void):Void;
  6. 5c5
  7. <     public var handler(default,default):Dynamic;
  8. ---
  9. >     public var handler(default,default):BodyCallback->Void;
  10. diff -r externs/nape/callbacks/ConstraintListener.hx externs2/nape/callbacks/ConstraintListener.hx
  11. 3c3
  12. <     public function new(event:nape.callbacks.CbEvent,cbType:nape.callbacks.CbType,handler:Dynamic):Void;
  13. ---
  14. >     public function new(event:nape.callbacks.CbEvent,cbType:nape.callbacks.CbType,handler:ConstraintCallback->Void):Void;
  15. 5c5
  16. <     public var handler(default,default):Dynamic;
  17. ---
  18. >     public var handler(default,default):ConstraintCallback->Void;
  19. diff -r externs/nape/callbacks/InteractionListener.hx externs2/nape/callbacks/InteractionListener.hx
  20. 3c3
  21. <     public function new(event:nape.callbacks.CbEvent,interactionType:nape.callbacks.InteractionType,cbType1:nape.callbacks.CbType,cbType2:nape.callbacks.CbType,handler:Dynamic=null):Void;
  22. ---
  23. >     public function new(event:nape.callbacks.CbEvent,interactionType:nape.callbacks.InteractionType,cbType1:nape.callbacks.CbType,cbType2:nape.callbacks.CbType,handler:InteractionCallback->Void):Void;
  24. 6c6
  25. <     public var handler(default,default):Dynamic;
  26. ---
  27. >     public var handler(default,default):InteractionCallback->Void;
  28. diff -r externs/nape/callbacks/ListenerList.hx externs2/nape/callbacks/ListenerList.hx
  29. 14,15c14,15
  30. <     public function foreach(lambda:Dynamic):Void;
  31. <     public function filter(lambda:Dynamic):nape.callbacks.ListenerList;
  32. ---
  33. >     public function foreach(lambda:Listener->Void):Void;
  34. >     public function filter(lambda:Listener->Bool):nape.callbacks.ListenerList;
  35. 21c21
  36. <     public static function fromArray(array:Array<Dynamic>):nape.callbacks.ListenerList;
  37. ---
  38. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Listener>#end):nape.callbacks.ListenerList;
  39. diff -r externs/nape/callbacks/PreListener.hx externs2/nape/callbacks/PreListener.hx
  40. 3c3
  41. <     public function new(interactionType:nape.callbacks.InteractionType,cbType1:nape.callbacks.CbType,cbType2:nape.callbacks.CbType,handler:Dynamic,pure:Bool=false):Void;
  42. ---
  43. >     public function new(interactionType:nape.callbacks.InteractionType,cbType1:nape.callbacks.CbType,cbType2:nape.callbacks.CbType,handler:PreCallback->PreFlag,pure:Bool=false):Void;
  44. 6c6
  45. <     public var handler(default,default):Dynamic;
  46. ---
  47. >     public var handler(default,default):PreCallback->PreFlag;
  48. diff -r externs/nape/constraint/ConstraintList.hx externs2/nape/constraint/ConstraintList.hx
  49. 14,15c14,15
  50. <     public function foreach(lambda:Dynamic):Void;
  51. <     public function filter(lambda:Dynamic):nape.constraint.ConstraintList;
  52. ---
  53. >     public function foreach(lambda:Constraint->Void):Void;
  54. >     public function filter(lambda:Constraint->Bool):nape.constraint.ConstraintList;
  55. 21c21
  56. <     public static function fromArray(array:Array<Dynamic>):nape.constraint.ConstraintList;
  57. ---
  58. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Constraint>#end):nape.constraint.ConstraintList;
  59. diff -r externs/nape/dynamics/ArbiterList.hx externs2/nape/dynamics/ArbiterList.hx
  60. 16,17c16,17
  61. <     public function foreach(lambda:Dynamic):Void;
  62. <     public function filter(lambda:Dynamic):nape.dynamics.ArbiterList;
  63. ---
  64. >     public function foreach(lambda:Arbiter->Void):Void;
  65. >     public function filter(lambda:Arbiter->Bool):nape.dynamics.ArbiterList;
  66. 23c23
  67. <     public static function fromArray(array:Array<Dynamic>):nape.dynamics.ArbiterList;
  68. ---
  69. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Arbiter>#end):nape.dynamics.ArbiterList;
  70. diff -r externs/nape/dynamics/ContactList.hx externs2/nape/dynamics/ContactList.hx
  71. 14,15c14,15
  72. <     public function foreach(lambda:Dynamic):Void;
  73. <     public function filter(lambda:Dynamic):nape.dynamics.ContactList;
  74. ---
  75. >     public function foreach(lambda:Contact->Void):Void;
  76. >     public function filter(lambda:Contact->Bool):nape.dynamics.ContactList;
  77. 21c21
  78. <     public static function fromArray(array:Array<Dynamic>):nape.dynamics.ContactList;
  79. ---
  80. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Contact>#end):nape.dynamics.ContactList;
  81. diff -r externs/nape/dynamics/InteractionGroupList.hx externs2/nape/dynamics/InteractionGroupList.hx
  82. 14,15c14,15
  83. <     public function foreach(lambda:Dynamic):Void;
  84. <     public function filter(lambda:Dynamic):nape.dynamics.InteractionGroupList;
  85. ---
  86. >     public function foreach(lambda:InteractionGroup->Void):Void;
  87. >     public function filter(lambda:InteractionGroup->Bool):nape.dynamics.InteractionGroupList;
  88. 21c21
  89. <     public static function fromArray(array:Array<Dynamic>):nape.dynamics.InteractionGroupList;
  90. ---
  91. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<InteractionGroup>#end):nape.dynamics.InteractionGroupList;
  92. diff -r externs/nape/geom/GeomPolyList.hx externs2/nape/geom/GeomPolyList.hx
  93. 14,15c14,15
  94. <     public function foreach(lambda:Dynamic):Void;
  95. <     public function filter(lambda:Dynamic):nape.geom.GeomPolyList;
  96. ---
  97. >     public function foreach(lambda:GeomPoly->Void):Void;
  98. >     public function filter(lambda:GeomPoly->Bool):nape.geom.GeomPolyList;
  99. 21c21
  100. <     public static function fromArray(array:Array<Dynamic>):nape.geom.GeomPolyList;
  101. ---
  102. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<GeomPoly>#end):nape.geom.GeomPolyList;
  103. diff -r externs/nape/geom/MarchingSquares.hx externs2/nape/geom/MarchingSquares.hx
  104. 4c4
  105. <     public static function run(iso:Dynamic,bounds:nape.geom.AABB,cellsize:nape.geom.Vec2,quality:Int=2,subgrid:nape.geom.Vec2=null,combine:Bool=true):nape.geom.GeomPolyList;
  106. ---
  107. >     public static function run(iso:Float->Float->Float,bounds:nape.geom.AABB,cellsize:nape.geom.Vec2,quality:Int=2,subgrid:nape.geom.Vec2=null,combine:Bool=true):nape.geom.GeomPolyList;
  108. diff -r externs/nape/geom/Mat23.hx externs2/nape/geom/Mat23.hx
  109. 24c24
  110. <     public static function scale(sx:Float,sy:Dynamic=null):nape.geom.Mat23;
  111. ---
  112. >     public static function scale(sx:Float,sy:Float):nape.geom.Mat23;
  113. diff -r externs/nape/geom/RayResultList.hx externs2/nape/geom/RayResultList.hx
  114. 14,15c14,15
  115. <     public function foreach(lambda:Dynamic):Void;
  116. <     public function filter(lambda:Dynamic):nape.geom.RayResultList;
  117. ---
  118. >     public function foreach(lambda:RayResult->Void):Void;
  119. >     public function filter(lambda:RayResult->Bool):nape.geom.RayResultList;
  120. 21c21
  121. <     public static function fromArray(array:Array<Dynamic>):nape.geom.RayResultList;
  122. ---
  123. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<RayResult>#end):nape.geom.RayResultList;
  124. diff -r externs/nape/geom/Vec2List.hx externs2/nape/geom/Vec2List.hx
  125. 16,17c16,17
  126. <     public function foreach(lambda:Dynamic):Void;
  127. <     public function filter(lambda:Dynamic):nape.geom.Vec2List;
  128. ---
  129. >     public function foreach(lambda:Vec2->Void):Void;
  130. >     public function filter(lambda:Vec2->Bool):nape.geom.Vec2List;
  131. 23c23
  132. <     public static function fromArray(array:Array<Dynamic>):nape.geom.Vec2List;
  133. ---
  134. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Vec2>#end):nape.geom.Vec2List;
  135. diff -r externs/nape/phys/Body.hx externs2/nape/phys/Body.hx
  136. 61c61
  137. <     public var graphicUpdate(default,default):Dynamic;
  138. ---
  139. >     public var graphicUpdate(default,default):Body->Void;
  140. diff -r externs/nape/phys/BodyList.hx externs2/nape/phys/BodyList.hx
  141. 14,15c14,15
  142. <     public function foreach(lambda:Dynamic):Void;
  143. <     public function filter(lambda:Dynamic):nape.phys.BodyList;
  144. ---
  145. >     public function foreach(lambda:Body->Void):Void;
  146. >     public function filter(lambda:Body->Bool):nape.phys.BodyList;
  147. 21c21
  148. <     public static function fromArray(array:Array<Dynamic>):nape.phys.BodyList;
  149. ---
  150. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Body>#end):nape.phys.BodyList;
  151. diff -r externs/nape/phys/Compound.hx externs2/nape/phys/Compound.hx
  152. 5,7c5,7
  153. <     public function visitConstraints(lambda:Dynamic):Void;
  154. <     public function visitCompounds(lambda:Dynamic):Void;
  155. <     public function visitBodies(lambda:Dynamic):Void;
  156. ---
  157. >     public function visitConstraints(lambda:Constraint->Void):Void;
  158. >     public function visitCompounds(lambda:Compound->Void):Void;
  159. >     public function visitBodies(lambda:Body->Void):Void;
  160. diff -r externs/nape/phys/CompoundList.hx externs2/nape/phys/CompoundList.hx
  161. 14,15c14,15
  162. <     public function foreach(lambda:Dynamic):Void;
  163. <     public function filter(lambda:Dynamic):nape.phys.CompoundList;
  164. ---
  165. >     public function foreach(lambda:Compound->Void):Void;
  166. >     public function filter(lambda:Compound->Bool):nape.phys.CompoundList;
  167. 21c21
  168. <     public static function fromArray(array:Array<Dynamic>):nape.phys.CompoundList;
  169. ---
  170. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Compound>#end):nape.phys.CompoundList;
  171. diff -r externs/nape/phys/InteractorList.hx externs2/nape/phys/InteractorList.hx
  172. 14,15c14,15
  173. <     public function foreach(lambda:Dynamic):Void;
  174. <     public function filter(lambda:Dynamic):nape.phys.InteractorList;
  175. ---
  176. >     public function foreach(lambda:Interactor->Void):Void;
  177. >     public function filter(lambda:Interactor->Bool):nape.phys.InteractorList;
  178. 21c21
  179. <     public static function fromArray(array:Array<Dynamic>):nape.phys.InteractorList;
  180. ---
  181. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Interactor>#end):nape.phys.InteractorList;
  182. diff -r externs/nape/shape/EdgeList.hx externs2/nape/shape/EdgeList.hx
  183. 14,15c14,15
  184. <     public function foreach(lambda:Dynamic):Void;
  185. <     public function filter(lambda:Dynamic):nape.shape.EdgeList;
  186. ---
  187. >     public function foreach(lambda:Edge->Void):Void;
  188. >     public function filter(lambda:Edge->Bool):nape.shape.EdgeList;
  189. 21c21
  190. <     public static function fromArray(array:Array<Dynamic>):nape.shape.EdgeList;
  191. ---
  192. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Edge>#end):nape.shape.EdgeList;
  193. diff -r externs/nape/shape/Polygon.hx externs2/nape/shape/Polygon.hx
  194. 7,9c7,9
  195. <     public static function rect(x:Float,y:Float,width:Float,height:Float,weak:Bool=false):Array<Dynamic>;
  196. <     public static function box(width:Float,height:Float,weak:Bool=false):Array<Dynamic>;
  197. <     public static function regular(width:Float,height:Float,edgeCount:Int,angleOffset:Float=0,weak:Bool=false):Array<Dynamic>;
  198. ---
  199. >     public static function rect(x:Float,y:Float,width:Float,height:Float,weak:Bool=false):Array<Vec2>;
  200. >     public static function box(width:Float,height:Float,weak:Bool=false):Array<Vec2>;
  201. >     public static function regular(width:Float,height:Float,edgeCount:Int,angleOffset:Float=0,weak:Bool=false):Array<Vec2>;
  202. diff -r externs/nape/shape/ShapeList.hx externs2/nape/shape/ShapeList.hx
  203. 14,15c14,15
  204. <     public function foreach(lambda:Dynamic):Void;
  205. <     public function filter(lambda:Dynamic):nape.shape.ShapeList;
  206. ---
  207. >     public function foreach(lambda:Shape->Void):Void;
  208. >     public function filter(lambda:Shape->Bool):nape.shape.ShapeList;
  209. 21c21
  210. <     public static function fromArray(array:Array<Dynamic>):nape.shape.ShapeList;
  211. ---
  212. >     public static function fromArray(array:#if flash9 Array<Dynamic>#else Array<Shape>#end):nape.shape.ShapeList;
  213. diff -r externs/nape/space/Space.hx externs2/nape/space/Space.hx
  214. 5,7c5,7
  215. <     public function visitConstraints(lambda:Dynamic):Void;
  216. <     public function visitCompounds(lambda:Dynamic):Void;
  217. <     public function visitBodies(lambda:Dynamic):Void;
  218. ---
  219. >     public function visitConstraints(lambda:Constraint->Void):Void;
  220. >     public function visitCompounds(lambda:Compound->Void):Void;
  221. >     public function visitBodies(lambda:Body->Void):Void;
  222. diff -r externs/nape/util/Debug.hx externs2/nape/util/Debug.hx
  223. 27c27
  224. <     public var colour:Dynamic;
  225. ---
  226. >     public var colour:Int->Int;
Add Comment
Please, Sign In to add comment