fix guid and add world
This commit is contained in:
parent
ca6e636c33
commit
5fb027ea82
|
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue