Table
A generic struct for Rust to create a contiguous memory block. Inspired by the Data Oriented Design book by Richard Fabian.
Installation
cargo add dod-table
Usage
use *;
// Make sure that the type used in the table implements the Default trait.
// The global data for our game.
// We could also derive the Default trait here like the Entity struct, but lets
// instead implement a 'new' method for our Data struct.
// Your game's entrypoint.