Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
GameUpdater.FastSurfaceUpdater Class Reference
Inheritance diagram for GameUpdater.FastSurfaceUpdater:
GameUpdater.SurfaceUpdater GameUpdater.Updater EClass

Public Member Functions

override void FixedUpdate ()
 
override void FixedUpdate ()
 
- Public Member Functions inherited from GameUpdater.Updater
virtual void FixedUpdate ()
 
void SetUpdatesPerFrame (int _maxcount, float _duration)
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Public Attributes inherited from GameUpdater.SurfaceUpdater
int x
 
int z
 
- Public Attributes inherited from GameUpdater.Updater
int index
 
int updatesPerFrame
 
int maxCount
 
float duration = 1f
 
float _updatesPerFrame
 
Point pos = new Point()
 
- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from GameUpdater.SurfaceUpdater
int SizeXZ [get]
 
int Size [get]
 
- Properties inherited from EClass
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 Faction Wilds [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 SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 142 of file GameUpdater.cs.

Member Function Documentation

◆ FixedUpdate()

override void GameUpdater.FastSurfaceUpdater.FixedUpdate ( )
inlinevirtual

Reimplemented from GameUpdater.SurfaceUpdater.

Definition at line 144 of file GameUpdater.cs.

145 {
146 if (!pos.Set(x, z).IsValid)
147 {
148 x = (z = 0);
149 }
150 SetUpdatesPerFrame(base.SizeXZ, 1f);
151 for (int i = 0; i < updatesPerFrame; i++)
152 {
153 pos.Set(x, z);
154 Cell cell = pos.cell;
155 if (cell.effect != null && cell.effect.WillFade)
156 {
157 cell.effect.amount--;
158 if (cell.effect.amount <= 0)
159 {
161 }
162 }
163 x++;
164 if (x >= base.Size)
165 {
166 x = 0;
167 z++;
168 if (z >= base.Size)
169 {
170 z = 0;
171 }
172 }
173 }
174 }
int amount
Definition: CellEffect.cs:26
bool WillFade
Definition: CellEffect.cs:173
Definition: Cell.cs:7
CellEffect effect
Definition: Cell.cs:94
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
void SetUpdatesPerFrame(int _maxcount, float _duration)
Definition: GameUpdater.cs:25
void SetEffect(int x, int z, CellEffect effect=null)
Definition: Map.cs:1495
Point Set(int _x, int _z)
Definition: Point.cs:479
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
bool IsValid
Definition: Point.cs:88
Cell cell
Definition: Point.cs:51

References EClass._map, CellEffect.amount, Point.cell, Cell.effect, Point.IsValid, GameUpdater.Updater.pos, Point.Set(), Map.SetEffect(), GameUpdater.Updater.SetUpdatesPerFrame(), GameUpdater.Updater.updatesPerFrame, CellEffect.WillFade, GameUpdater.SurfaceUpdater.x, Point.x, GameUpdater.SurfaceUpdater.z, and Point.z.

Referenced by GameUpdater.FixedUpdate().


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