25 lines
428 B
C++
25 lines
428 B
C++
#include <cstdarg>
|
|
#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <ostream>
|
|
#include <new>
|
|
|
|
struct CStorage;
|
|
|
|
struct CPosition {
|
|
int32_t _0;
|
|
int32_t _1;
|
|
};
|
|
|
|
extern "C" {
|
|
|
|
CStorage *storage_new(uint32_t grid_size);
|
|
|
|
bool storage_at(const CStorage *storage, int32_t i, int32_t j);
|
|
|
|
void storage_deposit(CStorage *storage, int32_t i, int32_t j, uint8_t val);
|
|
|
|
CPosition walk(uint32_t d, int32_t i, int32_t j);
|
|
|
|
} // extern "C"
|