Table of Contents

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

public float alpha

Field Value

float

blinkRate

public float blinkRate

Field Value

float

blinkTicker

public int blinkTicker

Field Value

int

blinkType

public PlacedObject.LightSourceData.BlinkType blinkType

Field Value

PlacedObject.LightSourceData.BlinkType

c

public Color c

Field Value

Color

colorAlpha

public float colorAlpha

Field Value

float

colorFromEnvironment

public bool colorFromEnvironment

Field Value

bool

effectColor

public int effectColor

Field Value

int

environmentalLight

public bool environmentalLight

Field Value

bool

f

public bool f

Field Value

bool

fadeWithSun

public bool fadeWithSun

Field Value

bool

lastAlpha

public float lastAlpha

Field Value

float

lastPos

public Vector2 lastPos

Field Value

Vector2

lastRad

public float lastRad

Field Value

float

nightFade

public float nightFade

Field Value

float

nightLight

public bool nightLight

Field Value

bool

noGameplayImpact

public bool noGameplayImpact

Field Value

bool

pos

public Vector2 pos

Field Value

Vector2

rad

public float rad

Field Value

float

requireUpKeep

public bool requireUpKeep

Field Value

bool

setAlpha

public float? setAlpha

Field Value

float?

setPos

public Vector2? setPos

Field Value

Vector2?

setRad

public float? setRad

Field Value

float?

shaderDirty

public bool shaderDirty

Field Value

bool

stayAlive

public bool stayAlive

Field Value

bool

submersible

public 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

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