fix guid and add world

This commit is contained in:
floralrainfall 2023-07-07 01:29:30 -04:00
parent ca6e636c33
commit 5fb027ea82
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#include <engine/app/v8/world/World.hpp>
RBX::World::World()
{
}
void RBX::World::preStep()
{
}
double RBX::World::step(float timestep)
{
}
void RBX::World::update()
{
}

View File

@ -20,7 +20,15 @@ void RBX::Guid::generateGUID(std::string* result)
memset(sz, 0, sizeof(sz));
StringFromGUID2(&pguid)
WideCharToMultiByte(0, 0, sz, 64, MultiByteStr, 64, 0, 0);
// construct guid
result = "RBX";
result += MultiByteStr;
result->erase(40, 1);
result->erase(27, 1);
result->erase(22, 1);
result->erase(17, 1);
result->erase(3, 1);
#else
// TBD: POSIX method
#endif

View File

@ -0,0 +1,18 @@
#ifndef __APP_V8_WORLD_WORLD_HPP__
#define __APP_V8_WORLD_WORLD_HPP__
namespace RBX
{
class World
{
public:
World();
~World();
void preStep();
double step(float timestep);
void update();
};
}
#endif