Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InspectGroupBlock Class Reference
Inheritance diagram for InspectGroupBlock:
InspectGroup< BlockInfo > EClass

Public Member Functions

override void OnSetActions ()
 
- Public Member Functions inherited from InspectGroup< BlockInfo >
bool CanInspect ()
 
virtual bool Contains (IInspect t)
 
string GetName ()
 
virtual void SetActions ()
 
sealed override void SetActions ()
 
virtual void OnSetActions ()
 
Item Add (string text, string idSprite, Action action, bool sound=false, int priority=0, bool auto=false)
 
Item Add (string text, string idSprite, Action< T > action, bool sound=false, int priority=0, bool auto=false)
 

Properties

override string MultiName [get]
 
- Properties inherited from InspectGroup< BlockInfo >
IInspect FirstTarget [get]
 
new T FirstTarget [get]
 
bool Solo [get]
 
virtual string MultiName [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]
 

Additional Inherited Members

- Static Public Member Functions inherited from InspectGroup< BlockInfo >
static InspectGroup Create (IInspect t)
 
- 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 InspectGroup< BlockInfo >
Type type
 
List< Itemactions
 
List< IInspecttargets
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 3 of file InspectGroupBlock.cs.

Member Function Documentation

◆ OnSetActions()

override void InspectGroupBlock.OnSetActions ( )
inlinevirtual

Reimplemented from InspectGroup< BlockInfo >.

Definition at line 7 of file InspectGroupBlock.cs.

8 {
9 BlockInfo firstTarget = base.FirstTarget;
10 TaskDesignation taskDesignation = firstTarget.pos.detail?.designation;
11 if (taskDesignation is TaskMine)
12 {
13 Add("cancel".lang() + "\n(" + taskDesignation.Name + ")", "", delegate(BlockInfo t)
14 {
15 TaskDesignation taskDesignation2 = t.pos.detail?.designation;
16 if (taskDesignation2 is TaskMine)
17 {
18 taskDesignation2.Destroy();
19 }
20 }, sound: true);
21 }
22 else
23 {
24 Add("Mine", "", delegate(BlockInfo t)
25 {
26 Point pos = t.pos.Copy();
28 {
29 pos = pos
30 }) && base.Solo)
31 {
32 SE.Beep();
33 }
34 }, sound: true);
35 }
37 if (r.IsValid)
38 {
39 Add("Copy", "", (Action)delegate
40 {
42 }, sound: false, 0, auto: false);
43 }
44 }
virtual new string Name
Definition: AIAct.cs:68
Result TestBlock(Point point)
Definition: AM_Picker.cs:83
new bool Select(Result r)
Definition: AM_Picker.cs:175
static AM_Picker Picker
Definition: ActionMode.cs:43
TaskDesignation designation
Definition: CellDetail.cs:19
override bool TryAdd(T t)
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
Item Add(string text, string idSprite, Action action, bool sound=false, int priority=0, bool auto=false)
TaskManager tasks
Definition: Map.cs:34
Definition: Point.cs:9
Point Copy()
Definition: Point.cs:467
CellDetail detail
Definition: Point.cs:71
DesignationList< TaskMine > mine
Definition: TaskManager.cs:9
Designations designations
Definition: TaskManager.cs:62
Status Destroy()
Definition: Task.cs:31

References EClass._map, InspectGroup< BlockInfo >.Add(), Point.Copy(), CellDetail.designation, TaskManager.designations, Task.Destroy(), Point.detail, AM_Picker.Result.IsValid, TaskManager.Designations.mine, AIAct.Name, ActionMode.Picker, BaseInspectPos.pos, AM_Picker.Select(), Map.tasks, AM_Picker.TestBlock(), and DesignationList< T >.TryAdd().

Property Documentation

◆ MultiName

override string InspectGroupBlock.MultiName
get

Definition at line 5 of file InspectGroupBlock.cs.


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