Class StemSegment
- Namespace
- CoralBrain
- Assembly
- Assembly-CSharp.dll
public class StemSegment : PhysicalObject, IDrawable, IOwnMycelia
- Inheritance
-
StemSegment
- Implements
-
- Inherited Members
-
Constructors
StemSegment(AbstractPhysicalObject, CoralStem, float, Vector2, Vector2)
public StemSegment(AbstractPhysicalObject abstractPhysicalObject, CoralStem stem, float size, Vector2 posA, Vector2 posB)
Parameters
abstractPhysicalObject AbstractPhysicalObject
stem CoralStem
size float
posA Vector2
posB Vector2
Fields
conRad
Field Value
- float
direction
Field Value
- Vector2
dots
Field Value
- int
first
Field Value
- bool
lastDirection
public Vector2 lastDirection
Field Value
- Vector2
meshSegs
Field Value
- int
mycelia
public Mycelium[] mycelia
Field Value
- Mycelium[]
neuron
public CoralNeuron neuron
Field Value
- CoralNeuron
nextSegment
public StemSegment nextSegment
Field Value
- StemSegment
prevSegment
public StemSegment prevSegment
Field Value
- StemSegment
size
Field Value
- float
stem
Field Value
- CoralStem
Properties
BaseColor
public Color BaseColor { get; }
Property Value
- Color
HighLightColor
public Color HighLightColor { get; }
Property Value
- Color
OwnerRoom
public Room OwnerRoom { get; }
Property Value
- Room
Methods
AddToContainer(SpriteLeaser, RoomCamera, FContainer)
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
ConnectionPos(int, float)
public Vector2 ConnectionPos(int index, float timeStacker)
Parameters
index int
timeStacker float
Returns
- Vector2
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
ResetDir(int)
public Vector2 ResetDir(int index)
Parameters
index int
Returns
- Vector2
Update(bool)
public override void Update(bool eu)
Parameters
eu bool