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

Containerの追加: set of Shgifs #16

Open
Cj-bc opened this issue Jun 11, 2020 · 3 comments
Open

Containerの追加: set of Shgifs #16

Cj-bc opened this issue Jun 11, 2020 · 3 comments

Comments

@Cj-bc
Copy link
Owner

Cj-bc commented Jun 11, 2020

Shgifを複数同時に扱えるようにしたい。

  • 複数のShgifをオフセット付きで保存する。
  • Tickを同期させることもできる
  • これを拡張してCj-bc/facligの顔データも作れる!
data Container = {
                   syncedTime :: Maybe Int -- ^ 値がある場合、Containerに含まれるShgif全てのTickを同期させる
                 , shgifs :: [(V2 Int, Shgif)] -- ^ オフセット値
}
@Cj-bc
Copy link
Owner Author

Cj-bc commented Jun 12, 2020

  • Container型の追加 Shgif型に統一したので不要
  • Container型用のbrick widgetの追加 上記理由で不要
  • Container型用のupdate関数の追加
  • Container型のファイルフォーマットを決める(Containerのフォーマット #19)
  • Container型のFromJSONインスタンス作成上記理由で不要
  • Shgif型のFromJSON書き直し
  • Container型を同期して使うexampleの追加
  • Container型を非同期で使うexampleの追加
  • READMEに記載

@Cj-bc
Copy link
Owner Author

Cj-bc commented Jul 17, 2020

とりあえず #19 を決める

@Cj-bc
Copy link
Owner Author

Cj-bc commented Jul 19, 2020

Containerの入れ子も可能にしたい
可能にすると、型をShgifに統一できるというメリットもある

data Shgif = Shgif ...
           | Container ...

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

No branches or pull requests

1 participant