2023-08-25 18:48:17 -04:00
|
|
|
import { Component, ComponentNames, Sprite } from '.';
|
2023-07-19 23:38:24 -04: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;
|
|
|
|
}
|
|
|
|
}
|