summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-11-14 14:46:23 -0500
committerJonathan Bradley <jcb@pikum.xyz>2024-11-14 14:46:23 -0500
commitb2548ba4ce295fcd94a50123fb543fac2ef2bc33 (patch)
tree444a32abb4a094c4fa2f7bc9a95aa86963ad4110 /example
parentb1d926361b9d613ad712ad161f9a8b7ccab4551d (diff)
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
Diffstat (limited to 'example')
-rw-r--r--example/example.cpp3
1 files changed, 2 insertions, 1 deletions
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<PkeEntityTypeInterface>(1);
+ pkePluginInterface.PkeEntityInterface = pk_new<PkeEntityTypeInterface>(1);
// set up entity types
auto *typeIntfs = reinterpret_cast<PkeEntityTypeInterface *>(pkePluginInterface.PkeEntityInterface);