Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
remove Engine.instance.scene
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Apr 4, 2024
1 parent 04aff1a commit 501995f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/enums/BotHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export enum BotHooks {
GetPlayerRotation = 'BotHooks_GetPlayerRotation',
GetPlayerScale = 'BotHooks_GetPlayerScale',
GetPlayerTransform = 'BotHooks_GetPlayerTransform',
GetSceneMetadata = 'BotHooks_GetSceneMetadata',
GetWorldMetadata = 'BotHooks_GetWorldMetadata',
RotatePlayer = 'BotHooks_RotatePlayer',
GetWorldNetworkPeers = 'BotHooks_GetWorldNetworkPeers',
Expand Down
5 changes: 0 additions & 5 deletions src/functions/botHookFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const BotHookFunctions = {
[BotHooks.GetPlayerScale]: getPlayerScale,
[BotHooks.GetPlayerTransform]: getPlayerTransform,
[BotHooks.RotatePlayer]: rotatePlayer,
[BotHooks.GetSceneMetadata]: getSceneMetadata,
[BotHooks.GetWorldNetworkPeers]: getPeers,
[BotHooks.SerializeEngine]: serializeEngine,
[XRBotHooks.OverrideXR]: overrideXR,
Expand Down Expand Up @@ -91,10 +90,6 @@ export function getPeers() {
return Object.entries(NetworkState.worldNetwork.peers)
}

export function getSceneMetadata() {
return Engine.instance.scene.toJSON()
}

export function getWorldMetadata() {}

export function serializeEngine() {
Expand Down

0 comments on commit 501995f

Please sign in to comment.