You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/******************************************************************************
|
|
|
|
|
* File - entity.cpp
|
|
|
|
|
* Author - Joey Pollack
|
|
|
|
|
* Date - 2022/05/23 (y/m/d)
|
|
|
|
|
* Mod Date - 2022/05/23 (y/m/d)
|
|
|
|
|
* Description - Provides functionality to work with world entities
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "entity.h"
|
|
|
|
|
|
|
|
|
|
namespace lunarium
|
|
|
|
|
{
|
|
|
|
|
Entity::Entity(entt::registry* r)
|
|
|
|
|
: mHandle(entt::null), mpRegistry(r)
|
|
|
|
|
{
|
|
|
|
|
mUUID = UUID::GetNewID();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Entity::Entity(entt::registry* r, LUUID uuid)
|
|
|
|
|
: mHandle(entt::null), mpRegistry(r), mUUID(uuid)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|