Elin Modding Docs Doc
Loading...
Searching...
No Matches
Zone Class Reference
Inheritance diagram for Zone:
Spatial ICardParent IInspect EClass 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

Classes

class  PortalReturnData
 

Public Member Functions

virtual string GetDungenID ()
 
virtual string GetNewZoneID (int level)
 
override string ToString ()
 
string TextLevel (int _lv)
 
override void OnCreate ()
 
override void OnAfterCreate ()
 
void Activate ()
 
void RefreshHat ()
 
void OnVisit ()
 
void Revive ()
 
virtual void OnRegenerate ()
 
virtual void OnActivate ()
 
virtual void OnBeforeDeactivate ()
 
virtual void OnDeactivate ()
 
virtual void OnBeforeSimulate ()
 
virtual void OnVisitNewMapOrRegenerate ()
 
virtual void OnAfterSimulate ()
 
void Simulate ()
 
Point GetSpawnPos (Chara c, ZoneTransition.EnterState destState=ZoneTransition.EnterState.Auto)
 
Point GetRandomVisitPos (Chara c)
 
void AddGlobalCharasOnActivate ()
 
void Deactivate ()
 
void OnKillGame ()
 
void UnloadMap ()
 
void ClaimZone (bool debug=false)
 
void AbandonZone ()
 
bool CanDestroy ()
 
override void _OnBeforeSave ()
 
override void OnLoad ()
 
override void Destroy ()
 
void ClearZones (Zone current=null)
 
void OnChildNumChange (Card c)
 
ICardParent GetRoot ()
 
Zone GetTopZone ()
 
Card AddCardSplinkle (Card t, Point center, int radius=4)
 
Card AddChara (string id, int x, int z)
 
Card AddThing (string id, int x, int z)
 
Card AddThing (string id, Point p)
 
Card AddCard (Card t, Point point)
 
Card AddCard (Card t)
 
Card AddCard (Card t, int x, int z)
 
void RemoveCard (Card t)
 
GetRandomSpot< T > ()
 
bool TryAddThingInSpot< T > (Thing t, bool useContainer=true, bool putRandomPosIfNoSpot=true)
 
List< ThingTryListThingsInSpot< T > (Func< Thing, bool > func=null)
 
bool TryAddThingInSharedContainer (Thing t, List< Thing > containers=null, bool add=true, bool msg=false, Chara chara=null, bool sharedOnly=true)
 
bool TryAddThing (Thing target, Point p, bool destroyIfFail=false)
 
Thing TryGetThingFromSharedContainer (Func< Thing, bool > func)
 
Thing TryGetRestock< T > (string idCat)
 
ZoneProfile GetProfile ()
 
void CreateBP ()
 
virtual void OnCreateBP ()
 
void Generate ()
 
void SpawnFollower ()
 
void SpawnAltar ()
 
virtual void OnGenerateMap ()
 
void TryGenerateOre ()
 
void TryGenerateEvolved (bool force=false)
 
void TryGenerateBigDaddy ()
 
void TryGenerateShrine ()
 
void ResetHostility ()
 
virtual void OnGenerateRooms (BaseMapGen gen)
 
Point GetSpawnPos (SpawnPosition type, int tries=100)
 
Chara SpawnMob (Point pos=null, SpawnSetting setting=null)
 
void RefreshElectricity ()
 
int GetElectricity (bool cost=false)
 
void SetBGM (List< int > ids, bool refresh=true)
 
void SetBGM (int id=-1, bool refresh=true)
 
void RefreshPlaylist ()
 
void RefreshBGM ()
 
Playlist CreatePlaylist (ref List< int > list, Playlist mold=null)
 
Chara FindChara (string id)
 
Chara FindChara (int uid)
 
int GetDeepestLv ()
 
int GetDeepestLv (ref int max)
 
List< ElementListLandFeats ()
 
ZoneExportData Import (string path)
 
void Export (string path, PartialMap partial=null, bool usermap=false)
 
void ExportDialog (string dir=null)
 
void ImportDialog (string dir=null)
 
void Export ()
 
void WriteNote (UINote n, Action< UINote > onWriteNote=null, IInspect.NoteMode mode=IInspect.NoteMode.Default, Recipe recipe=null)
 
void OnInspect ()
 
Chara AddRandomVisitor (bool guest=false)
 
void OnSimulateHour (VirtualDate date)
 
void OnSimulateDay (VirtualDate date)
 
void OnSimulateMonth (VirtualDate date)
 
void RainWater ()
 
void GrowPlants (VirtualDate date)
 
Zone GetZoneAt (int _x, int _y)
 
bool IsCrime (Chara c, Act act)
 
void RefreshCriminal ()
 
void RefreshListCitizen ()
 
void ModInfluence (int a)
 
void ModDevelopment (int a)
 
void UpdateQuests (bool force=false)
 
int CountMinions (Chara c)
 
int GetSoilCost ()
 
void SpawnLostItems ()
 
void ApplyBackerPet ()
 
- Public Member Functions inherited from Spatial
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 SetMainFaction (Faction f)
 
Zone GetFirstZone ()
 
void OnBeforeSave ()
 
void _OnLoad ()
 
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 Member Functions inherited from ICardParent
- Public Member Functions inherited from IInspect

Static Public Member Functions

static bool IsImportValid (string path)
 
- 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

FactionBranch branch
 
HashSet< int > completedQuests = new HashSet<int>()
 
ZoneEventManager events = new ZoneEventManager()
 
ElementContainerZone elements = new ElementContainerZone()
 
MapBounds bounds
 
Dictionary< int, string > dictCitizen = new Dictionary<int, string>()
 
ZoneInstance instance
 
List< int > landFeats
 
Map map
 
MapSubset subset
 
ZoneBlueprint bp
 
int fileVariation
 
bool dirtyElectricity
 
bool isStarted
 
bool isSimulating
 
int tempDist
 
BiomeProfile _biome
 
- Public Attributes inherited from Spatial
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
 

Static Public Attributes

static bool forceRegenerate
 
static string forceSubset
 
static CardRow sourceHat
 
static int okaerinko = 0
 
static bool ignoreSpawnAnime
 
static List< ThingSuckers = new List<Thing>()
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

Chara Boss [get, set]
 
override int DangerLv [get]
 
virtual bool DisableRooms [get]
 
int HourSinceLastActive [get]
 
int MinsSinceLastActive [get]
 
virtual string pathExport [get]
 
BiomeProfile biome [get]
 
virtual string IdBiome [get]
 
virtual string IDGenerator [get]
 
virtual string TextWidgetDate [get]
 
MapGenerator Generator [get]
 
virtual string IdProfile [get]
 
virtual string IDPlayList [get]
 
virtual string IDPlaylistOverwrite [get]
 
virtual string IDHat [get]
 
virtual string IDBaseLandFeat [get]
 
virtual string idExport [get]
 
string pathTemp [get]
 
Region Region [get]
 
Zone ParentZone [get]
 
virtual ActionMode DefaultActionMode [get]
 
virtual bool BlockBorderExit [get]
 
virtual int ExpireDays [get]
 
virtual ZoneTransition.EnterState RegionEnterState [get]
 
virtual ZoneFeatureType FeatureType [get]
 
virtual string IDAmbience [get]
 
virtual string IDSceneTemplate [get]
 
virtual bool IsFestival [get]
 
virtual string IDSubset [get]
 
virtual bool IsTown [get]
 
virtual bool CanBeDeliverDestination [get]
 
virtual bool CountDeepestLevel [get]
 
virtual bool HasLaw [get]
 
virtual bool MakeEnemiesNeutral [get]
 
virtual bool MakeTownProperties [get]
 
virtual bool AllowCriminal [get]
 
virtual bool AllowNewZone [get]
 
virtual bool WillAutoSave [get]
 
virtual bool RegenerateOnEnter [get]
 
virtual bool IsSkyLevel [get]
 
virtual bool IsUserZone [get]
 
virtual bool CanDigUnderground [get]
 
virtual bool LockExit [get]
 
virtual bool CanUnlockExit [get]
 
virtual int MaxLv [get]
 
virtual int MinLv [get]
 
virtual bool AddPrefix [get]
 
virtual bool IsNefia [get]
 
virtual bool PetFollow [get]
 
virtual bool RestrictBuild [get]
 
virtual bool KeepAllyDistance [get]
 
virtual int MaxSpawn [get]
 
int MaxRespawn [get]
 
virtual float RuinChance [get]
 
virtual float OreChance [get]
 
virtual float BigDaddyChance [get]
 
virtual float EvolvedChance [get]
 
virtual float ShrineChance [get]
 
virtual float PrespawnRate [get]
 
virtual float RespawnRate [get]
 
virtual int RespawnPerHour [get]
 
virtual float ChanceSpawnNeutral [get]
 
virtual bool GrowPlant [get]
 
virtual bool GrowWeed [get]
 
virtual bool IsExplorable [get]
 
virtual bool IsReturnLocation [get]
 
virtual bool ShouldMakeExit [get]
 
virtual bool ShouldRegenerate [get]
 
virtual bool ShouldAutoRevive [get]
 
virtual bool UseFog [get]
 
virtual bool RevealRoom [get]
 
virtual bool AlwaysLowblock [get]
 
virtual bool UseLight [get]
 
virtual int StartLV [get]
 
virtual bool ScaleMonsterLevel [get]
 
virtual bool HiddenInRegionMap [get]
 
virtual FlockController.SpawnType FlockType [get]
 
override string NameSuffix [get]
 
string NameWithLevel [get]
 
string TextDeepestLv [get]
 
bool CanEnterBuildMode [get]
 
bool CanEnterBuildModeAnywhere [get]
 
bool IsPCFaction [get]
 
bool IsStartZone [get]
 
bool IsInstance [get]
 
bool IsLoaded [get]
 
virtual int BaseElectricity [get]
 
bool IsActiveZone [get]
 
bool CanInspect [get]
 
string InspectName [get]
 
Point InspectPoint [get]
 
Vector3 InspectPosition [get]
 
- Properties inherited from Spatial
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]
 
Faction mainFaction [get, set]
 
SourceZone.Row source [get]
 
bool IsPlayerFaction [get]
 
bool IsClosed [get]
 
int mapX [get]
 
int mapY [get]
 
virtual int DangerLv [get]
 
virtual int DangerLvFix [get]
 
virtual float VolumeSea [get]
 
virtual bool ShowDangerLv [get]
 
virtual bool CanSpawnAdv [get]
 
string pathSave [get]
 
virtual string Name [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]
 
- Properties inherited from IInspect

Additional Inherited Members

- Public Types inherited from IInspect
enum  NoteMode { Default , Recipe , Product , Info }
 
- Protected Member Functions inherited from Spatial
Zone _FindZone (string _id)
 
- Protected Attributes inherited from Spatial
Point _regionPos = new Point()
 

Detailed Description

Definition at line 13 of file Zone.cs.

Member Function Documentation

◆ _OnBeforeSave()

override void Zone._OnBeforeSave ( )
virtual

Reimplemented from Spatial.

Definition at line 2271 of file Zone.cs.

◆ AbandonZone()

void Zone.AbandonZone ( )

Definition at line 2235 of file Zone.cs.

◆ Activate()

void Zone.Activate ( )

Definition at line 1048 of file Zone.cs.

◆ AddCard() [1/3]

Card Zone.AddCard ( Card t)

Definition at line 2414 of file Zone.cs.

◆ AddCard() [2/3]

Card Zone.AddCard ( Card t,
int x,
int z )

Definition at line 2420 of file Zone.cs.

◆ AddCard() [3/3]

Card Zone.AddCard ( Card t,
Point point )

Definition at line 2408 of file Zone.cs.

◆ AddCardSplinkle()

Card Zone.AddCardSplinkle ( Card t,
Point center,
int radius = 4 )

Definition at line 2374 of file Zone.cs.

◆ AddChara()

Card Zone.AddChara ( string id,
int x,
int z )

Definition at line 2390 of file Zone.cs.

◆ AddGlobalCharasOnActivate()

void Zone.AddGlobalCharasOnActivate ( )

Definition at line 2058 of file Zone.cs.

◆ AddRandomVisitor()

Chara Zone.AddRandomVisitor ( bool guest = false)

Definition at line 3483 of file Zone.cs.

◆ AddThing() [1/2]

Card Zone.AddThing ( string id,
int x,
int z )

Definition at line 2396 of file Zone.cs.

◆ AddThing() [2/2]

Card Zone.AddThing ( string id,
Point p )

Definition at line 2402 of file Zone.cs.

◆ ApplyBackerPet()

void Zone.ApplyBackerPet ( )

Definition at line 3896 of file Zone.cs.

◆ CanDestroy()

bool Zone.CanDestroy ( )

Definition at line 2252 of file Zone.cs.

◆ ClaimZone()

void Zone.ClaimZone ( bool debug = false)

Definition at line 2191 of file Zone.cs.

◆ ClearZones()

void Zone.ClearZones ( Zone current = null)

Definition at line 2330 of file Zone.cs.

◆ CountMinions()

int Zone.CountMinions ( Chara c)

Definition at line 3837 of file Zone.cs.

◆ CreateBP()

void Zone.CreateBP ( )

Definition at line 2732 of file Zone.cs.

◆ CreatePlaylist()

Playlist Zone.CreatePlaylist ( ref List< int > list,
Playlist mold = null )

Definition at line 3253 of file Zone.cs.

◆ Deactivate()

void Zone.Deactivate ( )

Definition at line 2135 of file Zone.cs.

◆ Destroy()

override void Zone.Destroy ( )
virtual

Reimplemented from Spatial.

Definition at line 2310 of file Zone.cs.

◆ Export() [1/2]

void Zone.Export ( )

Definition at line 3463 of file Zone.cs.

◆ Export() [2/2]

void Zone.Export ( string path,
PartialMap partial = null,
bool usermap = false )

Definition at line 3372 of file Zone.cs.

◆ ExportDialog()

void Zone.ExportDialog ( string dir = null)

Definition at line 3414 of file Zone.cs.

◆ FindChara() [1/2]

Chara Zone.FindChara ( int uid)

Definition at line 3281 of file Zone.cs.

◆ FindChara() [2/2]

Chara Zone.FindChara ( string id)

Definition at line 3275 of file Zone.cs.

◆ Generate()

void Zone.Generate ( )

Definition at line 2746 of file Zone.cs.

◆ GetDeepestLv() [1/2]

int Zone.GetDeepestLv ( )

Definition at line 3287 of file Zone.cs.

◆ GetDeepestLv() [2/2]

int Zone.GetDeepestLv ( ref int max)

Definition at line 3294 of file Zone.cs.

◆ GetDungenID()

virtual string Zone.GetDungenID ( )
virtual

Definition at line 110 of file Zone.cs.

◆ GetElectricity()

int Zone.GetElectricity ( bool cost = false)

Definition at line 3139 of file Zone.cs.

◆ GetNewZoneID()

virtual string Zone.GetNewZoneID ( int level)
virtual

Definition at line 820 of file Zone.cs.

◆ GetProfile()

ZoneProfile Zone.GetProfile ( )

Definition at line 2691 of file Zone.cs.

◆ GetRandomSpot< T >()

T Zone.GetRandomSpot< T > ( )
Type Constraints
T :Trait 

Definition at line 2468 of file Zone.cs.

◆ GetRandomVisitPos()

Point Zone.GetRandomVisitPos ( Chara c)

Definition at line 2033 of file Zone.cs.

◆ GetRoot()

ICardParent Zone.GetRoot ( )

Implements ICardParent.

Definition at line 2358 of file Zone.cs.

◆ GetSoilCost()

int Zone.GetSoilCost ( )

Definition at line 3851 of file Zone.cs.

◆ GetSpawnPos() [1/2]

Point Zone.GetSpawnPos ( Chara c,
ZoneTransition.EnterState destState = ZoneTransition::EnterState::Auto )

Definition at line 1803 of file Zone.cs.

◆ GetSpawnPos() [2/2]

Point Zone.GetSpawnPos ( SpawnPosition type,
int tries = 100 )

Definition at line 3005 of file Zone.cs.

◆ GetTopZone()

Zone Zone.GetTopZone ( )

Definition at line 2364 of file Zone.cs.

◆ GetZoneAt()

Zone Zone.GetZoneAt ( int _x,
int _y )

Definition at line 3651 of file Zone.cs.

◆ GrowPlants()

void Zone.GrowPlants ( VirtualDate date)

Definition at line 3610 of file Zone.cs.

◆ Import()

ZoneExportData Zone.Import ( string path)

Definition at line 3362 of file Zone.cs.

◆ ImportDialog()

void Zone.ImportDialog ( string dir = null)

Definition at line 3428 of file Zone.cs.

◆ IsCrime()

bool Zone.IsCrime ( Chara c,
Act act )

Definition at line 3674 of file Zone.cs.

◆ IsImportValid()

static bool Zone.IsImportValid ( string path)
static

Definition at line 3446 of file Zone.cs.

◆ ListLandFeats()

List< Element > Zone.ListLandFeats ( )

Definition at line 3308 of file Zone.cs.

◆ ModDevelopment()

void Zone.ModDevelopment ( int a)

Definition at line 3726 of file Zone.cs.

◆ ModInfluence()

void Zone.ModInfluence ( int a)

Definition at line 3715 of file Zone.cs.

◆ OnActivate()

virtual void Zone.OnActivate ( )
virtual

Definition at line 1619 of file Zone.cs.

◆ OnAfterCreate()

override void Zone.OnAfterCreate ( )
virtual

Reimplemented from Spatial.

Definition at line 1034 of file Zone.cs.

◆ OnAfterSimulate()

virtual void Zone.OnAfterSimulate ( )
virtual

Definition at line 1644 of file Zone.cs.

◆ OnBeforeDeactivate()

virtual void Zone.OnBeforeDeactivate ( )
virtual

Definition at line 1624 of file Zone.cs.

◆ OnBeforeSimulate()

virtual void Zone.OnBeforeSimulate ( )
virtual

Definition at line 1634 of file Zone.cs.

◆ OnChildNumChange()

void Zone.OnChildNumChange ( Card c)

Implements ICardParent.

Definition at line 2353 of file Zone.cs.

◆ OnCreate()

override void Zone.OnCreate ( )
virtual

Reimplemented from Spatial.

Definition at line 1027 of file Zone.cs.

◆ OnCreateBP()

virtual void Zone.OnCreateBP ( )
virtual

Definition at line 2741 of file Zone.cs.

◆ OnDeactivate()

virtual void Zone.OnDeactivate ( )
virtual

Definition at line 1629 of file Zone.cs.

◆ OnGenerateMap()

virtual void Zone.OnGenerateMap ( )
virtual

Definition at line 2858 of file Zone.cs.

◆ OnGenerateRooms()

virtual void Zone.OnGenerateRooms ( BaseMapGen gen)
virtual

Definition at line 3000 of file Zone.cs.

◆ OnInspect()

void Zone.OnInspect ( )

Implements IInspect.

Definition at line 3478 of file Zone.cs.

◆ OnKillGame()

void Zone.OnKillGame ( )

Definition at line 2164 of file Zone.cs.

◆ OnLoad()

override void Zone.OnLoad ( )
virtual

Reimplemented from Spatial.

Definition at line 2300 of file Zone.cs.

◆ OnRegenerate()

virtual void Zone.OnRegenerate ( )
virtual

Definition at line 1614 of file Zone.cs.

◆ OnSimulateDay()

void Zone.OnSimulateDay ( VirtualDate date)

Definition at line 3572 of file Zone.cs.

◆ OnSimulateHour()

void Zone.OnSimulateHour ( VirtualDate date)

Definition at line 3513 of file Zone.cs.

◆ OnSimulateMonth()

void Zone.OnSimulateMonth ( VirtualDate date)

Definition at line 3581 of file Zone.cs.

◆ OnVisit()

void Zone.OnVisit ( )

Definition at line 1536 of file Zone.cs.

◆ OnVisitNewMapOrRegenerate()

virtual void Zone.OnVisitNewMapOrRegenerate ( )
virtual

Definition at line 1639 of file Zone.cs.

◆ RainWater()

void Zone.RainWater ( )

Definition at line 3594 of file Zone.cs.

◆ RefreshBGM()

void Zone.RefreshBGM ( )

Definition at line 3209 of file Zone.cs.

◆ RefreshCriminal()

void Zone.RefreshCriminal ( )

Definition at line 3680 of file Zone.cs.

◆ RefreshElectricity()

void Zone.RefreshElectricity ( )

Definition at line 3118 of file Zone.cs.

◆ RefreshHat()

void Zone.RefreshHat ( )

Definition at line 1525 of file Zone.cs.

◆ RefreshListCitizen()

void Zone.RefreshListCitizen ( )

Definition at line 3698 of file Zone.cs.

◆ RefreshPlaylist()

void Zone.RefreshPlaylist ( )

Definition at line 3200 of file Zone.cs.

◆ RemoveCard()

void Zone.RemoveCard ( Card t)

Implements ICardParent.

Definition at line 2446 of file Zone.cs.

◆ ResetHostility()

void Zone.ResetHostility ( )

Definition at line 2987 of file Zone.cs.

◆ Revive()

void Zone.Revive ( )

Definition at line 1579 of file Zone.cs.

◆ SetBGM() [1/2]

void Zone.SetBGM ( int id = -1,
bool refresh = true )

Definition at line 3191 of file Zone.cs.

◆ SetBGM() [2/2]

void Zone.SetBGM ( List< int > ids,
bool refresh = true )

Definition at line 3167 of file Zone.cs.

◆ Simulate()

void Zone.Simulate ( )

Definition at line 1649 of file Zone.cs.

◆ SpawnAltar()

void Zone.SpawnAltar ( )

Definition at line 2818 of file Zone.cs.

◆ SpawnFollower()

void Zone.SpawnFollower ( )

Definition at line 2786 of file Zone.cs.

◆ SpawnLostItems()

void Zone.SpawnLostItems ( )

Definition at line 3862 of file Zone.cs.

◆ SpawnMob()

Chara Zone.SpawnMob ( Point pos = null,
SpawnSetting setting = null )

Definition at line 3020 of file Zone.cs.

◆ TextLevel()

string Zone.TextLevel ( int _lv)

Definition at line 879 of file Zone.cs.

◆ ToString()

override string Zone.ToString ( )

Definition at line 836 of file Zone.cs.

◆ TryAddThing()

bool Zone.TryAddThing ( Thing target,
Point p,
bool destroyIfFail = false )

Definition at line 2598 of file Zone.cs.

◆ TryAddThingInSharedContainer()

bool Zone.TryAddThingInSharedContainer ( Thing t,
List< Thing > containers = null,
bool add = true,
bool msg = false,
Chara chara = null,
bool sharedOnly = true )

Definition at line 2558 of file Zone.cs.

◆ TryAddThingInSpot< T >()

bool Zone.TryAddThingInSpot< T > ( Thing t,
bool useContainer = true,
bool putRandomPosIfNoSpot = true )
Type Constraints
T :Trait 

Definition at line 2474 of file Zone.cs.

◆ TryGenerateBigDaddy()

void Zone.TryGenerateBigDaddy ( )

Definition at line 2933 of file Zone.cs.

◆ TryGenerateEvolved()

void Zone.TryGenerateEvolved ( bool force = false)

Definition at line 2914 of file Zone.cs.

◆ TryGenerateOre()

void Zone.TryGenerateOre ( )

Definition at line 2884 of file Zone.cs.

◆ TryGenerateShrine()

void Zone.TryGenerateShrine ( )

Definition at line 2953 of file Zone.cs.

◆ TryGetRestock< T >()

Thing Zone.TryGetRestock< T > ( string idCat)
Type Constraints
T :TraitSpot 

Definition at line 2642 of file Zone.cs.

◆ TryGetThingFromSharedContainer()

Thing Zone.TryGetThingFromSharedContainer ( Func< Thing, bool > func)

Definition at line 2625 of file Zone.cs.

◆ TryListThingsInSpot< T >()

List< Thing > Zone.TryListThingsInSpot< T > ( Func< Thing, bool > func = null)
Type Constraints
T :TraitSpot 

Definition at line 2509 of file Zone.cs.

◆ UnloadMap()

void Zone.UnloadMap ( )

Definition at line 2176 of file Zone.cs.

◆ UpdateQuests()

void Zone.UpdateQuests ( bool force = false)

Definition at line 3736 of file Zone.cs.

◆ WriteNote()

void Zone.WriteNote ( UINote n,
Action< UINote > onWriteNote = null,
IInspect.NoteMode mode = IInspect::NoteMode::Default,
Recipe recipe = null )

Implements IInspect.

Definition at line 3473 of file Zone.cs.

Member Data Documentation

◆ _biome

BiomeProfile Zone._biome

Definition at line 4097 of file Zone.cs.

◆ bounds

MapBounds Zone.bounds

Definition at line 4058 of file Zone.cs.

◆ bp

ZoneBlueprint Zone.bp

Definition at line 4079 of file Zone.cs.

◆ branch

FactionBranch Zone.branch

Definition at line 4042 of file Zone.cs.

◆ completedQuests

HashSet<int> Zone.completedQuests = new HashSet<int>()

Definition at line 4046 of file Zone.cs.

◆ dictCitizen

Dictionary<int, string> Zone.dictCitizen = new Dictionary<int, string>()

Definition at line 4062 of file Zone.cs.

◆ dirtyElectricity

bool Zone.dirtyElectricity

Definition at line 4085 of file Zone.cs.

◆ elements

Definition at line 4054 of file Zone.cs.

◆ events

ZoneEventManager Zone.events = new ZoneEventManager()

Definition at line 4050 of file Zone.cs.

◆ fileVariation

int Zone.fileVariation

Definition at line 4082 of file Zone.cs.

◆ forceRegenerate

bool Zone.forceRegenerate
static

Definition at line 4029 of file Zone.cs.

◆ forceSubset

string Zone.forceSubset
static

Definition at line 4032 of file Zone.cs.

◆ ignoreSpawnAnime

bool Zone.ignoreSpawnAnime
static

Definition at line 4100 of file Zone.cs.

◆ instance

ZoneInstance Zone.instance

Definition at line 4066 of file Zone.cs.

◆ isSimulating

bool Zone.isSimulating

Definition at line 4091 of file Zone.cs.

◆ isStarted

bool Zone.isStarted

Definition at line 4088 of file Zone.cs.

◆ landFeats

List<int> Zone.landFeats

Definition at line 4070 of file Zone.cs.

◆ map

Map Zone.map

Definition at line 4073 of file Zone.cs.

◆ okaerinko

int Zone.okaerinko = 0
static

Definition at line 4038 of file Zone.cs.

◆ sourceHat

CardRow Zone.sourceHat
static

Definition at line 4035 of file Zone.cs.

◆ subset

MapSubset Zone.subset

Definition at line 4076 of file Zone.cs.

◆ Suckers

List<Thing> Zone.Suckers = new List<Thing>()
static

Definition at line 4103 of file Zone.cs.

◆ tempDist

int Zone.tempDist

Definition at line 4094 of file Zone.cs.

Property Documentation

◆ AddPrefix

virtual bool Zone.AddPrefix
get

Definition at line 521 of file Zone.cs.

◆ AllowCriminal

virtual bool Zone.AllowCriminal
get

Definition at line 411 of file Zone.cs.

◆ AllowNewZone

virtual bool Zone.AllowNewZone
get

Definition at line 421 of file Zone.cs.

◆ AlwaysLowblock

virtual bool Zone.AlwaysLowblock
get

Definition at line 771 of file Zone.cs.

◆ BaseElectricity

virtual int Zone.BaseElectricity
get

Definition at line 968 of file Zone.cs.

◆ BigDaddyChance

virtual float Zone.BigDaddyChance
get

Definition at line 611 of file Zone.cs.

◆ biome

BiomeProfile Zone.biome
get

Definition at line 86 of file Zone.cs.

◆ BlockBorderExit

virtual bool Zone.BlockBorderExit
get

Definition at line 251 of file Zone.cs.

◆ Boss

Chara Zone.Boss
getset

Definition at line 18 of file Zone.cs.

◆ CanBeDeliverDestination

virtual bool Zone.CanBeDeliverDestination
get

Definition at line 361 of file Zone.cs.

◆ CanDigUnderground

virtual bool Zone.CanDigUnderground
get

Definition at line 471 of file Zone.cs.

◆ CanEnterBuildMode

bool Zone.CanEnterBuildMode
get

Definition at line 908 of file Zone.cs.

◆ CanEnterBuildModeAnywhere

bool Zone.CanEnterBuildModeAnywhere
get

Definition at line 918 of file Zone.cs.

◆ CanInspect

bool Zone.CanInspect
get

Implements IInspect.

Definition at line 988 of file Zone.cs.

◆ CanUnlockExit

virtual bool Zone.CanUnlockExit
get

Definition at line 491 of file Zone.cs.

◆ ChanceSpawnNeutral

virtual float Zone.ChanceSpawnNeutral
get

Definition at line 671 of file Zone.cs.

◆ CountDeepestLevel

virtual bool Zone.CountDeepestLevel
get

Definition at line 371 of file Zone.cs.

◆ DangerLv

override int Zone.DangerLv
get

Definition at line 32 of file Zone.cs.

◆ DefaultActionMode

virtual ActionMode Zone.DefaultActionMode
get

Definition at line 241 of file Zone.cs.

◆ DisableRooms

virtual bool Zone.DisableRooms
get

Definition at line 46 of file Zone.cs.

◆ EvolvedChance

virtual float Zone.EvolvedChance
get

Definition at line 621 of file Zone.cs.

◆ ExpireDays

virtual int Zone.ExpireDays
get

Definition at line 261 of file Zone.cs.

◆ FeatureType

virtual ZoneFeatureType Zone.FeatureType
get

Definition at line 281 of file Zone.cs.

◆ FlockType

virtual FlockController.SpawnType Zone.FlockType
get

Definition at line 827 of file Zone.cs.

◆ Generator

MapGenerator Zone.Generator
get

Definition at line 137 of file Zone.cs.

◆ GrowPlant

virtual bool Zone.GrowPlant
get

Definition at line 681 of file Zone.cs.

◆ GrowWeed

virtual bool Zone.GrowWeed
get

Definition at line 691 of file Zone.cs.

◆ HasLaw

virtual bool Zone.HasLaw
get

Definition at line 381 of file Zone.cs.

◆ HiddenInRegionMap

virtual bool Zone.HiddenInRegionMap
get

Definition at line 811 of file Zone.cs.

◆ HourSinceLastActive

int Zone.HourSinceLastActive
get

Definition at line 56 of file Zone.cs.

◆ IDAmbience

virtual string Zone.IDAmbience
get

Definition at line 291 of file Zone.cs.

◆ IDBaseLandFeat

virtual string Zone.IDBaseLandFeat
get

Definition at line 187 of file Zone.cs.

◆ IdBiome

virtual string Zone.IdBiome
get

Definition at line 101 of file Zone.cs.

◆ idExport

virtual string Zone.idExport
get

Definition at line 197 of file Zone.cs.

◆ IDGenerator

virtual string Zone.IDGenerator
get

Definition at line 117 of file Zone.cs.

◆ IDHat

virtual string Zone.IDHat
get

Definition at line 177 of file Zone.cs.

◆ IDPlayList

virtual string Zone.IDPlayList
get

Definition at line 157 of file Zone.cs.

◆ IDPlaylistOverwrite

virtual string Zone.IDPlaylistOverwrite
get

Definition at line 167 of file Zone.cs.

◆ IdProfile

virtual string Zone.IdProfile
get

Definition at line 147 of file Zone.cs.

◆ IDSceneTemplate

virtual string Zone.IDSceneTemplate
get

Definition at line 309 of file Zone.cs.

◆ IDSubset

virtual string Zone.IDSubset
get

Definition at line 337 of file Zone.cs.

◆ InspectName

string Zone.InspectName
get

Implements IInspect.

Definition at line 998 of file Zone.cs.

◆ InspectPoint

Point Zone.InspectPoint
get

Implements IInspect.

Definition at line 1008 of file Zone.cs.

◆ InspectPosition

Vector3 Zone.InspectPosition
get

Implements IInspect.

Definition at line 1018 of file Zone.cs.

◆ IsActiveZone

bool Zone.IsActiveZone
get

Definition at line 978 of file Zone.cs.

◆ IsExplorable

virtual bool Zone.IsExplorable
get

Definition at line 701 of file Zone.cs.

◆ IsFestival

virtual bool Zone.IsFestival
get

Definition at line 327 of file Zone.cs.

◆ IsInstance

bool Zone.IsInstance
get

Definition at line 948 of file Zone.cs.

◆ IsLoaded

bool Zone.IsLoaded
get

Definition at line 958 of file Zone.cs.

◆ IsNefia

virtual bool Zone.IsNefia
get

Definition at line 531 of file Zone.cs.

◆ IsPCFaction

bool Zone.IsPCFaction
get

Definition at line 928 of file Zone.cs.

◆ IsReturnLocation

virtual bool Zone.IsReturnLocation
get

Definition at line 711 of file Zone.cs.

◆ IsSkyLevel

virtual bool Zone.IsSkyLevel
get

Definition at line 451 of file Zone.cs.

◆ IsStartZone

bool Zone.IsStartZone
get

Definition at line 938 of file Zone.cs.

◆ IsTown

virtual bool Zone.IsTown
get

Definition at line 351 of file Zone.cs.

◆ IsUserZone

virtual bool Zone.IsUserZone
get

Definition at line 461 of file Zone.cs.

◆ KeepAllyDistance

virtual bool Zone.KeepAllyDistance
get

Definition at line 561 of file Zone.cs.

◆ LockExit

virtual bool Zone.LockExit
get

Definition at line 481 of file Zone.cs.

◆ MakeEnemiesNeutral

virtual bool Zone.MakeEnemiesNeutral
get

Definition at line 391 of file Zone.cs.

◆ MakeTownProperties

virtual bool Zone.MakeTownProperties
get

Definition at line 401 of file Zone.cs.

◆ MaxLv

virtual int Zone.MaxLv
get

Definition at line 501 of file Zone.cs.

◆ MaxRespawn

int Zone.MaxRespawn
get

Definition at line 581 of file Zone.cs.

◆ MaxSpawn

virtual int Zone.MaxSpawn
get

Definition at line 571 of file Zone.cs.

◆ MinLv

virtual int Zone.MinLv
get

Definition at line 511 of file Zone.cs.

◆ MinsSinceLastActive

int Zone.MinsSinceLastActive
get

Definition at line 66 of file Zone.cs.

◆ NameSuffix

override string Zone.NameSuffix
get

Definition at line 856 of file Zone.cs.

◆ NameWithLevel

string Zone.NameWithLevel
get

Definition at line 870 of file Zone.cs.

◆ OreChance

virtual float Zone.OreChance
get

Definition at line 601 of file Zone.cs.

◆ ParentZone

Zone Zone.ParentZone
get

Definition at line 231 of file Zone.cs.

◆ pathExport

virtual string Zone.pathExport
get

Definition at line 76 of file Zone.cs.

◆ pathTemp

string Zone.pathTemp
get

Definition at line 211 of file Zone.cs.

◆ PetFollow

virtual bool Zone.PetFollow
get

Definition at line 541 of file Zone.cs.

◆ PrespawnRate

virtual float Zone.PrespawnRate
get

Definition at line 641 of file Zone.cs.

◆ RegenerateOnEnter

virtual bool Zone.RegenerateOnEnter
get

Definition at line 441 of file Zone.cs.

◆ Region

Region Zone.Region
get

Definition at line 221 of file Zone.cs.

◆ RegionEnterState

virtual ZoneTransition.EnterState Zone.RegionEnterState
get

Definition at line 271 of file Zone.cs.

◆ RespawnPerHour

virtual int Zone.RespawnPerHour
get

Definition at line 661 of file Zone.cs.

◆ RespawnRate

virtual float Zone.RespawnRate
get

Definition at line 651 of file Zone.cs.

◆ RestrictBuild

virtual bool Zone.RestrictBuild
get

Definition at line 551 of file Zone.cs.

◆ RevealRoom

virtual bool Zone.RevealRoom
get

Definition at line 761 of file Zone.cs.

◆ RuinChance

virtual float Zone.RuinChance
get

Definition at line 591 of file Zone.cs.

◆ ScaleMonsterLevel

virtual bool Zone.ScaleMonsterLevel
get

Definition at line 801 of file Zone.cs.

◆ ShouldAutoRevive

virtual bool Zone.ShouldAutoRevive
get

Definition at line 741 of file Zone.cs.

◆ ShouldMakeExit

virtual bool Zone.ShouldMakeExit
get

Definition at line 721 of file Zone.cs.

◆ ShouldRegenerate

virtual bool Zone.ShouldRegenerate
get

Definition at line 731 of file Zone.cs.

◆ ShrineChance

virtual float Zone.ShrineChance
get

Definition at line 631 of file Zone.cs.

◆ StartLV

virtual int Zone.StartLV
get

Definition at line 791 of file Zone.cs.

◆ TextDeepestLv

string Zone.TextDeepestLv
get

Definition at line 894 of file Zone.cs.

◆ TextWidgetDate

virtual string Zone.TextWidgetDate
get

Definition at line 127 of file Zone.cs.

◆ UseFog

virtual bool Zone.UseFog
get

Definition at line 751 of file Zone.cs.

◆ UseLight

virtual bool Zone.UseLight
get

Definition at line 781 of file Zone.cs.

◆ WillAutoSave

virtual bool Zone.WillAutoSave
get

Definition at line 431 of file Zone.cs.


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