Skip to content

Commit

Permalink
Better function types for vscode codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
RblSb committed Feb 14, 2024
1 parent 9d63872 commit ce9b281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions echo/Body.hx
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ class Body implements Disposable #if cog implements cog.IComponent #end {
/**
* If set, this method is called whenever the Body's X or Y changes.
*/
public var on_move:Null<Float->Float->Void>;
public var on_move:Null<(x:Float, y:Float) -> Void>;
/**
* If set, this method is called whenever the Body's rotation changes.
*/
public var on_rotate:Null<Float->Void>;
public var on_rotate:Null<(angle:Float) -> Void>;

@:allow(echo.Physics.step_body)
public var last_x(default, null):Float;
Expand Down

0 comments on commit ce9b281

Please sign in to comment.