Skip to content

Instantly share code, notes, and snippets.

@ChunChunMorning
Last active December 11, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChunChunMorning/2d88cc4069deeaa59261 to your computer and use it in GitHub Desktop.
Save ChunChunMorning/2d88cc4069deeaa59261 to your computer and use it in GitHub Desktop.
Siv3Dでセーブデータ的なサムシングを作る No2
// 失敗した場合Vec2()
Vec2 r1 = reader.get<Vec2>(0, 0);
// 失敗した場合、引数で指定した値
Vec2 r2 = reader.getOr<Vec2>(0, 0, {0.0, 0.0});
// Optionalの値が返って来る。失敗ならnone
Optional<Vec2> r3 = reader.getOpt<Vec2>(0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment