Skip to content

Feature/swift/model/model_design#3

Merged
KinjiKawaguchi merged 6 commits into
developfrom
feature/swift/model/model_design
Sep 5, 2023
Merged

Feature/swift/model/model_design#3
KinjiKawaguchi merged 6 commits into
developfrom
feature/swift/model/model_design

Conversation

@KinjiKawaguchi
Copy link
Copy Markdown
Member

@piddy-shz @KikyoNanakusa

swift側でのモデルの構造を作成しました。
それぞれの構造の妥当性(これ必要?・これなくて大丈夫?この型はこれでいいんじゃない?)を評価してください。

また、随所にコメントで議論の余地がある部分を記述してあるので、返答をお願いします。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unity側に画面を遷移した瞬間に表示されているべきタスクはどれなのかみたいな情報が欲しいかもです。
var currentTask: Int
みたいな。Intの理由は配列のインデックスを表したいから。
なくてもcurrentHPが0ではない最初のタスクを表示するなどで実装はできそうだが、編集するときなど、最後に表示していたTaskがどれなのかを記憶できたほうが拡張性もありそうだと思いました。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

配列の添え字をGoalに持たせる形で着地しました。

Comment thread TasQuest/TasQuest/Model/Task.swift Outdated
Comment thread TasQuest/TasQuest/Model/Tag.swift Outdated
Comment thread TasQuest/TasQuest/Model/AppData.swift
feat: Added AppData.swift which contains data about tags and statuses
@KinjiKawaguchi KinjiKawaguchi force-pushed the feature/swift/model/model_design branch from f69ed75 to eddd091 Compare September 5, 2023 06:44
Comment thread TasQuest/TasQuest/Model/Tag.swift Outdated
let id: Int
var name: String
var color: String //16進数で表す?要検討
var color: [Double] // [R, G, B]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

float型があるならfloatでお願いできますか?
swiftの都合でdoubleならこっちで合わせます。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

や、特に意図はなかったので、Float型に変更します。

@KinjiKawaguchi
Copy link
Copy Markdown
Member Author

Review結果がよく見えればLGTM(Looks good to me)をコメントしといてください。
@piddy-shz @KikyoNanakusa

@KikyoNanakusa
Copy link
Copy Markdown
Contributor

LGTM😆

@piddy-shz
Copy link
Copy Markdown
Contributor

LGTM

@KinjiKawaguchi KinjiKawaguchi merged commit cf12d6c into develop Sep 5, 2023
@KinjiKawaguchi KinjiKawaguchi deleted the feature/swift/model/model_design branch September 5, 2023 08:25
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.

3 participants