Skip to content

Commit

Permalink
rename change_scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyjor committed Aug 16, 2024
1 parent 2e3890d commit df0703d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module MainLoop
end

function initialize_new_scene(this::Main, isUsingEditor::Bool = false)
SceneBuilderModule.change_scene(this.level, isUsingEditor)
SceneBuilderModule.deserialize_and_build_scene(this.level, isUsingEditor)
initialize_scripts_and_components(false)

if !isUsingEditor
Expand Down
2 changes: 1 addition & 1 deletion src/SceneManagement/SceneBuilder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module SceneBuilderModule
JulGame.MainLoop.prepare_window_scripts_and_start_loop(isUsingEditor, size, isResizable, autoScaleZoom, isNewEditor)
end

function change_scene(this::Scene, isUsingEditor::Bool = false)
function deserialize_and_build_scene(this::Scene, isUsingEditor::Bool = false)
scene = deserialize_scene(joinpath(BasePath, "scenes", this.scene), isUsingEditor)

# println("Changing scene to $this.scene")
Expand Down

0 comments on commit df0703d

Please sign in to comment.