Table of Contents

Class HoverMotion

Namespace
TrinketTinker.Companions.Motions
Assembly
TrinketTinker.dll

Companion follows the player and bobs up and down

public sealed class HoverMotion : BaseLerpMotion<HoverArgs>, IMotion
Inheritance
HoverMotion
Implements
Inherited Members

Constructors

HoverMotion(TrinketTinkerCompanion, MotionData, VariantData)

Companion follows the player and bobs up and down

public HoverMotion(TrinketTinkerCompanion companion, MotionData data, VariantData vdata)

Parameters

companion TrinketTinkerCompanion
data MotionData
vdata VariantData

Fields

PERCHING

Perching anim clip name.

public const string PERCHING = "Perching"

Field Value

string

Methods

GetOffset()

Get offset

public override Vector2 GetOffset()

Returns

Vector2

GetPositionalLayerDepth(Vector2)

Get layer depth based on position

protected override float GetPositionalLayerDepth(Vector2 offset)

Parameters

offset Vector2

Returns

float

UpdateGlobal(GameTime, GameLocation)

Update info that should change every tick, for all game instances in multiplayer.

public override void UpdateGlobal(GameTime time, GameLocation location)

Parameters

time GameTime
location GameLocation

UpdateLocal(GameTime, GameLocation)

Update info that should change every tick, for owner only. Netfield changes should happen here.

public override void UpdateLocal(GameTime time, GameLocation location)

Parameters

time GameTime
location GameLocation