Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
VFX Class Reference
Inheritance diagram for VFX:
EMono

Public Member Functions

void OnChangeHour ()
 

Public Attributes

ParticleSystem ps
 
AnimationCurve timeCurve
 
int baseParticleCount
 
bool useSunColor
 
bool dbg
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 3 of file VFX.cs.

Member Function Documentation

◆ OnChangeHour()

void VFX.OnChangeHour ( )
inline

Definition at line 15 of file VFX.cs.

16 {
17 int maxParticles = (int)(timeCurve.Evaluate(EMono.scene.timeRatio) * (float)baseParticleCount);
18 ParticleSystem.MainModule main = ps.main;
19 main.maxParticles = maxParticles;
20 if (useSunColor)
21 {
22 main.startColor = EMono.scene.profile.color.sun.Evaluate(EMono.scene.timeRatio);
23 }
24 if (dbg)
25 {
26 Debug.Log(EMono.scene.timeRatio + "/" + ps.main.maxParticles);
27 }
28 }
Definition: EMono.cs:4
static Scene scene
Definition: EMono.cs:27
SceneColorProfile color
Definition: SceneProfile.cs:12
float timeRatio
Definition: Scene.cs:124
SceneProfile profile
Definition: Scene.cs:73
ParticleSystem ps
Definition: VFX.cs:5
bool useSunColor
Definition: VFX.cs:11
bool dbg
Definition: VFX.cs:13
int baseParticleCount
Definition: VFX.cs:9
AnimationCurve timeCurve
Definition: VFX.cs:7

References baseParticleCount, SceneProfile.color, dbg, Debug, Scene.profile, ps, EMono.scene, SceneColorProfile.sun, timeCurve, Scene.timeRatio, and useSunColor.

Referenced by Scene.OnChangeHour().

Member Data Documentation

◆ baseParticleCount

int VFX.baseParticleCount

Definition at line 9 of file VFX.cs.

Referenced by OnChangeHour().

◆ dbg

bool VFX.dbg

Definition at line 13 of file VFX.cs.

Referenced by OnChangeHour().

◆ ps

ParticleSystem VFX.ps

Definition at line 5 of file VFX.cs.

Referenced by OnChangeHour().

◆ timeCurve

AnimationCurve VFX.timeCurve

Definition at line 7 of file VFX.cs.

Referenced by OnChangeHour().

◆ useSunColor

bool VFX.useSunColor

Definition at line 11 of file VFX.cs.

Referenced by OnChangeHour().


The documentation for this class was generated from the following file: