Quantum 3 3.0.14

Public Member Functions | Public Attributes | List of all members
Quantum.Prototypes.ViewPrototype Class Reference

Prototype of the View Quantum component. More...

Inherits Quantum.ComponentPrototype< Quantum.View >.

Public Member Functions

sealed override bool AddToEntity (FrameBase f, EntityRef entity, in PrototypeMaterializationContext context)
 Creates an instance of the View component, materializes and adds it to the entity. More...
 
void Materialize (FrameBase frame, ref Quantum.View result, in PrototypeMaterializationContext context)
 Applies the prototype's fields to the actual component. More...
 
unsafe void Materialize (FrameBase frame, ref View component)
 

Public Attributes

AssetRef< EntityView > Current
 The EntityView asset to be referenced by the View component. More...
 

Detailed Description

Prototype of the View Quantum component.

Member Function Documentation

◆ AddToEntity()

sealed override bool Quantum.Prototypes.ViewPrototype.AddToEntity ( FrameBase  f,
EntityRef  entity,
in PrototypeMaterializationContext  context 
)
inline

Creates an instance of the View component, materializes and adds it to the entity.

Parameters
f
entity
context
Returns
Returns true if adding the component to the entity succeeds.

◆ Materialize()

void Quantum.Prototypes.ViewPrototype.Materialize ( FrameBase  frame,
ref Quantum.View  result,
in PrototypeMaterializationContext  context 
)
inline

Applies the prototype's fields to the actual component.

Member Data Documentation

◆ Current

AssetRef<EntityView> Quantum.Prototypes.ViewPrototype.Current

The EntityView asset to be referenced by the View component.