Table of Contents

Class EntityPlacementAnimationPlayer<TQueuedAnimation, TAnimation>

Namespace
Root
Assembly
SPZGameAssembly.dll
public abstract class EntityPlacementAnimationPlayer<TQueuedAnimation, TAnimation> : IMapSubDrawer where TQueuedAnimation : IQueuedEntityAnimation where TAnimation : IEntityAnimation

Type Parameters

TQueuedAnimation
TAnimation
Inheritance
object
EntityPlacementAnimationPlayer<TQueuedAnimation, TAnimation>
Implements
Derived
Extension Methods

Constructors

EntityPlacementAnimationPlayer(IMapModel, GameResources, EntityPlacementAnimationVisualResources)

public EntityPlacementAnimationPlayer(IMapModel map, GameResources resources, EntityPlacementAnimationVisualResources visualResources)

Parameters

map IMapModel
resources GameResources
visualResources EntityPlacementAnimationVisualResources

Fields

Map

protected readonly IMapModel Map

Field Value

IMapModel

QueuedDeletionAnimations

protected readonly Queue<TQueuedAnimation> QueuedDeletionAnimations

Field Value

Queue<TQueuedAnimation>

QueuedPlacementAnimations

protected readonly Queue<TQueuedAnimation> QueuedPlacementAnimations

Field Value

Queue<TQueuedAnimation>

Methods

CreateFromQueued(TQueuedAnimation, float, float)

protected abstract TAnimation CreateFromQueued(TQueuedAnimation queuedAnimation, float startTime, float durationFactor)

Parameters

queuedAnimation TQueuedAnimation
startTime float
durationFactor float

Returns

TAnimation

Draw(FrameDrawOptions, TAnimation, float3, MaterialReference, MaterialPropertyBlock, PlacementAllowability)

protected abstract void Draw(FrameDrawOptions options, TAnimation animation, float3 scale, MaterialReference material, MaterialPropertyBlock propertyBlock, PlacementAllowability allowability)

Parameters

options FrameDrawOptions
animation TAnimation
scale float3
material MaterialReference
propertyBlock MaterialPropertyBlock
allowability PlacementAllowability

Draw(FrameDrawOptionsNoLOD, MapCullResult)

public void Draw(FrameDrawOptionsNoLOD options, MapCullResult cullResult)

Parameters

options FrameDrawOptionsNoLOD
cullResult MapCullResult