Brought over a bunch of code from the roguelike and now will use it to generate a random map.
This commit is contained in:
parent
8d3d3b4ec3
commit
2daa1c9bd5
59 changed files with 4303 additions and 411 deletions
15
devices.hpp
Normal file
15
devices.hpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include "dinkyecs.hpp"
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <vector>
|
||||
|
||||
namespace components {
|
||||
using namespace nlohmann;
|
||||
|
||||
struct Device {
|
||||
json config;
|
||||
std::vector<int> events;
|
||||
|
||||
void configure_events(json &event_names);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue