define ship roles via added modules and allow multiple weapons
This commit is contained in:
@@ -18,6 +18,11 @@ entt::entity EntityAdmin::createEntity()
|
||||
return m_registry.create();
|
||||
}
|
||||
|
||||
entt::entity EntityAdmin::createModuleEntity()
|
||||
{
|
||||
return m_registry.create();
|
||||
}
|
||||
|
||||
bool EntityAdmin::isValid(entt::entity entity) const
|
||||
{
|
||||
return m_registry.valid(entity);
|
||||
|
||||
@@ -66,6 +66,10 @@ public:
|
||||
|
||||
entt::entity spawnHqProxy(QVector2D position, float hp, float maxHp);
|
||||
|
||||
// Creates a bare entity for module child entities (weapons, salvage, repair).
|
||||
// Caller is responsible for attaching all required components.
|
||||
entt::entity createModuleEntity();
|
||||
|
||||
private:
|
||||
entt::entity createEntity();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user