Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
AM_Copy Class Reference
Inheritance diagram for AM_Copy:
AM_BaseTileSelect ActionMode EClass AM_Blueprint

Public Types

enum  Mode { Copy , Place , Create }
 

Public Member Functions

override string OnSetSubMenuButton (int a, UIButton b)
 
override void OnClickSubMenu (int a)
 
override HitResult HitTest (Point point, Point start)
 
override void OnSelectStart (Point point)
 
override void OnSelectEnd (bool cancel)
 
override void OnAfterProcessTiles (Point start, Point end)
 
virtual void OnSave (PartialMap _partial)
 
override void OnRenderTile (Point point, HitResult result, int dir)
 
override void OnUpdateInput ()
 
override void RotateUnderMouse ()
 
void Clear ()
 
override void OnCancel ()
 
void Import (string path)
 
void ImportDialog (string dir=null)
 
void RefreshMenu (bool show)
 
override void OnActivate ()
 
override void OnDeactivate ()
 
- Public Member Functions inherited from ActionMode
virtual int TopHeight (Point p)
 
virtual void SEExecuteSummary ()
 
virtual bool HighlightWall (Point p)
 
virtual void OnClickSubMenu (int a)
 
virtual string OnSetSubMenuButton (int a, UIButton b)
 
virtual bool IsRoofEditMode (Card c=null)
 
virtual bool IsFillMode ()
 
virtual int GetDefaultTile (Point p)
 
virtual void OnShowExtraHint (UINote n)
 
void Activate (bool toggle=true, bool forceActivate=false)
 
virtual void OnActivate ()
 
void RefreshTexts ()
 
virtual string GetSimpleText (Card c)
 
void ClearSimpleTexts ()
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
virtual void OnCancel ()
 
virtual void OnBeforeUpdate ()
 
virtual void OnAfterUpdate ()
 
virtual void OnUpdateCursor ()
 
void OnRotate ()
 
void SetCursorOnMap (CursorInfo cursor)
 
void UpdateInput ()
 
void InputMovement ()
 
virtual void InputWheel (int wheel)
 
virtual void OnUpdateInput ()
 
void DoFunc (CoreConfig.GameFuncBuild func)
 
bool IsFuncPressed (CoreConfig.GameFunc func)
 
void DoFunc (CoreConfig.GameFunc func)
 
virtual void OnScroll ()
 
void TryRightClickCloseWidget ()
 
bool TryShowWidgetMenu ()
 
HitResult _HitTest (Point point, Point start)
 
virtual HitResult HitTest (Point point, Point start)
 
virtual void OnSelectStart (Point point)
 
virtual void OnSelectEnd (bool cancel)
 
virtual MeshPass GetGuidePass (Point point)
 
virtual void OnRenderTile (Point point, HitResult result, int dir)
 
void OnRenderTileFloor (Point point, HitResult result)
 
virtual bool CanProcessTiles ()
 
virtual void OnBeforeProcessTiles ()
 
virtual void OnProcessTiles (Point point, int dir)
 
virtual void OnAfterProcessTiles (Point start, Point end)
 
virtual void OnFinishProcessTiles ()
 
virtual void OnRefreshSummary (Point point, HitResult result, HitSummary summary)
 
void ShowLayer ()
 
virtual Layer OnShowLayer ()
 
void HideLayer ()
 
virtual void OnHideLayer ()
 
virtual string GetHintText ()
 
virtual void RotateUnderMouse ()
 
virtual ref string SetMouseInfo (ref string s)
 
void TogglePause ()
 
void Pause (bool sound=false)
 
void UnPause (bool sound=false)
 
void ChangeGameSpeed (int a, bool sound=false)
 

Public Attributes

string overwritePath
 
PartialMap partialMap
 
DirectoryInfo dir
 
DirectoryInfo dirUser
 
- Public Attributes inherited from ActionMode
Layer layer
 
int brushRadius = 4
 

Properties

override BaseTileSelector.SelectType selectType [get]
 
override bool IsBuildMode [get]
 
override BuildMenu.Mode buildMenuMode [get]
 
override bool UseSubMenu [get]
 
override bool SubMenuAsGroup [get]
 
virtual Mode mode [get]
 
PartialMapMenu menu [get]
 
override int CostMoney [get]
 
- Properties inherited from AM_BaseTileSelect
override CursorInfo DefaultCursor [get]
 
override bool enableMouseInfo [get]
 
override bool ShowMouseoverTarget [get]
 
override bool CanSelectTile [get]
 
override AreaHighlightMode AreaHihlight [get]
 
TaskManager.Designations Designations [get]
 
override string idSound [get]
 
override bool AllowMiddleClickFunc [get]
 
override bool ShowMaskedThings [get]
 
- Properties inherited from ActionMode
static AM_Adv AdvOrRegion [get]
 
static bool IsAdv [get]
 
virtual float gameSpeed [get]
 
bool IsActive [get]
 
virtual BaseTileSelector.HitType hitType [get]
 
virtual BaseTileSelector.SelectType selectType [get]
 
virtual BaseTileSelector.BoxType boxType [get]
 
virtual bool ContinuousClick [get]
 
virtual int hitW [get]
 
virtual int hitH [get]
 
HitSummary Summary [get]
 
bool Multisize [get]
 
virtual string id [get]
 
virtual CursorInfo DefaultCursor [get]
 
virtual string idHelpTopic [get]
 
virtual string idSound [get]
 
virtual bool enableMouseInfo [get]
 
virtual bool hideBalloon [get]
 
virtual string textHintTitle [get]
 
virtual bool AllowAutoClick [get]
 
virtual bool ShowActionHint [get]
 
virtual bool ShowMouseoverTarget [get]
 
virtual AreaHighlightMode AreaHihlight [get]
 
virtual bool CanSelectTile [get]
 
virtual bool CanTargetOutsideBounds [get]
 
virtual bool ShouldPauseGame [get]
 
virtual bool FixFocus [get]
 
virtual bool HideSubWidgets [get]
 
virtual bool IsBuildMode [get]
 
virtual bool ShowBuildWidgets [get]
 
virtual BuildMenu.Mode buildMenuMode [get]
 
virtual bool ShouldHideBuildMenu [get]
 
virtual bool CanTargetFog [get]
 
virtual int CostMoney [get]
 
virtual bool AllowBuildModeShortcuts [get]
 
virtual bool AllowMiddleClickFunc [get]
 
virtual bool AllowHotbar [get]
 
virtual bool AllowGeneralInput [get]
 
virtual bool ShowMaskedThings [get]
 
virtual int SelectorHeight [get]
 
virtual bool AllowWheelZoom [get]
 
virtual float TargetZoom [get]
 
virtual BaseTileMap.CardIconMode cardIconMode [get]
 
virtual BaseGameScreen TargetGameScreen [get]
 
virtual bool IsNoMap [get]
 
virtual bool UseSubMenu [get]
 
virtual bool UseSubMenuSlider [get]
 
virtual bool SubMenuAsGroup [get]
 
virtual int SubMenuModeIndex [get]
 
virtual bool ShowExtraHint [get]
 
BaseTileSelector tileSelector [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 ActionMode
static void OnGameInstantiated ()
 
- 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)
 
- Static Public Attributes inherited from ActionMode
static ActionMode DefaultMode
 
static AM_Title Title = new AM_Title()
 
static AM_Sim Sim
 
static AM_ViewZone View
 
static AM_Adv Adv
 
static AM_Region Region
 
static AM_ADV_Target AdvTarget
 
static AM_EloMap EloMap
 
static AM_Inspect Inspect
 
static AM_NoMap NoMap
 
static AM_MiniGame MiniGame
 
static AM_NewZone NewZone
 
static AM_Bird Bird
 
static AM_Mine Mine
 
static AM_Dig Dig
 
static AM_Harvest Harvest
 
static AM_Cut Cut
 
static AM_StateEditor StateEditor
 
static AM_Picker Picker
 
static AM_Copy Copy
 
static AM_Blueprint Blueprint
 
static AM_Build Build
 
static AM_CreateArea CreateArea
 
static AM_EditArea EditArea
 
static AM_ExpandArea ExpandArea
 
static AM_Deconstruct Deconstruct
 
static AM_Select Select
 
static AM_RemoveDesignation RemoveDesignation
 
static AM_ViewMap ViewMap
 
static AM_Terrain Terrain
 
static AM_Populate Populate
 
static AM_EditMarker EditMarker
 
static AM_Visibility Visibility
 
static AM_Cinema Cinema
 
static AM_Paint Paint
 
static AM_FlagCell FlagCell
 
static ActionMode LastBuildMode
 
static SourceMaterial.Row lastEditorMat
 
static bool ignoreSound
 
static float[] GameSpeeds = new float[4] { 0f, 1f, 2f, 5f }
 
static List< TCSimpleTextsimpleTexts = new List<TCSimpleText>()
 
static float hotElementTimer
 
- Static Public Attributes inherited from EClass
static Core core
 
- Static Protected Attributes inherited from ActionMode
static Vector3 mpos
 

Detailed Description

Definition at line 5 of file AM_Copy.cs.

Member Enumeration Documentation

◆ Mode

Enumerator
Copy 
Place 
Create 

Definition at line 7 of file AM_Copy.cs.

8 {
9 Copy,
10 Place,
11 Create
12 }

Member Function Documentation

◆ Clear()

void AM_Copy.Clear ( )
inline

Definition at line 209 of file AM_Copy.cs.

210 {
212 partialMap = null;
213 RefreshMenu(show: true);
214 }
PartialMap partialMap
Definition: AM_Copy.cs:16
void RefreshMenu(bool show)
Definition: AM_Copy.cs:260
void ClearMarkedCells()
Definition: PartialMap.cs:103

References PartialMap.ClearMarkedCells(), partialMap, and RefreshMenu().

Referenced by OnAfterProcessTiles(), OnCancel(), and RefreshMenu().

◆ HitTest()

override HitResult AM_Copy.HitTest ( Point  point,
Point  start 
)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 73 of file AM_Copy.cs.

74 {
75 if (!base.Summary.CanExecute())
76 {
77 return HitResult.Invalid;
78 }
79 if (partialMap == null)
80 {
81 foreach (Thing thing in point.cell.Things)
82 {
83 if (!thing.trait.CanCopyInBlueprint)
84 {
85 return HitResult.Warning;
86 }
87 }
88 }
89 return HitResult.Valid;
90 }
HitResult
Definition: HitResult.cs:2
Trait trait
Definition: Card.cs:49
List< Thing > Things
Definition: Cell.cs:986
Cell cell
Definition: Point.cs:51
Definition: Thing.cs:8
virtual bool CanCopyInBlueprint
Definition: Trait.cs:148

References Trait.CanCopyInBlueprint, Point.cell, partialMap, Cell.Things, and Card.trait.

◆ Import()

void AM_Copy.Import ( string  path)
inline

Definition at line 242 of file AM_Copy.cs.

243 {
244 partialMap = PartialMap.Load(path);
245 RefreshMenu(show: false);
246 }
static PartialMap Load(string path=null)
Definition: PartialMap.cs:448

References PartialMap.Load(), partialMap, and RefreshMenu().

Referenced by PartialMapMenu.Refresh(), and AM_Blueprint.SetBlueprint().

◆ ImportDialog()

void AM_Copy.ImportDialog ( string  dir = null)
inline

Definition at line 248 of file AM_Copy.cs.

249 {
251 {
252 string[] array = StandaloneFileBrowser.OpenFilePanel("Import Map Piece", dir ?? CorePath.MapPieceSaveUser, "mp", multiselect: false);
253 if (array.Length != 0)
254 {
255 Import(array[0]);
256 }
257 });
258 }
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
Definition: UIBook.cs:627
DirectoryInfo dir
Definition: AM_Copy.cs:18
void WaitForEndOfFrame(Action action)
Definition: BaseCore.cs:61
static string MapPieceSaveUser
Definition: CorePath.cs:202
Definition: EClass.cs:5
static Core core
Definition: EClass.cs:6
static string[] OpenFilePanel(string title, string directory, string extension, bool multiselect)

References EClass.core, dir, if(), CorePath.MapPieceSaveUser, SFB.StandaloneFileBrowser.OpenFilePanel(), and BaseCore.WaitForEndOfFrame().

Referenced by OnUpdateInput().

◆ OnActivate()

override void AM_Copy.OnActivate ( )
inlinevirtual

Reimplemented from ActionMode.

Definition at line 297 of file AM_Copy.cs.

298 {
299 dir = (dirUser = new DirectoryInfo(CorePath.MapPieceSaveUser));
300 if (mode == Mode.Copy)
301 {
303 }
304 RefreshMenu(show: true);
305 }
Mode
Definition: AM_Copy.cs:8
virtual Mode mode
Definition: AM_Copy.cs:42
DirectoryInfo dirUser
Definition: AM_Copy.cs:20
static void Activate()

References PartialMapMenu.Activate(), dir, dirUser, CorePath.MapPieceSaveUser, mode, and RefreshMenu().

◆ OnAfterProcessTiles()

override void AM_Copy.OnAfterProcessTiles ( Point  start,
Point  end 
)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 105 of file AM_Copy.cs.

106 {
107 if (partialMap != null)
108 {
109 EClass.Sound.Play("build_area");
110 partialMap.editMode = false;
111 partialMap.procedural = true;
112 if (MapPiece.IsEditor)
113 {
114 if (Input.GetKey(KeyCode.LeftShift))
115 {
116 partialMap.procedural = true;
117 }
118 else
119 {
120 partialMap.editMode = true;
121 }
122 }
124 return;
125 }
127 {
128 allowRotate = Application.isEditor
129 };
130 int x = Mathf.Min(start.x, end.x);
131 int z = Mathf.Min(start.z, end.z);
132 int w = Mathf.Abs(start.x - end.x) + 1;
133 int h = Mathf.Abs(start.z - end.z) + 1;
134 partialMap.Save(x, z, w, h);
135 if (!overwritePath.IsEmpty())
136 {
137 File.Copy(PartialMap.PathTemp, overwritePath, overwrite: true);
138 SE.Play("camera");
139 overwritePath = null;
140 partialMap = null;
141 RefreshMenu(show: true);
142 return;
143 }
145 partialMap.localOffsetX = ((end.x > start.x) ? (start.x - end.x) : 0);
146 partialMap.localOffsetZ = ((end.z > start.z) ? (start.z - end.z) : 0);
147 RefreshMenu(show: false);
148 if (mode == Mode.Create)
149 {
151 Clear();
152 }
153 else
154 {
155 SE.Click();
156 }
157 }
virtual void OnSave(PartialMap _partial)
Definition: AM_Copy.cs:159
void Clear()
Definition: AM_Copy.cs:209
string overwritePath
Definition: AM_Copy.cs:14
static SoundManager Sound
Definition: EClass.cs:46
static bool IsEditor
Definition: MapPiece.cs:47
void Apply(Point _point, ApplyMode mode)
Definition: PartialMap.cs:112
static string PathTemp
Definition: PartialMap.cs:86
void Save(int _x, int _z, int _w, int _h)
Definition: PartialMap.cs:411
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
static UIScreenshot Create()
Definition: UIScreenshot.cs:20
void Activate(PartialMap partial, DirectoryInfo dir, Action< PartialMap > onSave=null, bool isUpdate=false)
Definition: UIScreenshot.cs:31

References UIScreenshot.Activate(), PartialMap.Apply(), Clear(), UIScreenshot.Create(), dir, MapPiece.IsEditor, PartialMap.Load(), mode, OnSave(), overwritePath, partialMap, PartialMap.PathTemp, RefreshMenu(), PartialMap.Save(), EClass.Sound, Point.x, and Point.z.

◆ OnCancel()

override void AM_Copy.OnCancel ( )
inlinevirtual

Reimplemented from ActionMode.

Definition at line 216 of file AM_Copy.cs.

217 {
218 if (!overwritePath.IsEmpty())
219 {
220 overwritePath = null;
221 SE.Play("actionMode");
222 RefreshMenu(show: true);
223 }
224 else if (mode == Mode.Place)
225 {
226 Deactivate();
227 }
228 else if (!UIScreenshot.Instance)
229 {
230 if (partialMap != null)
231 {
232 Clear();
233 SE.Play("actionMode");
234 }
235 else
236 {
237 Deactivate();
238 }
239 }
240 }
void Deactivate()
Definition: ActionMode.cs:529
static UIScreenshot Instance
Definition: UIScreenshot.cs:8

References Clear(), ActionMode.Deactivate(), UIScreenshot.Instance, mode, overwritePath, partialMap, and RefreshMenu().

◆ OnClickSubMenu()

override void AM_Copy.OnClickSubMenu ( int  a)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 68 of file AM_Copy.cs.

69 {
70 PartialMap.relative = !PartialMap.relative;
71 }
static bool relative
Definition: PartialMap.cs:25

References PartialMap.relative.

◆ OnDeactivate()

override void AM_Copy.OnDeactivate ( )
inlinevirtual

Reimplemented from ActionMode.

Definition at line 307 of file AM_Copy.cs.

308 {
309 if (partialMap != null)
310 {
312 partialMap = null;
313 }
314 if ((bool)menu)
315 {
317 }
318 if (Application.isEditor)
319 {
320 MapPiece.initialized = false;
321 }
322 }
PartialMapMenu menu
Definition: AM_Copy.cs:44

References PartialMap.ClearMarkedCells(), PartialMapMenu.Deactivate(), menu, and partialMap.

◆ OnRenderTile()

override void AM_Copy.OnRenderTile ( Point  point,
HitResult  result,
int  dir 
)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 170 of file AM_Copy.cs.

171 {
173 {
174 if (partialMap != null)
175 {
176 partialMap.Apply(point, PartialMap.ApplyMode.Render);
177 }
178 else
179 {
180 base.OnRenderTile(point, result, dir);
181 }
182 }
183 }

References PartialMap.Apply(), dir, UIScreenshot.Instance, and partialMap.

◆ OnSave()

virtual void AM_Copy.OnSave ( PartialMap  _partial)
inlinevirtual

Reimplemented in AM_Blueprint.

Definition at line 159 of file AM_Copy.cs.

160 {
161 if (MapPiece.IsEditor)
162 {
163 MapPiece.initialized = false;
165 }
167 menu.Refresh();
168 }
void DestorySprites()
void RefreshCategory(DirectoryInfo dir=null)

References PartialMapMenu.DestorySprites(), MapPiece.IsEditor, menu, PartialMapMenu.Refresh(), and PartialMapMenu.RefreshCategory().

Referenced by OnAfterProcessTiles(), and RefreshMenu().

◆ OnSelectEnd()

override void AM_Copy.OnSelectEnd ( bool  cancel)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 97 of file AM_Copy.cs.

98 {
99 if (cancel)
100 {
101 RefreshMenu(show: true);
102 }
103 }

References RefreshMenu().

◆ OnSelectStart()

override void AM_Copy.OnSelectStart ( Point  point)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 92 of file AM_Copy.cs.

93 {
94 RefreshMenu(show: false);
95 }

References RefreshMenu().

◆ OnSetSubMenuButton()

override string AM_Copy.OnSetSubMenuButton ( int  a,
UIButton  b 
)
inlinevirtual

Reimplemented from ActionMode.

Definition at line 58 of file AM_Copy.cs.

59 {
60 if (a != 0)
61 {
62 return null;
63 }
65 return "copyRelative";
66 }
void SetCheck(bool check)
Definition: UIButton.cs:332

References PartialMap.relative, and UIButton.SetCheck().

◆ OnUpdateInput()

override void AM_Copy.OnUpdateInput ( )
inlinevirtual

Reimplemented from ActionMode.

Definition at line 185 of file AM_Copy.cs.

186 {
187 if (Input.GetKeyDown(KeyCode.K))
188 {
190 }
191 if (Input.GetKeyDown(KeyCode.L))
192 {
193 ImportDialog();
194 }
195 }
void ImportDialog(string dir=null)
Definition: AM_Copy.cs:248
static void ExportDialog(string dir=null)
Definition: PartialMap.cs:515

References PartialMap.ExportDialog(), and ImportDialog().

◆ RefreshMenu()

void AM_Copy.RefreshMenu ( bool  show)
inline

Definition at line 260 of file AM_Copy.cs.

261 {
262 if (!menu)
263 {
264 return;
265 }
266 menu.SetVisible(show);
267 BuildMenu.Instance.terrainMenu.SetActive(!show);
268 menu.buttonSave.SetActive(partialMap != null && partialMap.path.IsEmpty());
269 menu.buttonDelete.SetActive(partialMap != null && !partialMap.path.IsEmpty());
270 menu.buttonEdit.SetActive(partialMap != null && !partialMap.path.IsEmpty());
271 menu.buttonSave.SetOnClick(delegate
272 {
274 {
275 OnSave(a);
276 Clear();
277 });
278 });
279 menu.buttonDelete.SetOnClick(delegate
280 {
281 Dialog.YesNo("dialog_deleteMapPiece", delegate
282 {
283 SE.Trash();
286 menu.Refresh();
287 Clear();
288 });
289 });
290 menu.buttonEdit.SetOnClick(delegate
291 {
292 UIScreenshot.Create().Activate(partialMap, dir, OnSave, isUpdate: true);
293 Clear();
294 });
295 }
void Activate(bool toggle=true, bool forceActivate=false)
Definition: ActionMode.cs:339
static BuildMenu Instance
Definition: BuildMenu.cs:77
TerrainMenu terrainMenu
Definition: BuildMenu.cs:49
Definition: Dialog.cs:7
static Dialog YesNo(string langDetail, Action actionYes, Action actionNo=null, string langYes="yes", string langNo="no")
Definition: Dialog.cs:244
UIButton buttonEdit
UIButton buttonSave
UIButton buttonDelete
void SetVisible(bool visible)
static void Delete(string path)
Definition: PartialMap.cs:507
string path
Definition: PartialMap.cs:68

References ActionMode.Activate(), UIScreenshot.Activate(), PartialMapMenu.buttonDelete, PartialMapMenu.buttonEdit, PartialMapMenu.buttonSave, Clear(), UIScreenshot.Create(), PartialMap.Delete(), PartialMapMenu.DestorySprites(), dir, BuildMenu.Instance, menu, OnSave(), partialMap, PartialMap.path, PartialMapMenu.Refresh(), PartialMapMenu.SetVisible(), BuildMenu.terrainMenu, and Dialog.YesNo().

Referenced by Clear(), Import(), OnActivate(), OnAfterProcessTiles(), OnCancel(), OnSelectEnd(), OnSelectStart(), and PartialMapMenu.Refresh().

◆ RotateUnderMouse()

override void AM_Copy.RotateUnderMouse ( )
inlinevirtual

Reimplemented from ActionMode.

Definition at line 197 of file AM_Copy.cs.

198 {
199 if (partialMap != null && partialMap.allowRotate)
200 {
202 }
203 else
204 {
205 base.RotateUnderMouse();
206 }
207 }
bool allowRotate
Definition: PartialMap.cs:55
void Rotate()
Definition: PartialMap.cs:92

References PartialMap.allowRotate, partialMap, and PartialMap.Rotate().

Member Data Documentation

◆ dir

DirectoryInfo AM_Copy.dir

Definition at line 18 of file AM_Copy.cs.

Referenced by ImportDialog(), OnActivate(), OnAfterProcessTiles(), OnRenderTile(), and RefreshMenu().

◆ dirUser

DirectoryInfo AM_Copy.dirUser

Definition at line 20 of file AM_Copy.cs.

Referenced by OnActivate().

◆ overwritePath

string AM_Copy.overwritePath

Definition at line 14 of file AM_Copy.cs.

Referenced by OnAfterProcessTiles(), and OnCancel().

◆ partialMap

Property Documentation

◆ buildMenuMode

override BuildMenu.Mode AM_Copy.buildMenuMode
get

Definition at line 36 of file AM_Copy.cs.

◆ CostMoney

override int AM_Copy.CostMoney
get

Definition at line 46 of file AM_Copy.cs.

47 {
48 get
49 {
50 if (partialMap == null)
51 {
52 return 0;
53 }
54 return partialMap.value;
55 }
56 }

◆ IsBuildMode

override bool AM_Copy.IsBuildMode
get

Definition at line 34 of file AM_Copy.cs.

◆ menu

PartialMapMenu AM_Copy.menu
get

Definition at line 44 of file AM_Copy.cs.

Referenced by OnDeactivate(), OnSave(), and RefreshMenu().

◆ mode

virtual Mode AM_Copy.mode
get

Definition at line 42 of file AM_Copy.cs.

Referenced by OnActivate(), OnAfterProcessTiles(), and OnCancel().

◆ selectType

override BaseTileSelector.SelectType AM_Copy.selectType
get

Definition at line 22 of file AM_Copy.cs.

23 {
24 get
25 {
26 if (partialMap != null)
27 {
28 return BaseTileSelector.SelectType.Single;
29 }
30 return BaseTileSelector.SelectType.Multiple;
31 }
32 }

◆ SubMenuAsGroup

override bool AM_Copy.SubMenuAsGroup
get

Definition at line 40 of file AM_Copy.cs.

◆ UseSubMenu

override bool AM_Copy.UseSubMenu
get

Definition at line 38 of file AM_Copy.cs.


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