Skip to content

Instantly share code, notes, and snippets.

View JElbourne's full-sized avatar

Jay Elbourne JElbourne

  • Ontario, Canada
View GitHub Profile
@JElbourne
JElbourne / GridSerial.cpp
Last active June 21, 2020 03:47
GRID SERIALIZATION CONCEPT FOR SAVING WORLD GRID DATA
/**
* GRID SERIALIZATION CONCEPT FOR SAVING WORLD GRID DATA
*
* Each GRID location will be stored as an signed int32 (eg. -1,999,999,999) - 4 BYTES
* This will be a basic serialization of all the information on the grid.
*
* This information will be stored as follows:
*
* -/+ This acts as a switch and usually doubles the possibilities of each ID