Skip to content

Commit

Permalink
Fix import statements in Tilemap, Gui, Scene, and
Browse files Browse the repository at this point in the history
TransitionScene files
  • Loading branch information
RSamaium committed Dec 2, 2023
1 parent db0a87f commit ab6066c
Show file tree
Hide file tree
Showing 7 changed files with 16,495 additions and 22 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/Effects/TransitionScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { RpgClientEngine } from "../RpgClientEngine";
import { FrameOptions } from "../Sprite/Spritesheet";
import { Timeline } from "./Timeline";
import { Container } from "pixi.js"
import { InjectContext, inject } from "@rpgjs/common";
import { InjectContext } from "@rpgjs/common";

export class TransitionScene {
private frameIndex: number = 0
private animations: FrameOptions[][] = []
private updateSubscription: Subscription
private complete: Function = () => {}
private clientEngine: RpgClientEngine = inject(RpgClientEngine)
private clientEngine: RpgClientEngine = this.context.inject(RpgClientEngine)

constructor(private context: InjectContext, private container: Container) { }

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/Gui/Gui.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectContext, RpgCommonPlayer, Utils, inject } from '@rpgjs/common'
import { InjectContext, RpgCommonPlayer, Utils } from '@rpgjs/common'
import { RpgSound } from '../Sound/RpgSound'
import { RpgClientEngine, RpgResource } from '../index'
import { RpgRenderer } from '../Renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/Scene/Scene.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RpgPlugin, HookClient, DefaultInput, inject, InjectContext } from '@rpgjs/common'
import { RpgPlugin, HookClient, DefaultInput, InjectContext } from '@rpgjs/common'
import { KeyboardControls } from '../KeyboardControls'
import RpgSprite from '../Sprite/Character'
import { Animation } from '../Effects/Animation'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/Tilemap/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectContext, Utils, inject } from '@rpgjs/common'
import { InjectContext, Utils } from '@rpgjs/common'
import ImageLayer from './ImageLayer'
import TileLayer from './TileLayer'
import TileSet from './TileSet'
Expand Down
Loading

0 comments on commit ab6066c

Please sign in to comment.