Skip to content

Commit

Permalink
Added missing member variables to Arcadeslopes class.
Browse files Browse the repository at this point in the history
Added type definitions for the Arcade.Body 'slopes' member variable.
  • Loading branch information
IkonOne committed Aug 16, 2016
1 parent f78280e commit df06dc6
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions typescript/phaser-arcade-slopes.d.ts
Expand Up @@ -3,16 +3,23 @@ declare module Phaser {
slopes:Phaser.Plugin.ArcadeSlopes;
}

module Physics.Arcade {
interface Body {
slopes:Phaser.Plugin.ArcadeSlopes;
module Physics {
module Arcade {
interface Body {
slopes:Phaser.Plugin.ArcadeSlopes.BodySlopes;
}
}
}

module Plugin {
class ArcadeSlopes extends Phaser.Plugin {
static SAT:string;
static METROID:string;

defaultSolver:string;
factory:Phaser.Plugin.ArcadeSlopes.TileSlopeFactory;
solvers:Object;

enable(obj:Phaser.Sprite | Phaser.Group):void;
enableBody(body:Phaser.Physics.Arcade.Body):void;
convertTilemap(map:Phaser.Tilemap, layer:number | string | Phaser.TilemapLayer, slopeMap:Object):Phaser.Tilemap;
Expand All @@ -22,7 +29,6 @@ declare module Phaser {

module ArcadeSlopes {


class Facade {
factory:Phaser.Plugin.ArcadeSlopes.TileSlopeFactory;
solvers:Object;
Expand Down Expand Up @@ -171,6 +177,26 @@ declare module Phaser {
createQuarterTopRightLow(type:number, tile:Phaser.Tile):Phaser.Plugin.ArcadeSlopes.TileSlope;
createQuarterTopRightHigh(type:number, tile:Phaser.Tile):Phaser.Plugin.ArcadeSlopes.TileSlope;
}

class BodySlopes {
friction:Phaser.Point;
preferY:boolean;
pullUp:number;
pullDown:number;
pullLeft:number;
pullRight:number;
sat:Phaser.Plugin.ArcadeSlopes.BodySlopesSat;
skipFriction:boolean;
snapUp:number;
snapDown:number;
snapLeft:number;
snapRight:number;
velocity:SAT.Vector;
}

class BodySlopesSat {
respone:SAT.Response;
}
}
}
}
Expand Down

0 comments on commit df06dc6

Please sign in to comment.