Class LightSource
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public class LightSource : UpdatableAndDeletable, IDrawable
- Inheritance
-
LightSource
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
LightSource(Vector2, bool, Color, UpdatableAndDeletable)
public LightSource(Vector2 initPos, bool environmentalLight, Color color, UpdatableAndDeletable tiedToObject)
Parameters
initPos Vector2
environmentalLight bool
color Color
tiedToObject UpdatableAndDeletable
LightSource(Vector2, bool, Color, UpdatableAndDeletable, bool)
public LightSource(Vector2 initPos, bool environmentalLight, Color color, UpdatableAndDeletable tiedToObject, bool submersible)
Parameters
initPos Vector2
environmentalLight bool
color Color
tiedToObject UpdatableAndDeletable
submersible bool
Fields
affectedByPaletteDarkness
public float affectedByPaletteDarkness
Field Value
- float
alpha
Field Value
- float
blinkRate
Field Value
- float
blinkTicker
Field Value
- int
blinkType
public PlacedObject.LightSourceData.BlinkType blinkType
Field Value
- PlacedObject.LightSourceData.BlinkType
c
Field Value
- Color
colorAlpha
Field Value
- float
colorFromEnvironment
public bool colorFromEnvironment
Field Value
- bool
effectColor
Field Value
- int
environmentalLight
public bool environmentalLight
Field Value
- bool
f
Field Value
- bool
fadeWithSun
Field Value
- bool
lastAlpha
Field Value
- float
lastPos
Field Value
- Vector2
lastRad
Field Value
- float
nightFade
Field Value
- float
nightLight
Field Value
- bool
noGameplayImpact
public bool noGameplayImpact
Field Value
- bool
pos
Field Value
- Vector2
rad
Field Value
- float
requireUpKeep
public bool requireUpKeep
Field Value
- bool
setAlpha
Field Value
- float?
setPos
Field Value
- Vector2?
setRad
Field Value
- float?
shaderDirty
Field Value
- bool
stayAlive
Field Value
- bool
submersible
Field Value
- bool
tiedToObject
public UpdatableAndDeletable tiedToObject
Field Value
- UpdatableAndDeletable
waterSurfaceLevel
public float waterSurfaceLevel
Field Value
- float
Properties
Alpha
public float Alpha { get; }
Property Value
- float
ElementName
public virtual string ElementName { get; }
Property Value
- string
LayerName
public virtual string LayerName { get; }
Property Value
- string
Lightness
public float Lightness { get; }
Property Value
- float
Pos
public Vector2 Pos { get; }
Property Value
- Vector2
Rad
public float Rad { get; }
Property Value
- float
color
public Color color { get; set; }
Property Value
- Color
flat
public bool flat { get; set; }
Property Value
- bool
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
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
HardSetAlpha(float)
public void HardSetAlpha(float a)
Parameters
a float
HardSetPos(Vector2)
public void HardSetPos(Vector2 p)
Parameters
p Vector2
HardSetRad(float)
public void HardSetRad(float r)
Parameters
r float
InitiateSprites(SpriteLeaser, RoomCamera)
public void InitiateSprites(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam)
Parameters
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
Update(bool)
public override void Update(bool eu)
Parameters
eu bool
setBlinkProperties(BlinkType, float)
public void setBlinkProperties(PlacedObject.LightSourceData.BlinkType type, float rate)
Parameters
type PlacedObject.LightSourceData.BlinkType
rate float