Class LightingSystem
Core system that handles dynamic lighting of the stage
Fields
SETTING_AIR_ILLUMINANCE_DAY
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_AIR_ILLUMINANCE_DAY = 948523
SETTING_AIR_ILLUMINANCE_NIGHT
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_AIR_ILLUMINANCE_NIGHT = 948524
SETTING_BACKGROUND_TINT
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_BACKGROUND_TINT = 948525
SETTING_FREE_IN_GAME_DAYTIME
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_FREE_IN_GAME_DAYTIME = 948528
SETTING_IN_GAME_DAYTIME
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_IN_GAME_DAYTIME = 948527
SETTING_LEVEL_ILLUMINATE_REMAIN
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_LEVEL_ILLUMINATE_REMAIN = 948526
SETTING_PIXEL_STYLE
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_PIXEL_STYLE = 948520
SETTING_SELF_LERP
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_SELF_LERP = 948521
SETTING_SOLID_ILLUMINANCE
ID for remote setting between engine and rigged game
Declaration
public const int SETTING_SOLID_ILLUMINANCE = 948522
Properties
Enable
True if the system is in-use
Declaration
public static bool Enable { get; }
Methods
CancelIgnoreLighting()
Do not ignore lighting any more
Declaration
public static void CancelIgnoreLighting()
ForceAirLerp(float, int)
Override light amount for air
Declaration
public static void ForceAirLerp(float lerp, int duration = 1)
How long this operation last in frames
ForceCameraScale(float, int)
Override the total size scale
Declaration
public static void ForceCameraScale(float scale, int duration = 1)
How long this operation last in frames
IgnoreLighting(int)
Do not perform any lighting for given frames long
Declaration
public static void IgnoreLighting(int duration = 1)
Illuminate(int, int, int, int)
Require light at given circle range in global space
Declaration
public static void Illuminate(int x, int y, int radius, int amount = 1000)
0 means no light. 1000 means general amount.