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

Classes

class  FillUtil
 
class  ResizeUtil
 

Public Member Functions

void RefreshAll ()
 
void RefreshScreen ()
 
void SetAllPlayerCreation ()
 
void Export ()
 

Public Attributes

ResizeUtil resize = new ResizeUtil()
 
FillUtil fill = new FillUtil()
 
Zone zone
 

Static Public Attributes

static ZoneInspector Instance
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

string idExport [get]
 
MapConfig mapConfig [get, set]
 
MapBounds bounds [get, set]
 
- 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]
 

Private Member Functions

void Awake ()
 
void OnValidate ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Detailed Description

Definition at line 3 of file ZoneInspector.cs.

Member Function Documentation

◆ Awake()

void ZoneInspector.Awake ( )
inlineprivate

Definition at line 120 of file ZoneInspector.cs.

121 {
122 Instance = this;
123 }
static ZoneInspector Instance

References Instance.

◆ Export()

void ZoneInspector.Export ( )
inline

Definition at line 161 of file ZoneInspector.cs.

162 {
164 }
Definition: EMono.cs:4
static Zone _zone
Definition: EMono.cs:19
void Export(string path, PartialMap partial=null, bool usermap=false)
Definition: Zone.cs:2898

References EMono._zone, and Zone.Export().

◆ OnValidate()

void ZoneInspector.OnValidate ( )
inlineprivate

Definition at line 166 of file ZoneInspector.cs.

167 {
168 if (Application.isPlaying)
169 {
171 }
172 }
void RefreshScreen()

References RefreshScreen().

◆ RefreshAll()

void ZoneInspector.RefreshAll ( )
inline

Definition at line 125 of file ZoneInspector.cs.

126 {
128 }
static Map _map
Definition: EMono.cs:17
void RefreshAllTiles()
Definition: Map.cs:2086

References EMono._map, and Map.RefreshAllTiles().

◆ RefreshScreen()

void ZoneInspector.RefreshScreen ( )
inline

Definition at line 130 of file ZoneInspector.cs.

131 {
133 {
134 EMono.scene.profile = SceneProfile.Load(EMono._map.config.idSceneProfile.IsEmpty("default"));
136 if (EMono.player.zone is Region)
137 {
139 }
140 else
141 {
143 }
144 EMono.screen.SetZoom(0.5f);
146 }
147 }
static AM_Region Region
Definition: ActionMode.cs:17
void Activate(bool toggle=true, bool forceActivate=false)
Definition: ActionMode.cs:339
static AM_Adv Adv
Definition: ActionMode.cs:15
void SetZoom(float z)
void RefreshScreenSize()
bool IsGameStarted
Definition: Core.cs:84
static Core core
Definition: EMono.cs:5
static Player player
Definition: EMono.cs:11
static BaseGameScreen screen
Definition: EMono.cs:29
string idSceneProfile
Definition: MapConfig.cs:8
MapConfig config
Definition: Map.cs:37
Zone zone
Definition: Player.cs:883
Definition: Region.cs:7
static SceneProfile Load(string id)
Definition: SceneProfile.cs:18

References EMono._map, ActionMode.Activate(), ActionMode.Adv, Map.config, EMono.core, BaseGameScreen.Deactivate(), MapConfig.idSceneProfile, Core.IsGameStarted, SceneProfile.Load(), EMono.player, BaseGameScreen.RefreshScreenSize(), ActionMode.Region, EMono.screen, BaseGameScreen.SetZoom(), and Player.zone.

Referenced by OnValidate().

◆ SetAllPlayerCreation()

void ZoneInspector.SetAllPlayerCreation ( )
inline

Definition at line 149 of file ZoneInspector.cs.

150 {
151 foreach (Thing thing in EMono._map.things)
152 {
153 thing.isPlayerCreation = true;
154 }
155 foreach (Chara chara in EMono._map.charas)
156 {
157 chara.isPlayerCreation = true;
158 }
159 }
Definition: Chara.cs:10
List< Thing > things
Definition: Map.cs:49
List< Chara > charas
Definition: Map.cs:81
Definition: Thing.cs:8

References EMono._map, Map.charas, and Map.things.

Member Data Documentation

◆ fill

FillUtil ZoneInspector.fill = new FillUtil()

Definition at line 90 of file ZoneInspector.cs.

◆ Instance

ZoneInspector ZoneInspector.Instance
static

Definition at line 86 of file ZoneInspector.cs.

Referenced by Awake().

◆ resize

ResizeUtil ZoneInspector.resize = new ResizeUtil()

Definition at line 88 of file ZoneInspector.cs.

◆ zone

Zone ZoneInspector.zone

Definition at line 92 of file ZoneInspector.cs.

Property Documentation

◆ bounds

MapBounds ZoneInspector.bounds
getset

Definition at line 108 of file ZoneInspector.cs.

109 {
110 get
111 {
112 return zone?.map.bounds;
113 }
114 set
115 {
116 zone.map.bounds = value;
117 }
118 }
MapBounds bounds
Definition: Map.cs:52
Map map
Definition: Zone.cs:60

◆ idExport

string ZoneInspector.idExport
get

Definition at line 94 of file ZoneInspector.cs.

◆ mapConfig

MapConfig ZoneInspector.mapConfig
getset

Definition at line 96 of file ZoneInspector.cs.

97 {
98 get
99 {
100 return zone?.map.config;
101 }
102 set
103 {
104 zone.map.config = value;
105 }
106 }

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