Removed dbc and replaced with plain asserts everywhere.

This commit is contained in:
Zed A. Shaw 2025-05-10 10:53:53 -04:00
parent 767147c301
commit adc192c6dc
17 changed files with 69 additions and 185 deletions

View file

@ -1,5 +1,4 @@
#pragma once
#include "guecs/dbc.hpp"
#include "guecs/lel.hpp"
#include <string>
#include <memory>
@ -10,6 +9,7 @@
#include <unordered_map>
#include "guecs/theme.hpp"
#include "guecs/sfml/components.hpp"
#include <cassert>
namespace guecs {
using std::shared_ptr, std::wstring, std::string;
@ -177,7 +177,7 @@ namespace guecs {
template <typename Comp>
void set_init(Entity ent, Comp val) {
dbc::check(has<lel::Cell>(ent),"WRONG! slot is missing its cell?!");
assert(has<lel::Cell>(ent) && "WRONG! slot is missing its cell?!");
auto& cell = get<lel::Cell>(ent);
val.init(cell);
set<Comp>(ent, val);