Skip to content
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

easy xml/json types #2751

Merged
merged 1 commit into from
Mar 8, 2023
Merged

easy xml/json types #2751

merged 1 commit into from
Mar 8, 2023

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Mar 8, 2023

just an easy way to accept various args with OneOfTwo without having to convert them all to the final type for each method that uses the type as an arg

FlxXmlAsset: takes the following and converts to an Xml with getXml()

  • a string path to an xml asset
  • a xml string
  • an Xml object

FlxJsonAsset<T>: takes the following and coverts to typedef T with getData().

  • a string path to an json asset
  • a json string
  • a T instance

@Geokureli Geokureli merged commit 121c96a into HaxeFlixel:dev Mar 8, 2023
@Geokureli Geokureli deleted the atlas_assets branch March 8, 2023 23:02
Geokureli added a commit that referenced this pull request Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant