2023-08-25 16:48:17 -06:00
|
|
|
import { Component, ComponentNames, Sprite } from '.';
|
2023-07-19 20:38:24 -07:00
|
|
|
|
|
|
|
export class FacingDirection extends Component {
|
|
|
|
public readonly facingLeftSprite: Sprite;
|
|
|
|
public readonly facingRightSprite: Sprite;
|
|
|
|
|
|
|
|
constructor(facingLeftSprite: Sprite, facingRightSprite: Sprite) {
|
|
|
|
super(ComponentNames.FacingDirection);
|
|
|
|
|
|
|
|
this.facingLeftSprite = facingLeftSprite;
|
|
|
|
this.facingRightSprite = facingRightSprite;
|
|
|
|
}
|
|
|
|
}
|