Class SerpentMotion
- Namespace
- TrinketTinker.Companions.Motions
- Assembly
- TrinketTinker.dll
Companion has trailing segments and tail, like the royal serpent. Needs additional sets of sprites for segment(s) and tail.
public sealed class SerpentMotion : BaseLerpMotion<SerpentArgs>, IMotion
- Inheritance
-
SerpentMotion
- Implements
- Inherited Members
Constructors
SerpentMotion(TrinketTinkerCompanion, MotionData, VariantData)
Companion has trailing segments and tail, like the royal serpent. Needs additional sets of sprites for segment(s) and tail.
public SerpentMotion(TrinketTinkerCompanion companion, MotionData mdata, VariantData vdata)
Parameters
companion
TrinketTinkerCompanionmdata
MotionDatavdata
VariantData
Properties
TotalFrames
Total frame, accounting for number of segments
protected override int TotalFrames { get; }
Property Value
Methods
DrawCompanion(SpriteBatch, DrawSnapshot)
Draw companion from snapshot, enqueue repeat as required
protected override void DrawCompanion(SpriteBatch b, DrawSnapshot snapshot)
Parameters
b
SpriteBatchsnapshot
DrawSnapshot
DrawShadow(SpriteBatch, DrawSnapshot)
Do not draw shadow for this motion type it looks bad.
protected override void DrawShadow(SpriteBatch b, DrawSnapshot snapshot)
Parameters
b
SpriteBatchsnapshot
DrawSnapshot
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
GameTimelocation
GameLocation