From b2548ba4ce295fcd94a50123fb543fac2ef2bc33 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 14 Nov 2024 14:46:23 -0500 Subject: add pk.h and major pkmem refactor Completely replaces the memory module with pkmem pkmem is a newer implementation of the same bucket memory structure. Also includes replacing pkstr.h with pk.h's pkstr --- example/example.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/example.cpp b/example/example.cpp index 7b82ebc..17a79a3 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -2,6 +2,7 @@ #include "example.hpp" #include "components.hpp" +#include "vendor/pk.h" void OnEntityTypeCollision(const void *lhs, const void *rhs) { fprintf(stdout, "[Example::OnEntityTypeCollision] Called\n"); @@ -14,7 +15,7 @@ void OnEntityCollision(const void *lhs, const void *rhs) { void OnInit() { // create/register entity types pkePluginInterface.PkeEntityInterfaceCount = 1; - pkePluginInterface.PkeEntityInterface = Pke_New(1); + pkePluginInterface.PkeEntityInterface = pk_new(1); // set up entity types auto *typeIntfs = reinterpret_cast(pkePluginInterface.PkeEntityInterface); -- cgit v1.2.3