Quantum 3 3.0.13

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

Prototype of the PhysicsJoints2D Quantum component. More...

Inherits Quantum.ComponentPrototype< Quantum.PhysicsJoints2D >.

Public Member Functions

sealed override bool AddToEntity (FrameBase f, EntityRef entity, in PrototypeMaterializationContext context)
 Creates an instance of the PhysicsJoints2D component, materializes and adds it to the entity. More...
 
unsafe void Materialize (FrameBase frame, ref PhysicsJoints2D component)
 
void Materialize (FrameBase frame, ref Quantum.PhysicsJoints2D result, in PrototypeMaterializationContext context)
 Applies the prototype's fields to the actual component. More...
 
void OnEntityPrototypeMaterialized (FrameBase f, EntityRef entity, EntityPrototypeRef prototypeRef)
 Called after the entity prototype has been completely materialized. More...
 

Public Attributes

Joint2DConfig[] JointConfigs = { }
 The configurations of the joints. More...
 

Detailed Description

Prototype of the PhysicsJoints2D Quantum component.

Member Function Documentation

◆ AddToEntity()

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

Creates an instance of the PhysicsJoints2D 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.PhysicsJoints2DPrototype.Materialize ( FrameBase  frame,
ref Quantum.PhysicsJoints2D  result,
in PrototypeMaterializationContext  context 
)
inline

Applies the prototype's fields to the actual component.

Parameters
frame
result
context

◆ OnEntityPrototypeMaterialized()

void Quantum.Prototypes.PhysicsJoints2DPrototype.OnEntityPrototypeMaterialized ( FrameBase  f,
EntityRef  entity,
EntityPrototypeRef  prototypeRef 
)
inline

Called after the entity prototype has been completely materialized.

Parameters
f
entity
prototypeRef

Member Data Documentation

◆ JointConfigs

Joint2DConfig [] Quantum.Prototypes.PhysicsJoints2DPrototype.JointConfigs = { }

The configurations of the joints.