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

Public Member Functions

override void OnSetOwner ()
 
override void Refresh ()
 
void RefreshAll ()
 
virtual void Refresh ()
 
- Public Member Functions inherited from TC
void SetOwner (CardRenderer r)
 
virtual void OnSetOwner ()
 
virtual void OnDraw (ref Vector3 pos)
 
void Kill ()
 
virtual void OnKill ()
 

Public Attributes

GameObject goIcon
 
SpriteRenderer iconStatus
 
new Thing owner
 
- Public Attributes inherited from TC
CardRenderer render
 

Private Attributes

float timer
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from TC
static GameSetting.RenderSetting.TCSetting _setting
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from TC
Card owner [get]
 
virtual bool isUI [get]
 
virtual Vector3 FixPos [get]
 
- 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 TCOrbitThing.cs.

Member Function Documentation

◆ OnSetOwner()

override void TCOrbitThing.OnSetOwner ( )
inlinevirtual

Reimplemented from TC.

Definition at line 13 of file TCOrbitThing.cs.

14 {
15 owner = base.owner as Thing;
17 goIcon.transform.SetLocalPositionY(data.offset.y + data.size.y + 0.32f);
18 RefreshAll();
19 }
CardRenderer renderer
Definition: Card.cs:57
Vector3 offset
Definition: RenderData.cs:18
Vector2 size
Definition: RenderData.cs:30
RenderData data
Definition: RenderObject.cs:34
GameObject goIcon
Definition: TCOrbitThing.cs:5
new Thing owner
Definition: TCOrbitThing.cs:9
void RefreshAll()
Definition: TCOrbitThing.cs:43
Definition: Thing.cs:8

References RenderObject.data, goIcon, RenderData.offset, owner, RefreshAll(), Card.renderer, and RenderData.size.

◆ Refresh()

override void TCOrbitThing.Refresh ( )
inlinevirtual

Reimplemented from TCOrbit.

Definition at line 21 of file TCOrbitThing.cs.

22 {
23 timer += Time.deltaTime;
24 if (timer > 0.2f)
25 {
26 timer = 0f;
27 RefreshAll();
28 }
30 {
31 if (!base.gameObject.activeSelf)
32 {
33 base.gameObject.SetActive(value: true);
34 }
35 base.transform.position = owner.renderer.position;
36 }
37 else if (base.gameObject.activeSelf)
38 {
39 base.gameObject.SetActive(value: false);
40 }
41 }
Vector3 position
Definition: CardRenderer.cs:21
bool isHidden
Definition: Card.cs:502
bool CanSee(Card c)
Definition: Chara.cs:1027
Definition: EMono.cs:4
static Chara pc
Definition: EMono.cs:13

References Chara.CanSee(), Card.isHidden, owner, EMono.pc, CardRenderer.position, RefreshAll(), Card.renderer, and timer.

◆ RefreshAll()

void TCOrbitThing.RefreshAll ( )
inline

Definition at line 43 of file TCOrbitThing.cs.

44 {
46 Emo2 emo = Emo2.none;
48 {
50 {
52 }
54 {
55 emo = Emo2.fur;
56 }
57 }
58 bool flag = emo != Emo2.none;
59 if (flag)
60 {
61 iconStatus.sprite = EMono.core.refs.spritesEmo[(int)emo];
62 }
63 iconStatus.SetActive(flag);
64 }
Emo2
Definition: Emo2.cs:2
bool isRestocking
Definition: Card.cs:862
virtual bool IsPCParty
Definition: Card.cs:2025
Trait trait
Definition: Card.cs:49
bool CanBeSheared()
Definition: Card.cs:6996
bool IsInstalled
Definition: Card.cs:2241
List< Sprite > spritesEmo
Definition: CoreRef.cs:361
OrbitIcons orbitIcons
Definition: CoreRef.cs:331
CoreRef refs
Definition: Core.cs:51
static Core core
Definition: EMono.cs:5
static Player player
Definition: EMono.cs:11
static Zone _zone
Definition: EMono.cs:19
virtual Thing Thing
Definition: HotItem.cs:38
HotItem currentHotItem
Definition: Player.cs:901
SpriteRenderer iconStatus
Definition: TCOrbitThing.cs:7
Emo2 GetRestockedIcon()
Definition: Trait.cs:1441

References EMono._zone, Card.CanBeSheared(), EMono.core, Player.currentHotItem, Trait.GetRestockedIcon(), iconStatus, Card.IsInstalled, Card.IsPCParty, Card.isRestocking, CoreRef.orbitIcons, owner, EMono.player, Core.refs, CoreRef.spritesEmo, HotItem.Thing, and Card.trait.

Referenced by OnSetOwner(), and Refresh().

Member Data Documentation

◆ goIcon

GameObject TCOrbitThing.goIcon

Definition at line 5 of file TCOrbitThing.cs.

Referenced by OnSetOwner().

◆ iconStatus

SpriteRenderer TCOrbitThing.iconStatus

Definition at line 7 of file TCOrbitThing.cs.

Referenced by RefreshAll().

◆ owner

new Thing TCOrbitThing.owner

Definition at line 9 of file TCOrbitThing.cs.

Referenced by OnSetOwner(), Refresh(), and RefreshAll().

◆ timer

float TCOrbitThing.timer
private

Definition at line 11 of file TCOrbitThing.cs.

Referenced by Refresh().


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