36 lines
511 B
C++
36 lines
511 B
C++
#include "framework/World.h"
|
|
#include "framework/Core.h"
|
|
|
|
namespace ly {
|
|
World::World(Application* owningApp) : mOwningApp{ owningApp }, mBeganPlay{ false } {
|
|
|
|
}
|
|
|
|
void World::BeginPlayInternal() {
|
|
if (!mBeganPlay) {
|
|
mBeganPlay = true;
|
|
BeginPlay();
|
|
}
|
|
}
|
|
|
|
World::~World()
|
|
{
|
|
}
|
|
|
|
void World::TickInternal(float deltaTime)
|
|
{
|
|
Tick(deltaTime);
|
|
}
|
|
|
|
|
|
|
|
void World::BeginPlay()
|
|
{
|
|
LOG("Began Play");
|
|
}
|
|
|
|
void World::Tick(float deltaTime)
|
|
{
|
|
LOG("Ticking at frame rate: %f", 1.f / deltaTime);
|
|
}
|
|
} |