Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 committed Aug 9, 2024
1 parent ecbade2 commit 24e758e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/environment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Quaternion, Vector3 } from '@dcl/sdk/math'

import { getSDK } from '../sdk'

export function addEnvironment() {
export function addEnvironment(environmentGlb: string) {
const {
engine,
components: { Transform, GltfContainer }
Expand All @@ -12,5 +12,5 @@ export function addEnvironment() {
position: Vector3.create(8, 0, 8),
rotation: Quaternion.fromEulerDegrees(0, 180, 0)
})
GltfContainer.create(environment, { src: 'mini-games-assets/models/environment.glb' })
GltfContainer.create(environment, { src: environmentGlb ?? 'mini-games-assets/models/environment.glb' })
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ export function initLibrary(
options: IOptions
) {
setSDK({ engine, syncEntity, players, config: options })
addEnvironment()
startPlayersQueue()
gameConfig.init()
progress.init()
void progress.init()
}

export { addEnvironment }
export * as ui from './ui'
export * as queue from './queue'
export { sceneParentEntity } from './config'
Expand Down
4 changes: 0 additions & 4 deletions src/queue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ export function setNextPlayer() {
*/
let lastActivePlayer: string
function internalPlayerSystem() {
const {
engine,
components: { Player, PlayerIdentityData }
} = getSDK()
let timer = 0
return function (dt: number) {
timer += dt
Expand Down

0 comments on commit 24e758e

Please sign in to comment.