Elin Decompiled Documentation EA 23.229 Stable 1st Anniversary Patch 2
Loading...
Searching...
No Matches
Spatial Class Reference
Inheritance diagram for Spatial:
EClass World Zone Region Zone_Arena Zone_CaveElona Zone_Civilized Zone_Dungeon Zone_Field Zone_Hospital Zone_LumiestRuin Zone_Shelter Zone_SnowGrave Zone_StartCave Zone_StartSite Zone_Tent Zone_TestMap Zone_TestRoom Zone_TruceGround Zone_Underground Zone_User Zone_Wilds Zone_WindRest

Public Member Functions

int GetInt (int id, int? defaultInt=null)
 
void AddInt (int id, int value)
 
void SetInt (int id, int value=0)
 
override string ToString ()
 
void Create (string _id, int _x, int _y, int _icon)
 
void Register ()
 
virtual void OnCreate ()
 
virtual void OnAfterCreate ()
 
virtual void SetMainFaction (Faction f)
 
Zone GetFirstZone ()
 
void OnBeforeSave ()
 
virtual void _OnBeforeSave ()
 
void _OnLoad ()
 
virtual void OnLoad ()
 
virtual void Destroy ()
 
void DeleteMapRecursive ()
 
virtual void AddChild (Spatial child)
 
void RemoveChild (Spatial child)
 
Zone FindDeepestZone ()
 
Zone FindZone (int lv)
 
Zone FindZone (string _id)
 
virtual bool CanKill ()
 
int Dist (Point p)
 
int Dist (Spatial s)
 
void MakeGameObject (GameObject parentGo)
 

Public Attributes

Spatial parent
 
string id
 
string idUser
 
string name
 
string idMainFaction
 
string idProfile
 
string idCurrentSubset
 
string idHat
 
int[] _ints = new int[30]
 
List< Spatialchildren = new List<Spatial>()
 
List< Spatialconnections = new List<Spatial>()
 
Dictionary< int, int > mapInt = new Dictionary<int, int>()
 
bool destryoed
 
bool isImported
 
BitArray32 bits
 

Protected Member Functions

Zone _FindZone (string _id)
 

Protected Attributes

Point _regionPos = new Point()
 

Properties

int _bits [get, set]
 
int uid [get, set]
 
int icon [get, set]
 
int x [get, set]
 
int y [get, set]
 
int lastActive [get, set]
 
int idPrefix [get, set]
 
int lv [get, set]
 
int visitCount [get, set]
 
int dateExpire [get, set]
 
int dateRevive [get, set]
 
int _dangerLv [get, set]
 
int dateRegenerate [get, set]
 
int influence [get, set]
 
int investment [get, set]
 
int development [get, set]
 
int electricity [get, set]
 
int dateHat [get, set]
 
int uidBoss [get, set]
 
int dateQuest [get, set]
 
int version [get, set]
 
bool isGenerated [get, set]
 
bool isShore [get, set]
 
bool isRandomSite [get, set]
 
bool isKnown [get, set]
 
bool isMapSaved [get, set]
 
bool isExternalZone [get, set]
 
bool isConquered [get, set]
 
bool isBeach [get, set]
 
bool isPeace [get, set]
 
bool isDeathLocation [get, set]
 
bool isAlarmSet [get, set]
 
Faction mainFaction [get, set]
 
SourceZone.Row source [get]
 
bool IsPlayerFaction [get]
 
bool IsClosed [get]
 
int mapX [get]
 
int mapY [get]
 
virtual int ContentLv [get]
 
virtual int DangerLv [get]
 
virtual int DangerLvFix [get]
 
virtual int DangerLvBoost [get]
 
virtual float VolumeSea [get]
 
virtual bool ShowDangerLv [get]
 
virtual bool CanSpawnAdv [get]
 
string pathSave [get]
 
virtual string Name [get]
 
string NameWithDangerLevel [get]
 
virtual string NameSuffix [get]
 
virtual bool IsRegion [get]
 
virtual bool CanFastTravel [get]
 
EloMap.TileInfo Tile [get]
 
virtual bool IsSnowZone [get]
 
virtual bool IsSnowCovered [get]
 
virtual Point RegionPos [get]
 
virtual bool isClaimable [get]
 
int Seed [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]
 

Private Member Functions

void OnSerializing (StreamingContext context)
 
void OnDeserialized (StreamingContext context)
 

Private Attributes

SourceZone.Row _source
 
EloMap.TileInfo _tile
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
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 EClass
static Core core
 

Detailed Description

Definition at line 7 of file Spatial.cs.

Member Function Documentation

◆ _FindZone()

Zone Spatial._FindZone ( string  _id)
inlineprotected

Definition at line 757 of file Spatial.cs.

758 {
759 foreach (Spatial child in children)
760 {
761 Zone zone = child._FindZone(_id);
762 if (zone != null)
763 {
764 return zone;
765 }
766 }
767 if (this is Zone && id == _id)
768 {
769 return (Zone)this;
770 }
771 return null;
772 }
Zone _FindZone(string _id)
Definition: Spatial.cs:757
List< Spatial > children
Definition: Spatial.cs:37
Definition: Zone.cs:12

References _FindZone(), and children.

Referenced by _FindZone(), and FindZone().

◆ _OnBeforeSave()

virtual void Spatial._OnBeforeSave ( )
inlinevirtual

Reimplemented in Zone.

Definition at line 673 of file Spatial.cs.

674 {
675 }

Referenced by OnBeforeSave().

◆ _OnLoad()

void Spatial._OnLoad ( )
inline

Definition at line 677 of file Spatial.cs.

678 {
679 foreach (Spatial child in children)
680 {
681 child._OnLoad();
682 }
683 OnLoad();
684 }
void _OnLoad()
Definition: Spatial.cs:677
virtual void OnLoad()
Definition: Spatial.cs:686

References _OnLoad(), children, and OnLoad().

Referenced by _OnLoad(), and Game.OnLoad().

◆ AddChild()

virtual void Spatial.AddChild ( Spatial  child)
inlinevirtual

Definition at line 703 of file Spatial.cs.

704 {
705 child.parent = this;
706 children.Add(child);
707 }

References children.

Referenced by SpatialGen.Create(), and TraitTent.OnChangePlaceState().

◆ AddInt()

void Spatial.AddInt ( int  id,
int  value 
)
inline

Definition at line 575 of file Spatial.cs.

576 {
577 SetInt(id, GetInt(id) + value);
578 }
void SetInt(int id, int value=0)
Definition: Spatial.cs:580
int GetInt(int id, int? defaultInt=null)
Definition: Spatial.cs:566

References GetInt(), and SetInt().

◆ CanKill()

virtual bool Spatial.CanKill ( )
inlinevirtual

Definition at line 774 of file Spatial.cs.

775 {
776 return false;
777 }

◆ Create()

void Spatial.Create ( string  _id,
int  _x,
int  _y,
int  _icon 
)
inline

Definition at line 612 of file Spatial.cs.

613 {
614 x = _x;
615 y = _y;
616 icon = _icon;
618 id = _id;
619 development = source.dev;
620 _ = source.name == "*r";
621 _dangerLv = source.LV;
623 {
624 isKnown = true;
625 }
626 OnCreate();
627 Rand.SetSeed();
628 }
bool travelAnywhere
Definition: CoreDebug.cs:207
Definition: EClass.cs:5
static CoreDebug debug
Definition: EClass.cs:48
Definition: Rand.cs:4
static void SetSeed(int a=-1)
Definition: Rand.cs:37
int _dangerLv
Definition: Spatial.cs:190
virtual void OnCreate()
Definition: Spatial.cs:638
int icon
Definition: Spatial.cs:82
int Seed
Definition: Spatial.cs:564
bool isKnown
Definition: Spatial.cs:346
SourceZone.Row source
Definition: Spatial.cs:453
int development
Definition: Spatial.cs:238
int y
Definition: Spatial.cs:106
int x
Definition: Spatial.cs:94

References _dangerLv, EClass.debug, development, icon, isKnown, OnCreate(), Seed, Rand.SetSeed(), source, CoreDebug.travelAnywhere, x, and y.

Referenced by SpatialGen.Create().

◆ DeleteMapRecursive()

void Spatial.DeleteMapRecursive ( )
inline

Definition at line 694 of file Spatial.cs.

695 {
696 foreach (Spatial child in children)
697 {
698 child.DeleteMapRecursive();
699 }
701 }
Definition: IO.cs:11
static void DeleteDirectory(string path)
Definition: IO.cs:353
void DeleteMapRecursive()
Definition: Spatial.cs:694
string pathSave
Definition: Spatial.cs:507

References children, DeleteMapRecursive(), and pathSave.

Referenced by DeleteMapRecursive().

◆ Destroy()

virtual void Spatial.Destroy ( )
inlinevirtual

Reimplemented in Zone.

Definition at line 690 of file Spatial.cs.

691 {
692 }

Referenced by Zone.ClearZones(), and Zone.Destroy().

◆ Dist() [1/2]

int Spatial.Dist ( Point  p)
inline

Definition at line 779 of file Spatial.cs.

780 {
782 if (pathProgress.HasPath)
783 {
784 int num = 0;
785 {
786 foreach (PathFinderNode node in pathProgress.nodes)
787 {
788 bool flag = EClass.scene.elomap.GetTileInfo(node.X + EClass.scene.elomap.minX, node.Z + EClass.scene.elomap.minY)?.IsSnow ?? false;
789 num += ((!flag) ? 1 : 2);
790 }
791 return num;
792 }
793 }
794 return Fov.Distance(x, y, p.x + EClass.scene.elomap.minX, p.z + EClass.scene.elomap.minY);
795 }
static Scene scene
Definition: EClass.cs:30
static Chara pc
Definition: EClass.cs:14
bool IsSnow
Definition: EloMap.cs:55
int minX
Definition: EloMap.cs:112
int minY
Definition: EloMap.cs:114
TileInfo GetTileInfo(int gx, int gy)
Definition: EloMap.cs:286
Definition: Fov.cs:6
static int Distance(int x1, int y1, int x2, int y2)
Definition: Fov.cs:134
void RequestPathImmediate(PathProgress progress)
Definition: PathManager.cs:41
static PathManager Instance
Definition: PathManager.cs:16
List< PathFinderNode > nodes
Definition: PathProgress.cs:16
Definition: Point.cs:9
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
EloMap elomap
Definition: Scene.cs:149

References Fov.Distance(), Scene.elomap, EloMap.GetTileInfo(), PathProgress.HasPath, PathManager.Instance, EloMap.TileInfo.IsSnow, EloMap.minX, EloMap.minY, PathProgress.nodes, EClass.pc, PathManager.RequestPathImmediate(), EClass.scene, Algorithms.PathFinderNode.X, Point.x, x, y, Algorithms.PathFinderNode.Z, and Point.z.

Referenced by Region.ListTravelZones(), and Region.ListZonesInRadius().

◆ Dist() [2/2]

int Spatial.Dist ( Spatial  s)
inline

Definition at line 797 of file Spatial.cs.

798 {
799 return Fov.Distance(s.x, s.y, x, y);
800 }

References Fov.Distance(), x, and y.

◆ FindDeepestZone()

Zone Spatial.FindDeepestZone ( )
inline

Definition at line 715 of file Spatial.cs.

716 {
717 Spatial spatial = this;
718 foreach (Spatial child in children)
719 {
720 if (!child.isExternalZone && child.lv < spatial.lv)
721 {
722 spatial = child;
723 }
724 }
725 return spatial as Zone;
726 }
int lv
Definition: Spatial.cs:142
bool isExternalZone
Definition: Spatial.cs:370

References children, isExternalZone, and lv.

Referenced by AM_Adv._OnUpdateInput(), Zone.CanDestroy(), and SpatialManager.ListReturnLocations().

◆ FindZone() [1/2]

Zone Spatial.FindZone ( int  lv)
inline

Definition at line 728 of file Spatial.cs.

729 {
730 foreach (Spatial child in children)
731 {
732 if (!child.isExternalZone && child.lv == lv)
733 {
734 return child as Zone;
735 }
736 }
737 if (this.lv != lv)
738 {
739 return null;
740 }
741 return this as Zone;
742 }

References children, isExternalZone, and lv.

Referenced by Zone.AddRandomVisitor(), Region.CheckRandomSites(), Chara.FallFromZone(), Chara.MoveHome(), and TraitNewZone.MoveZone().

◆ FindZone() [2/2]

Zone Spatial.FindZone ( string  _id)
inline

Definition at line 744 of file Spatial.cs.

745 {
746 foreach (Spatial child in children)
747 {
748 Zone zone = child._FindZone(_id);
749 if (zone != null)
750 {
751 return zone;
752 }
753 }
754 return null;
755 }

References _FindZone(), and children.

◆ GetFirstZone()

Zone Spatial.GetFirstZone ( )
inline

Definition at line 651 of file Spatial.cs.

652 {
653 if (this is Zone)
654 {
655 return this as Zone;
656 }
657 foreach (Spatial child in children)
658 {
659 Zone firstZone = child.GetFirstZone();
660 if (firstZone != null)
661 {
662 return firstZone;
663 }
664 }
665 return null;
666 }
Zone GetFirstZone()
Definition: Spatial.cs:651

References children, and GetFirstZone().

Referenced by GetFirstZone().

◆ GetInt()

int Spatial.GetInt ( int  id,
int?  defaultInt = null 
)
inline

Definition at line 566 of file Spatial.cs.

567 {
568 if (mapInt.TryGetValue(id, out var value))
569 {
570 return value;
571 }
572 return defaultInt.GetValueOrDefault();
573 }
Dictionary< int, int > mapInt
Definition: Spatial.cs:43

References mapInt.

Referenced by AddInt(), and TraitCoreZone.TrySetAct().

◆ MakeGameObject()

void Spatial.MakeGameObject ( GameObject  parentGo)
inline

Definition at line 802 of file Spatial.cs.

803 {
804 GameObject gameObject = new GameObject();
805 gameObject.name = ToString();
806 gameObject.transform.SetParent(parentGo.transform);
807 gameObject.AddComponent<SpatialInspector>().spatial = this;
808 foreach (Spatial child in children)
809 {
810 child.MakeGameObject(gameObject);
811 }
812 }
void MakeGameObject(GameObject parentGo)
Definition: Spatial.cs:802
override string ToString()
Definition: Spatial.cs:595

References children, MakeGameObject(), and ToString().

Referenced by MakeGameObject().

◆ OnAfterCreate()

virtual void Spatial.OnAfterCreate ( )
inlinevirtual

Reimplemented in Zone.

Definition at line 642 of file Spatial.cs.

643 {
644 }

Referenced by SpatialGen.Create().

◆ OnBeforeSave()

void Spatial.OnBeforeSave ( )
inline

Definition at line 668 of file Spatial.cs.

669 {
671 }
virtual void _OnBeforeSave()
Definition: Spatial.cs:673

References _OnBeforeSave().

Referenced by Game.OnBeforeSave().

◆ OnCreate()

virtual void Spatial.OnCreate ( )
inlinevirtual

Reimplemented in World, and Zone.

Definition at line 638 of file Spatial.cs.

639 {
640 }

Referenced by Create().

◆ OnDeserialized()

void Spatial.OnDeserialized ( StreamingContext  context)
inlineprivate

Definition at line 607 of file Spatial.cs.

608 {
609 bits.Bits = (uint)_bits;
610 }
int _bits
Definition: Spatial.cs:58

References _bits.

◆ OnLoad()

virtual void Spatial.OnLoad ( )
inlinevirtual

Reimplemented in Zone.

Definition at line 686 of file Spatial.cs.

687 {
688 }

Referenced by _OnLoad().

◆ OnSerializing()

void Spatial.OnSerializing ( StreamingContext  context)
inlineprivate

Definition at line 601 of file Spatial.cs.

602 {
603 _bits = (int)bits.Bits;
604 }
BitArray32 bits
Definition: Spatial.cs:49
uint Bits
Definition: BitArray32.cs:6

References _bits, BitArray32.Bits, and bits.

◆ Register()

void Spatial.Register ( )
inline

Definition at line 630 of file Spatial.cs.

631 {
632 if (uid == 0)
633 {
635 }
636 }
static Game game
Definition: EClass.cs:8
SpatialManager spatials
Definition: Game.cs:152
void AssignUID(Spatial s)
int uid
Definition: Spatial.cs:70

References SpatialManager.AssignUID(), EClass.game, Game.spatials, and uid.

Referenced by SpatialGen.Create().

◆ RemoveChild()

void Spatial.RemoveChild ( Spatial  child)
inline

Definition at line 709 of file Spatial.cs.

710 {
711 children.Remove(child);
712 child.parent = null;
713 }

References children.

Referenced by TraitTent.OnChangePlaceState().

◆ SetInt()

void Spatial.SetInt ( int  id,
int  value = 0 
)
inline

Definition at line 580 of file Spatial.cs.

581 {
582 if (value == 0)
583 {
584 if (mapInt.ContainsKey(id))
585 {
586 mapInt.Remove(id);
587 }
588 }
589 else
590 {
591 mapInt[id] = value;
592 }
593 }
string id
Definition: Spatial.cs:13

References id, and mapInt.

Referenced by AddInt(), and Zone_Tent.OnBeforeDeactivate().

◆ SetMainFaction()

virtual void Spatial.SetMainFaction ( Faction  f)
inlinevirtual

Definition at line 646 of file Spatial.cs.

647 {
648 mainFaction = f;
649 }
Faction mainFaction
Definition: Spatial.cs:442

References mainFaction.

Referenced by Game._Create().

◆ ToString()

override string Spatial.ToString ( )
inline

Definition at line 595 of file Spatial.cs.

596 {
597 return Name + "(" + uid + ")";
598 }
virtual string Name
Definition: Spatial.cs:509

References Name, and uid.

Referenced by MakeGameObject().

Member Data Documentation

◆ _ints

int [] Spatial._ints = new int[30]

Definition at line 34 of file Spatial.cs.

◆ _regionPos

Point Spatial._regionPos = new Point()
protected

Definition at line 55 of file Spatial.cs.

Referenced by Zone.ToString().

◆ _source

SourceZone.Row Spatial._source
private

Definition at line 51 of file Spatial.cs.

◆ _tile

EloMap.TileInfo Spatial._tile
private

Definition at line 53 of file Spatial.cs.

◆ bits

BitArray32 Spatial.bits

Definition at line 49 of file Spatial.cs.

Referenced by OnSerializing().

◆ children

◆ connections

List<Spatial> Spatial.connections = new List<Spatial>()

Definition at line 40 of file Spatial.cs.

◆ destryoed

bool Spatial.destryoed

◆ id

◆ idCurrentSubset

string Spatial.idCurrentSubset

Definition at line 28 of file Spatial.cs.

Referenced by WidgetDate._Refresh(), Zone.Activate(), and RecipeCard.Build().

◆ idHat

string Spatial.idHat

Definition at line 31 of file Spatial.cs.

◆ idMainFaction

string Spatial.idMainFaction

Definition at line 22 of file Spatial.cs.

◆ idProfile

string Spatial.idProfile

Definition at line 25 of file Spatial.cs.

◆ idUser

string Spatial.idUser

Definition at line 16 of file Spatial.cs.

Referenced by TraitMoongate.LoadMap().

◆ isImported

bool Spatial.isImported

Definition at line 47 of file Spatial.cs.

Referenced by Zone.Activate().

◆ mapInt

Dictionary<int, int> Spatial.mapInt = new Dictionary<int, int>()

Definition at line 43 of file Spatial.cs.

Referenced by GetInt(), and SetInt().

◆ name

◆ parent

Property Documentation

◆ _bits

int Spatial._bits
getset

Definition at line 57 of file Spatial.cs.

58 {
59 get
60 {
61 return _ints[0];
62 }
63 set
64 {
65 _ints[0] = value;
66 }
67 }
int[] _ints
Definition: Spatial.cs:34

Referenced by OnDeserialized(), and OnSerializing().

◆ _dangerLv

int Spatial._dangerLv
getset

Definition at line 189 of file Spatial.cs.

190 {
191 get
192 {
193 return _ints[11];
194 }
195 set
196 {
197 _ints[11] = value;
198 }
199 }

Referenced by Create().

◆ CanFastTravel

virtual bool Spatial.CanFastTravel
get

Definition at line 517 of file Spatial.cs.

518 {
519 get
520 {
521 if (!isRandomSite)
522 {
523 return !IsClosed;
524 }
525 return false;
526 }
527 }
bool isRandomSite
Definition: Spatial.cs:334
bool IsClosed
Definition: Spatial.cs:457

Referenced by Region.ListTravelZones().

◆ CanSpawnAdv

virtual bool Spatial.CanSpawnAdv
get

Definition at line 505 of file Spatial.cs.

Referenced by Region.ListTowns().

◆ ContentLv

virtual int Spatial.ContentLv
get

Definition at line 483 of file Spatial.cs.

◆ DangerLv

virtual int Spatial.DangerLv
get

Definition at line 485 of file Spatial.cs.

◆ DangerLvBoost

virtual int Spatial.DangerLvBoost
get

Definition at line 489 of file Spatial.cs.

Referenced by Chara.ScaleByPrincipal().

◆ DangerLvFix

virtual int Spatial.DangerLvFix
get

Definition at line 487 of file Spatial.cs.

◆ dateExpire

int Spatial.dateExpire
getset

Definition at line 165 of file Spatial.cs.

166 {
167 get
168 {
169 return _ints[9];
170 }
171 set
172 {
173 _ints[9] = value;
174 }
175 }

Referenced by TraitMoongate.CanUse(), and LayerTravel.Refresh().

◆ dateHat

int Spatial.dateHat
getset

Definition at line 261 of file Spatial.cs.

262 {
263 get
264 {
265 return _ints[17];
266 }
267 set
268 {
269 _ints[17] = value;
270 }
271 }

◆ dateQuest

int Spatial.dateQuest
getset

Definition at line 285 of file Spatial.cs.

286 {
287 get
288 {
289 return _ints[19];
290 }
291 set
292 {
293 _ints[19] = value;
294 }
295 }

Referenced by Zone.UpdateQuests().

◆ dateRegenerate

int Spatial.dateRegenerate
getset

Definition at line 201 of file Spatial.cs.

202 {
203 get
204 {
205 return _ints[12];
206 }
207 set
208 {
209 _ints[12] = value;
210 }
211 }

◆ dateRevive

int Spatial.dateRevive
getset

Definition at line 177 of file Spatial.cs.

178 {
179 get
180 {
181 return _ints[10];
182 }
183 set
184 {
185 _ints[10] = value;
186 }
187 }

◆ development

int Spatial.development
getset

Definition at line 237 of file Spatial.cs.

238 {
239 get
240 {
241 return _ints[15];
242 }
243 set
244 {
245 _ints[15] = value;
246 }
247 }

Referenced by Create(), TraitBigSister.GetDramaText(), TraitMayor.GetDramaText(), TraitNino.GetDramaText(), TraitNola.GetDramaText(), TraitSecretary.GetDramaText(), CalcMoney.InvestZone(), and CoreDebug.UpdateInput().

◆ electricity

int Spatial.electricity
getset

Definition at line 249 of file Spatial.cs.

250 {
251 get
252 {
253 return _ints[16];
254 }
255 set
256 {
257 _ints[16] = value;
258 }
259 }

Referenced by TraitGenerator.OnSimulateHour(), Trait.Toggle(), and Trait.TryToggle().

◆ icon

int Spatial.icon
getset

Definition at line 81 of file Spatial.cs.

82 {
83 get
84 {
85 return _ints[2];
86 }
87 set
88 {
89 _ints[2] = value;
90 }
91 }

Referenced by Create(), Region.CreateRandomSite(), RankedZone.GetSprite(), EloMap.Init(), LayerTravel.Refresh(), EloMap.SetZone(), and TraitMapBoard.TrySetAct().

◆ idPrefix

int Spatial.idPrefix
getset

Definition at line 129 of file Spatial.cs.

130 {
131 get
132 {
133 return _ints[6];
134 }
135 set
136 {
137 _ints[6] = value;
138 }
139 }

Referenced by Zone.OnAfterCreate().

◆ influence

int Spatial.influence
getset

Definition at line 213 of file Spatial.cs.

214 {
215 get
216 {
217 return _ints[13];
218 }
219 set
220 {
221 _ints[13] = value;
222 }
223 }

Referenced by UICurrency.Build(), WidgetStatsBar.Build(), Card.GetCurrency(), LayerQuestBoard.OnSwitchContent(), ContentFaction.RefreshZones(), and UIFactionInfo.SetZone().

◆ investment

int Spatial.investment
getset

Definition at line 225 of file Spatial.cs.

226 {
227 get
228 {
229 return _ints[14];
230 }
231 set
232 {
233 _ints[14] = value;
234 }
235 }

◆ isAlarmSet

bool Spatial.isAlarmSet
getset

Definition at line 429 of file Spatial.cs.

430 {
431 get
432 {
433 return bits[14];
434 }
435 set
436 {
437 bits[14] = value;
438 }
439 }

Referenced by Point.CallGuard(), and GoalCombat.Run().

◆ isBeach

bool Spatial.isBeach
getset

Definition at line 393 of file Spatial.cs.

394 {
395 get
396 {
397 return bits[11];
398 }
399 set
400 {
401 bits[11] = value;
402 }
403 }

◆ isClaimable

virtual bool Spatial.isClaimable
get

Definition at line 562 of file Spatial.cs.

Referenced by WidgetDate._Refresh(), and TraitDeed.OnRead().

◆ IsClosed

bool Spatial.IsClosed
get

Definition at line 457 of file Spatial.cs.

Referenced by Player.EnterLocalZone(), EloMap.Init(), and Quest.ListDeliver().

◆ isConquered

bool Spatial.isConquered
getset

Definition at line 381 of file Spatial.cs.

382 {
383 get
384 {
385 return bits[10];
386 }
387 set
388 {
389 bits[10] = value;
390 }
391 }

Referenced by ActionMode.RefreshTexts(), Zone.Simulate(), and Chara.TryDropBossLoot().

◆ isDeathLocation

bool Spatial.isDeathLocation
getset

Definition at line 417 of file Spatial.cs.

418 {
419 get
420 {
421 return bits[13];
422 }
423 set
424 {
425 bits[13] = value;
426 }
427 }

Referenced by ActionMode.RefreshTexts().

◆ isExternalZone

bool Spatial.isExternalZone
getset

Definition at line 369 of file Spatial.cs.

370 {
371 get
372 {
373 return bits[9];
374 }
375 set
376 {
377 bits[9] = value;
378 }
379 }

Referenced by FindDeepestZone(), FindZone(), TraitNewZone.MoveZone(), and TraitElevator.TrySetAct().

◆ isGenerated

bool Spatial.isGenerated
getset

Definition at line 309 of file Spatial.cs.

310 {
311 get
312 {
313 return bits[0];
314 }
315 set
316 {
317 bits[0] = value;
318 }
319 }

◆ isKnown

bool Spatial.isKnown
getset

Definition at line 345 of file Spatial.cs.

346 {
347 get
348 {
349 return bits[7];
350 }
351 set
352 {
353 bits[7] = value;
354 }
355 }

Referenced by Create(), Region.ListTravelZones(), LayerTravel.Refresh(), and LayerMapList.RefreshList().

◆ isMapSaved

bool Spatial.isMapSaved
getset

Definition at line 357 of file Spatial.cs.

358 {
359 get
360 {
361 return bits[8];
362 }
363 set
364 {
365 bits[8] = value;
366 }
367 }

Referenced by LayerTextureViewer.Update().

◆ isPeace

bool Spatial.isPeace
getset

Definition at line 405 of file Spatial.cs.

406 {
407 get
408 {
409 return bits[12];
410 }
411 set
412 {
413 bits[12] = value;
414 }
415 }

Referenced by WidgetDate._Refresh(), ActMelee.Attack(), Chara.FindNewEnemy(), TraitWhistlePeace.OnUse(), and GoalCombat.Run().

◆ IsPlayerFaction

bool Spatial.IsPlayerFaction
get

◆ isRandomSite

bool Spatial.isRandomSite
getset

Definition at line 333 of file Spatial.cs.

334 {
335 get
336 {
337 return bits[6];
338 }
339 set
340 {
341 bits[6] = value;
342 }
343 }

Referenced by SpatialManager.ListReturnLocations(), LayerTravel.Refresh(), and ActionMode.RefreshTexts().

◆ IsRegion

virtual bool Spatial.IsRegion
get

Definition at line 515 of file Spatial.cs.

Referenced by Chara._Move(), AM_Adv._OnUpdateInput(), UIMapPreview._RefreshPoint(), ActPlan._Update(), Zone.Activate(), Card.AddBlood(), LayerSleep.Advance(), GameDate.AdvanceHour(), InvOwner.AllowDrop(), ConfigTactics.AllyDistance(), Map.AngleToIndex(), AM_Adv.AxisMove(), ButtonAbility.CanAutoUse(), HotItemHeld.CanChangeHeightByWheel(), Chara.CanDuplicate(), Act.CanPerform(), Chara.CanReplace(), HotItemHeld.CanRotate(), TaskBuild.CanRotateBlock(), TraitCatalyst.CanUse(), TraitMoongate.CanUse(), Region.CreateRandomSite(), Thing.DoAct(), UIInventory.DoAct(), Chara.DoHostileAction(), BaseGameScreen.Draw(), BaseTileMap.Draw(), Player.EnterLocalZone(), GameUpdater.SurfaceUpdater.FixedUpdate(), GameUpdater.ConditionUpdater.FixedUpdate(), ZoneBlueprint.GenerateMap(), TaskDig.GetHitResult(), CoreConfig.GetPostEffectProfile(), Zone.GetSpawnPos(), Scene.Init(), Chara.IsEnemyOnPath(), Region.ListTravelZones(), Chara.LookAt(), Chara.MakeGrave(), Map.MineFloor(), TraitNewZone.MoveZone(), Player.MoveZone(), Chara.MoveZone(), Player.OnAdvanceHour(), InvOwner.OnDrag(), CharaRenderer.OnEnterScreen(), Player.OnExitBorder(), WidgetMinimap.OnPointerDown(), TaskDig.OnProgressComplete(), TraitDeedRelocate.OnRead(), ConSleep.OnRemoved(), TraitCrafter.OnUse(), TraitGiftJure.OnUse(), TraitGiftNewYear.OnUse(), TraitGiftPack.OnUse(), TraitParcel.OnUse(), TraitPlamoBox.OnUse(), TraitContainer.Open(), Point.PositionAuto(), Point.PositionCenter(), WidgetMinimap.RefreshStyle(), ActionMode.RefreshTexts(), BaseGameScreen.RefreshTilt(), QuestEscort.ReleaseEscort(), HotbarManager.ResetHotbar(), AI_Idle.Run(), LayerTreasureMap.SetMap(), HotItemContext.Show(), AM_Adv.ShowAllAction(), Card.Teleport(), BaseSong.Tick(), Chara.Tick(), ConFear.Tick(), ConSleep.Tick(), ConSuffocation.Tick(), Chara.TickConditions(), Scene.ToggleTilt(), Chara.TryPush(), TraitWaystone.TrySetAct(), Map.TrySmoothPick(), GameUpdater.Update(), PointTarget.Update(), WidgetDebug.UpdateText(), and Chara.Vomit().

◆ isShore

bool Spatial.isShore
getset

Definition at line 321 of file Spatial.cs.

322 {
323 get
324 {
325 return bits[3];
326 }
327 set
328 {
329 bits[3] = value;
330 }
331 }

◆ IsSnowCovered

virtual bool Spatial.IsSnowCovered
get

Definition at line 544 of file Spatial.cs.

545 {
546 get
547 {
548 if (!EClass._map.IsIndoor)
549 {
550 if (!IsSnowZone)
551 {
553 }
554 return true;
555 }
556 return false;
557 }
558 }
static World world
Definition: EClass.cs:40
static Map _map
Definition: EClass.cs:18
bool IsIndoor
Definition: Map.cs:131
bool isWinter
Definition: Season.cs:53
virtual bool IsSnowZone
Definition: Spatial.cs:542
Season season
Definition: World.cs:9

Referenced by BaseTileMap.Draw(), Cell.Refresh(), BaseGameScreen.RefreshGrading(), BaseGameScreen.RefreshSky(), BaseGameScreen.RefreshWeather(), Weather.RefreshWeather(), Chara.SetRenderParam(), and BaseGameScreen.UpdateShaders().

◆ IsSnowZone

virtual bool Spatial.IsSnowZone
get

Definition at line 542 of file Spatial.cs.

Referenced by Scene.RefreshBG(), and Weather.SetCondition().

◆ lastActive

int Spatial.lastActive
getset

Definition at line 117 of file Spatial.cs.

118 {
119 get
120 {
121 return _ints[5];
122 }
123 set
124 {
125 _ints[5] = value;
126 }
127 }

◆ lv

◆ mainFaction

Faction Spatial.mainFaction
getset

Definition at line 441 of file Spatial.cs.

442 {
443 get
444 {
445 return EClass.game.factions.dictAll.TryGetValue(idMainFaction) ?? EClass.Wilds;
446 }
447 set
448 {
449 idMainFaction = ((value == null) ? EClass.Wilds.uid : value.uid);
450 }
451 }
static Faction Wilds
Definition: EClass.cs:28
Dictionary< string, Faction > dictAll
string uid
Definition: FACTION.cs:132
FactionManager factions
Definition: Game.cs:161
string idMainFaction
Definition: Spatial.cs:22

Referenced by GameDate.AdvanceDay(), Faction.CountTerritories(), Faction.GetChildren(), CoreDebug.LOG_Spatials(), TraitDeed.OnRead(), FactionBranch.OnSimulateDay(), ContentFaction.RefreshZones(), SetMainFaction(), UIFactionInfo.SetZone(), UIZoneInfo.SetZone(), and EloPos.WriteNote().

◆ mapX

int Spatial.mapX
get

Definition at line 459 of file Spatial.cs.

460 {
461 get
462 {
463 if (!EClass._zone.IsRegion)
464 {
465 return x;
466 }
467 return x - EClass.scene.elomap.minX;
468 }
469 }
static Zone _zone
Definition: EClass.cs:20
virtual bool IsRegion
Definition: Spatial.cs:515

Referenced by Player.EnterLocalZone(), Zone.GetSpawnPos(), and RegionPoint.SetRegionPoint().

◆ mapY

int Spatial.mapY
get

Definition at line 471 of file Spatial.cs.

472 {
473 get
474 {
475 if (!EClass._zone.IsRegion)
476 {
477 return y;
478 }
479 return y - EClass.scene.elomap.minY;
480 }
481 }

Referenced by Player.EnterLocalZone(), Zone.GetSpawnPos(), and RegionPoint.SetRegionPoint().

◆ Name

◆ NameSuffix

virtual string Spatial.NameSuffix
get

Definition at line 513 of file Spatial.cs.

◆ NameWithDangerLevel

string Spatial.NameWithDangerLevel
get

Definition at line 511 of file Spatial.cs.

Referenced by AM_Adv._OnUpdateInput(), and TraitScrollMap.OnRead().

◆ pathSave

string Spatial.pathSave
get

Definition at line 507 of file Spatial.cs.

Referenced by DeleteMapRecursive().

◆ RegionPos

virtual Point Spatial.RegionPos
get

Definition at line 560 of file Spatial.cs.

Referenced by LayerTravel.Refresh(), ActionMode.RefreshTexts(), and CoreDebug.UpdateInput().

◆ Seed

int Spatial.Seed
get

Definition at line 564 of file Spatial.cs.

Referenced by Create().

◆ ShowDangerLv

virtual bool Spatial.ShowDangerLv
get

Definition at line 503 of file Spatial.cs.

Referenced by Chara._Move().

◆ source

◆ Tile

EloMap.TileInfo Spatial.Tile
get

Definition at line 529 of file Spatial.cs.

530 {
531 get
532 {
533 if (_tile == null)
534 {
537 }
538 return _tile;
539 }
540 }
void Initialize(EloMap _elomap)
Definition: EloMapActor.cs:28
EloMap elomap
Definition: EloMapActor.cs:7
EloMap elomap
Definition: Region.cs:8
EloMapActor elomapActor
Definition: Scene.cs:101
EloMap.TileInfo _tile
Definition: Spatial.cs:53
Region region
Definition: World.cs:23

Referenced by ZonePreEnterEncounter.Execute().

◆ uid

◆ uidBoss

int Spatial.uidBoss
getset

Definition at line 273 of file Spatial.cs.

274 {
275 get
276 {
277 return _ints[18];
278 }
279 set
280 {
281 _ints[18] = value;
282 }
283 }

◆ version

int Spatial.version
getset

Definition at line 297 of file Spatial.cs.

298 {
299 get
300 {
301 return _ints[20];
302 }
303 set
304 {
305 _ints[20] = value;
306 }
307 }

◆ visitCount

int Spatial.visitCount
getset

Definition at line 153 of file Spatial.cs.

154 {
155 get
156 {
157 return _ints[8];
158 }
159 set
160 {
161 _ints[8] = value;
162 }
163 }

Referenced by SpatialManager.ListReturnLocations(), ActEffect.Proc(), ActionMode.RefreshTexts(), and ContentFaction.RefreshZones().

◆ VolumeSea

virtual float Spatial.VolumeSea
get

Definition at line 491 of file Spatial.cs.

492 {
493 get
494 {
495 if (!isShore)
496 {
497 return 0f;
498 }
499 return 1f;
500 }
501 }
bool isShore
Definition: Spatial.cs:322

Referenced by BaseGameScreen.RefreshWeather().

◆ x

◆ y


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