Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::AssetInstanceData Struct Reference

Public Member Functions

bool useOverrideMaterial () const
 
bool useCloneMaterial () const
 
bool useRelativePaths () const
 
void spawned (EntityId entityId)
 
void destroyed (EntityId entityId)
 
void link (AssetInstanceData *instance)
 
void unlink ()
 
void destroy ()
 
SceneEntityDefinitiongetDefinition (EntityInstanceData &instance)
 

Public Attributes

struct AssetSystemDatasystemData = nullptr
 
AssetInstanceDataparentInstance = nullptr
 
AssetInstanceDatanext = nullptr
 
AssetInstanceDataprev = nullptr
 
MaterialInstanceHandle material
 
StringView path
 
AssetHandle asset
 
uint16_t assetGeneration = 0
 
Entitycontainer = nullptr
 
uint32_t objectId = NoObjectId
 
RenderLayers renderLayers = RenderLayers::Default
 
ComponentModel::ComponentHandle clipShapeComponent = ComponentModel::ComponentHandle::Empty()
 
SceneInstanceData scene
 
AssetInstanceStats stats
 
std::vector< uint32_t > selectedIdRanges
 
bool visible = false
 
bool onDemand = false
 
bool relativePaths = false
 
bool overrideMaterial = false
 
bool cloneMaterial = false
 
bool initialized = false
 
bool freezeLod = false
 
bool forceTolerance = false
 
float tolerance = 1.0f
 
float priority = 0.0f
 
float minDistance = 1.f
 
std::string directoryPath
 
Memory::TypedBuffer< EntityId > spawnedEntities
 
Memory::TypedBuffer< EntityId > destroyedEntities
 

Detailed Description

Definition at line 216 of file AssetSystem.cpp.

Constructor & Destructor Documentation

◆ AssetInstanceData()

Cogs::Core::AssetInstanceData::AssetInstanceData ( )
inline

Definition at line 218 of file AssetSystem.cpp.

Member Function Documentation

◆ destroy()

void Cogs::Core::AssetInstanceData::destroy ( )

Definition at line 356 of file AssetSystem.cpp.

◆ destroyed()

void Cogs::Core::AssetInstanceData::destroyed ( EntityId  entityId)
inline

Definition at line 276 of file AssetSystem.cpp.

◆ getDefinition()

SceneEntityDefinition & Cogs::Core::AssetInstanceData::getDefinition ( EntityInstanceData instance)
inline

Definition at line 305 of file AssetSystem.cpp.

◆ link()

void Cogs::Core::AssetInstanceData::link ( AssetInstanceData instance)
inline

Definition at line 285 of file AssetSystem.cpp.

◆ spawned()

void Cogs::Core::AssetInstanceData::spawned ( EntityId  entityId)
inline

Definition at line 267 of file AssetSystem.cpp.

◆ unlink()

void Cogs::Core::AssetInstanceData::unlink ( )
inline

Definition at line 296 of file AssetSystem.cpp.

◆ useCloneMaterial()

bool Cogs::Core::AssetInstanceData::useCloneMaterial ( ) const
inline

Definition at line 264 of file AssetSystem.cpp.

◆ useOverrideMaterial()

bool Cogs::Core::AssetInstanceData::useOverrideMaterial ( ) const
inline

Definition at line 263 of file AssetSystem.cpp.

◆ useRelativePaths()

bool Cogs::Core::AssetInstanceData::useRelativePaths ( ) const
inline

Definition at line 265 of file AssetSystem.cpp.

Member Data Documentation

◆ asset

AssetHandle Cogs::Core::AssetInstanceData::asset

Definition at line 232 of file AssetSystem.cpp.

◆ assetGeneration

uint16_t Cogs::Core::AssetInstanceData::assetGeneration = 0

Definition at line 233 of file AssetSystem.cpp.

◆ clipShapeComponent

ComponentModel::ComponentHandle Cogs::Core::AssetInstanceData::clipShapeComponent = ComponentModel::ComponentHandle::Empty()

Definition at line 238 of file AssetSystem.cpp.

◆ cloneMaterial

bool Cogs::Core::AssetInstanceData::cloneMaterial = false

Definition at line 250 of file AssetSystem.cpp.

◆ container

Entity* Cogs::Core::AssetInstanceData::container = nullptr

Definition at line 235 of file AssetSystem.cpp.

◆ destroyedEntities

Memory::TypedBuffer<EntityId> Cogs::Core::AssetInstanceData::destroyedEntities

Definition at line 261 of file AssetSystem.cpp.

◆ directoryPath

std::string Cogs::Core::AssetInstanceData::directoryPath

Definition at line 258 of file AssetSystem.cpp.

◆ forceTolerance

bool Cogs::Core::AssetInstanceData::forceTolerance = false

Definition at line 253 of file AssetSystem.cpp.

◆ freezeLod

bool Cogs::Core::AssetInstanceData::freezeLod = false

Definition at line 252 of file AssetSystem.cpp.

◆ initialized

bool Cogs::Core::AssetInstanceData::initialized = false

Definition at line 251 of file AssetSystem.cpp.

◆ material

MaterialInstanceHandle Cogs::Core::AssetInstanceData::material

Definition at line 229 of file AssetSystem.cpp.

◆ minDistance

float Cogs::Core::AssetInstanceData::minDistance = 1.f

Definition at line 256 of file AssetSystem.cpp.

◆ next

AssetInstanceData* Cogs::Core::AssetInstanceData::next = nullptr

Definition at line 226 of file AssetSystem.cpp.

◆ objectId

uint32_t Cogs::Core::AssetInstanceData::objectId = NoObjectId

Definition at line 236 of file AssetSystem.cpp.

◆ onDemand

bool Cogs::Core::AssetInstanceData::onDemand = false

Definition at line 247 of file AssetSystem.cpp.

◆ overrideMaterial

bool Cogs::Core::AssetInstanceData::overrideMaterial = false

Definition at line 249 of file AssetSystem.cpp.

◆ parentInstance

AssetInstanceData* Cogs::Core::AssetInstanceData::parentInstance = nullptr

Definition at line 225 of file AssetSystem.cpp.

◆ path

StringView Cogs::Core::AssetInstanceData::path

Definition at line 231 of file AssetSystem.cpp.

◆ prev

AssetInstanceData* Cogs::Core::AssetInstanceData::prev = nullptr

Definition at line 227 of file AssetSystem.cpp.

◆ priority

float Cogs::Core::AssetInstanceData::priority = 0.0f

Definition at line 255 of file AssetSystem.cpp.

◆ relativePaths

bool Cogs::Core::AssetInstanceData::relativePaths = false

Definition at line 248 of file AssetSystem.cpp.

◆ renderLayers

RenderLayers Cogs::Core::AssetInstanceData::renderLayers = RenderLayers::Default

Definition at line 237 of file AssetSystem.cpp.

◆ scene

SceneInstanceData Cogs::Core::AssetInstanceData::scene

Definition at line 240 of file AssetSystem.cpp.

◆ selectedIdRanges

std::vector<uint32_t> Cogs::Core::AssetInstanceData::selectedIdRanges

Definition at line 244 of file AssetSystem.cpp.

◆ spawnedEntities

Memory::TypedBuffer<EntityId> Cogs::Core::AssetInstanceData::spawnedEntities

Definition at line 260 of file AssetSystem.cpp.

◆ stats

AssetInstanceStats Cogs::Core::AssetInstanceData::stats

Definition at line 242 of file AssetSystem.cpp.

◆ systemData

struct AssetSystemData* Cogs::Core::AssetInstanceData::systemData = nullptr

Definition at line 223 of file AssetSystem.cpp.

◆ tolerance

float Cogs::Core::AssetInstanceData::tolerance = 1.0f

Definition at line 254 of file AssetSystem.cpp.

◆ visible

bool Cogs::Core::AssetInstanceData::visible = false

Definition at line 246 of file AssetSystem.cpp.


The documentation for this struct was generated from the following file: