8000 Removed duplicate code in TmxMapLoader by DaveH355 · Pull Request #7136 · libgdx/libgdx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Removed duplicate code in TmxMapLoader #7136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DaveH355
Copy link
@DaveH355 DaveH355 commented May 2, 2023

extracted the common variable to simplify some similar code

Copy link
Contributor
@HydrolienF HydrolienF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be a good pr.
For performance improvement fileHandle can be set once only by doing somethig like that :

FileHandle fileHandle;
if (source != null) {
	fileHandle = getRelativeFileHandle(tmxFile, source);
	tileset = xml.parse(fileHandle);
}else{
	fileHandle = tmxFile;
}

@SimonIT SimonIT added code quality affecting code only, should have no impact to running enviroment tilemap labels May 2, 2023
@HydrolienF
Copy link
Contributor

Looks good to me.

BoBIsHere86 added a commit to BoBIsHere86/libgdx that referenced this pull request Apr 29, 2025
…Loader to reflect PR libgdx#7136's code duplication fix.

Did the same for the TmjMapLoader as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality affecting code only, should have no impact to running enviroment tilemap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0