-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/context #35
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
Merged
Merged
Feat/context #35
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context を定義するためのプロトコルのためのファイルを作成しました.
Context は `node()` 内で自動生成させるため, `init()` が要求されます.
SKNode 生成過程で, Modifier は Context を書き換えます. Context を書き換える方法を実装側で定義するため, `mod(context: inout Context)` が要求されます.
Modifier から作成された Context 編集フローを実行するためのプロトコルです.
`context()` メソッドは編集済み `Context` を返します.
Modifier を連結させるための構造体をいくつか定義するためです.
Modifier を連結させる構造体です.
Modifier link の起点となる構造体です.
Context と ContextBuilder に関係するオブジェクトは他のオブジェクトに依存しないため, 一つにまとめられるため.
Widget に Modifier を連結させる際の起点となる構造体です.
複数の Widget を格納する Node 構造体を " 定義済み Widget " として再定義するために, このファイルへ移動します.
Context を生成し, `node(context: Context)` を返します.
Node widget のデータを表現する構造体です.
代わりとなる modifier を作るため, 該当箇所にエラーが出るようにしました.
modifier メソッドで追加することができる構造体です.
`ColorizableContextProtocol` を使用しました.
This was referenced Nov 27, 2022
Closed
Swift Action を動かせるか, 確認します.
Owner
Author
|
原因判明! テストコードが, version 0 当時のままだったことが失敗の原因でした(コンパイルエラー)。
|
Owner
Author
|
予定していた全ての変更をマージしました。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Context protocol を導入し, #27 の課題を解決する変更です.
注意点