Skip to content

Instantly share code, notes, and snippets.

@ChunChunMorning
Last active December 11, 2015 06:29
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/f8bec2fc6d7692519737 to your computer and use it in GitHub Desktop.
Save ChunChunMorning/f8bec2fc6d7692519737 to your computer and use it in GitHub Desktop.
Siv3Dでセーブデータ的なサムシングを作る No1
FilePath savedataPath = L"Savedata.csv";
CSVReader reader(savedataPath);
if (!reader)
{
CSVWriter writer(savedataPath);
writer.writeRow(Vec2::Zero, 100, 100);
writer.writeRow(L"はじまりの町");
writer.writeRow(Palette::Green);
writer.close();
reader.open(savedataPath);
}
Println(reader.get<Vec2>(0, 0), L" ", reader.get<int>(0, 1), L" ", reader.get<int>(0, 2));
Println(reader.get<String>(1, 0));
Println(reader.get<Color>(2, 0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment