Elin Modding Docs Doc
Loading...
Searching...
No Matches
EloMapTileSelector.cs
1using System;
2using CreativeSpore.SuperTilemapEditor;
3using UnityEngine;
4
5// Token: 0x0200065A RID: 1626
7{
8 // Token: 0x17000CF1 RID: 3313
9 // (get) Token: 0x06002DBA RID: 11706 RVA: 0x001005B0 File Offset: 0x000FE7B0
10 public EloMap elomap
11 {
12 get
13 {
14 return this.actor.elomap;
15 }
16 }
17
18 // Token: 0x17000CF2 RID: 3314
19 // (get) Token: 0x06002DBB RID: 11707 RVA: 0x001005BD File Offset: 0x000FE7BD
20 public STETilemap fogmap
21 {
22 get
23 {
24 return this.elomap.fogmap;
25 }
26 }
27
28 // Token: 0x06002DBC RID: 11708 RVA: 0x001005CC File Offset: 0x000FE7CC
29 public void OnUpdateInput()
30 {
31 int mouseGridX = TilemapUtils.GetMouseGridX(this.fogmap, EMono.scene.cam);
32 int mouseGridY = TilemapUtils.GetMouseGridY(this.fogmap, EMono.scene.cam);
33 if (this.elomap.GetCell(mouseGridX, mouseGridY) != null && (mouseGridX != this.gx || mouseGridY != this.gy))
34 {
35 this.gx = mouseGridX;
36 this.gy = mouseGridY;
37 this.hasTargetChanged = true;
38 this.textMouseOver = "";
39 Zone zone = this.elomap.GetZone(this.gx, this.gy);
40 if (zone != null)
41 {
42 this.textMouseOver = this.textMouseOver + " " + zone.Name;
43 }
44 this.srHighlight.transform.position = TilemapUtils.GetGridWorldPos(this.fogmap, this.gx, this.gy);
45 }
46 else
47 {
48 this.hasTargetChanged = false;
49 }
50 bool enable = !EMono.ui.isPointerOverUI;
51 this.srHighlight.SetActive(enable);
52 this.srHighlight2.SetActive(false);
53 this.srEmbarkPoint.SetActive(false);
54 }
55
56 // Token: 0x040019C4 RID: 6596
57 public EloMapActor actor;
58
59 // Token: 0x040019C5 RID: 6597
60 public SpriteRenderer srHighlight;
61
62 // Token: 0x040019C6 RID: 6598
63 public SpriteRenderer srHighlight2;
64
65 // Token: 0x040019C7 RID: 6599
66 public SpriteRenderer srEmbarkPoint;
67
68 // Token: 0x040019C8 RID: 6600
69 [NonSerialized]
70 public int gx;
71
72 // Token: 0x040019C9 RID: 6601
73 [NonSerialized]
74 public int gy;
75
76 // Token: 0x040019CA RID: 6602
77 [NonSerialized]
78 public bool hasTargetChanged;
79
80 // Token: 0x040019CB RID: 6603
81 [NonSerialized]
82 public string textMouseOver;
83}
Definition EMono.cs:6
Definition Zone.cs:14