[SVR-190] 캐릭터 배치 JSON 형식으로 입/출력 및 직접 입력/편집 기능 #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
game_data.gd에서 모든 json 파일을 읽고 저장할 수 있습니다.
levels/settings.gd에서 읽은 json 파일은 String으로 textedit 창에 출력됩니다,
game_start 버튼 누르면 역으로 String이 game_data.gd의 변수에 저장됩니다.
현재는 String까지 불러와서 편집 후 저장이 가능한 상태이고, 다음 구현은 실제 저장된 game_data.gd의 변수를 battle.gd에 전달하는 것입니다.
문제는 캐릭터 배치 파일의 파싱 시에 null을 리턴하게 되는 것입니다.
캐릭터 배치 파일의 character.type 은 enum 자료형으로 JSON의 기본 자료형이 아니라서 발생하는 것으로 추정됩니다.