Show / Hide Table of Contents

Class MyEntities.InitEntityData

Holds data for asynchronous entity init

Inheritance
System.Object
ParallelTasks.WorkData
MyEntities.InitEntityData
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
public class InitEntityData : WorkData

Constructors

InitEntityData(MyObjectBuilder_EntityBase, Boolean, Action<MyEntity>, MyEntity, Boolean, MyEntity, Nullable<Vector3D>, Boolean)

Declaration
public InitEntityData(MyObjectBuilder_EntityBase objectBuilder, bool addToScene, Action<MyEntity> completionCallback, MyEntity entity, bool fadeIn, MyEntity relativeSpawner = null, Nullable<Vector3D> relativeOffset = null, bool checkPosition = false)
Parameters
Type Name Description
MyObjectBuilder_EntityBase objectBuilder
System.Boolean addToScene
System.Action<MyEntity> completionCallback
MyEntity entity
System.Boolean fadeIn
MyEntity relativeSpawner
System.Nullable<Vector3D> relativeOffset
System.Boolean checkPosition

Methods

CallInitEntity(Boolean)

Declaration
public (bool, MyEntity) CallInitEntity(bool tolerateBlacklistedPlanets = false)
Parameters
Type Name Description
System.Boolean tolerateBlacklistedPlanets
Returns
Type Description
System.ValueTuple<System.Boolean, MyEntity>

OnEntityInitialized()

Declaration
public void OnEntityInitialized()
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾