Elin Decompiled Documentation EA 23.319 Nightly Patch 1
Loading...
Searching...
No Matches
GameUpdater.ThingUpdater Class Reference
Inheritance diagram for GameUpdater.ThingUpdater:
GameUpdater.Updater EClass

Public Member Functions

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 rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
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.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 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 323 of file GameUpdater.cs.

Member Function Documentation

◆ FixedUpdate()

override void GameUpdater.ThingUpdater.FixedUpdate ( )
inlinevirtual

Reimplemented from GameUpdater.Updater.

Definition at line 325 of file GameUpdater.cs.

326 {
327 List<Thing> things = EClass._map.things;
328 SetUpdatesPerFrame(things.Count, 1f);
329 for (int i = 0; i < updatesPerFrame; i++)
330 {
331 index++;
332 if (index >= things.Count)
333 {
334 index = 0;
335 }
336 Thing thing = things[index];
337 if (thing.fov != null)
338 {
339 thing.CalculateFOV();
340 }
341 if (thing.trait.HaveUpdate)
342 {
343 thing.trait.Update();
344 }
345 if ((thing.id == "snow" || thing.id == "flyer") && EClass.rnd(30) == 0 && !thing.IsInstalled && !LayerDragGrid.Instance && !LayerCraft.Instance)
346 {
347 thing.Destroy();
348 }
349 }
350 }
Definition: EClass.cs:6
static Map _map
Definition: EClass.cs:19
static int rnd(long a)
Definition: EClass.cs:59
void SetUpdatesPerFrame(int _maxcount, float _duration)
Definition: GameUpdater.cs:25
ThingUpdater thing
Definition: GameUpdater.cs:367
static LayerCraft Instance
Definition: LayerCraft.cs:8
static LayerDragGrid Instance
List< Thing > things
Definition: Map.cs:49
Definition: Thing.cs:8

References EClass._map, GameUpdater.Updater.index, LayerCraft.Instance, LayerDragGrid.Instance, EClass.rnd(), GameUpdater.Updater.SetUpdatesPerFrame(), GameUpdater.thing, Map.things, and GameUpdater.Updater.updatesPerFrame.

Referenced by GameUpdater.FixedUpdate().


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