Last active
December 11, 2015 06:28
-
-
Save ChunChunMorning/2d88cc4069deeaa59261 to your computer and use it in GitHub Desktop.
Siv3Dでセーブデータ的なサムシングを作る No2
This file contains 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
// 失敗した場合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