Table of Contents

Class WormGrass.Worm

Namespace
Global
Assembly
Assembly-CSharp.dll
public class WormGrass.Worm : UpdatableAndDeletable, IDrawable
Inheritance
WormGrass.Worm
Implements
Inherited Members

Constructors

Worm(WormGrass, WormGrassPatch, Vector2, float, float, float, bool)

public Worm(WormGrass wormGrass, WormGrass.WormGrassPatch patch, Vector2 basePos, float reachHeight, float iFac, float lengthFac, bool cosmeticOnly)

Parameters

wormGrass WormGrass
patch WormGrass.WormGrassPatch
basePos Vector2
reachHeight float
iFac float
lengthFac float
cosmeticOnly bool

Fields

attachedChunk

public BodyChunk attachedChunk

Field Value

BodyChunk

attachedDir

public Vector2 attachedDir

Field Value

Vector2

basePos

public Vector2 basePos

Field Value

Vector2

belowGroundPos

public Vector2 belowGroundPos

Field Value

Vector2

color

public int color

Field Value

int

cosmeticOnly

public bool cosmeticOnly

Field Value

bool

culled

public bool culled

Field Value

bool

dragForce

public float dragForce

Field Value

float

excitement

public float excitement

Field Value

float

focusCreature

public Creature focusCreature

Field Value

Creature

iFac

public float iFac

Field Value

float

lastCulled

public bool lastCulled

Field Value

bool

lastPos

public Vector2 lastPos

Field Value

Vector2

lastVisPos

public Vector2 lastVisPos

Field Value

Vector2

length

public float length

Field Value

float

patch

public WormGrass.WormGrassPatch patch

Field Value

WormGrass.WormGrassPatch

pos

public Vector2 pos

Field Value

Vector2

repulsedObject

public PhysicalObject repulsedObject

Field Value

PhysicalObject

savLenghtFac

public float savLenghtFac

Field Value

float

savedReachHeight

public float savedReachHeight

Field Value

float

segments

public WormGrass.Worm.Segment[] segments

Field Value

Segment[]

underGroundStuckPos

public Vector2? underGroundStuckPos

Field Value

Vector2?

vel

public Vector2 vel

Field Value

Vector2

wormGrass

public WormGrass wormGrass

Field Value

WormGrass

Methods

Act()

public void Act()
public void AddToContainer(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, FContainer newContatiner)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
newContatiner FContainer

ApplyPalette(SpriteLeaser, RoomCamera, RoomPalette)

public void ApplyPalette(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, RoomPalette palette)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
palette RoomPalette

Attach(BodyChunk)

public void Attach(BodyChunk chunk)

Parameters

chunk BodyChunk

Attached()

public void Attached()

DrawSprites(SpriteLeaser, RoomCamera, float, Vector2)

public void DrawSprites(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, float timeStacker, Vector2 camPos)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
timeStacker float
camPos Vector2

InitiateSprites(SpriteLeaser, RoomCamera)

public void InitiateSprites(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera

Reset(WormGrassPatch, Vector2, float, float, float)

public void Reset(WormGrass.WormGrassPatch patch, Vector2 newBasePos, float iFac, float reachHeight, float lengthFac)

Parameters

patch WormGrass.WormGrassPatch
newBasePos Vector2
iFac float
reachHeight float
lengthFac float

Update(bool)

public override void Update(bool eu)

Parameters

eu bool