Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Implement DMTagGroupType #5

Open
miile7 opened this issue Nov 19, 2020 · 0 comments
Open

Implement DMTagGroupType #5

miile7 opened this issue Nov 19, 2020 · 0 comments

Comments

@miile7
Copy link
Owner

miile7 commented Nov 19, 2020

DMTagGroupType : DMType

Motivation

TagGroups are difficult to handle in dm-script. And since they are composed of multiple values,
they cannot be handled with the default DMType.

Definition

Methods

  • parseForPython(dm_value : Py_TagGroup) -> dict|list # Convert by writing to persistent tags, then return the value of parsePersistentTagGroupValueForPython()
  • parsePersistentTagGroupValueForPython(path : int|str) -> dict|list # Analyze the structure on dm-script side (not possible with python in GMS <= 3.4), write the structure and types to tags inside the persistent TagGroup, then on python side extract the structure and types and create the TagGroup/TagList from that, for parsing values use their DMTypes
  • getDMCodeValue(value : T) -> str|None, str, str|None # For Py_TagGroup write to persistent tags, then paste code of loading the persistent tag (travelling through Py_TagGroup not possible), for dict and list create code by travelling through in before code, then return the varaible name as the value, no after code, for parsing values use their DMTypes
  • writeToPersistentTags(path : int|str, value : Py_TagGroup|dict|list) -> None # For Py_TagGroup copy directly, for others travel through and create, for parsing values use their DMTypes
@miile7 miile7 added this to the Refactor Code (Version 2.x.x) milestone Nov 19, 2020
@miile7 miile7 changed the title DMTagGroupType Implement DMTagGroupType Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant