CubeWorldMods/cwmods/cube/Creature.cpp

13 lines
381 B
C++

#include "Creature.h"
#include "../cwmods.h"
cube::Creature* cube::Creature::Create(__int64 id) {
cube::Creature* newCreature = (cube::Creature*)new char[sizeof(cube::Creature)];
newCreature->ctor(&id);
return newCreature;
}
cube::Creature* cube::Creature::ctor(__int64* id) {
return ((cube::Creature*(*)(cube::Creature*, __int64*))CWBase()+0x4CE80)(this, id);
}