|
override string | GetDungenID () |
|
override void | OnGenerateMap () |
|
void | PlaceRail (RailType railType=RailType.Mine) |
|
int | Evalue (int ele) |
|
int | Evalue (string alias) |
|
virtual string | GetDungenID () |
|
virtual bool | ShouldScaleImportedChara (Chara c) |
|
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 () |
|
virtual void | OnAdvanceHour () |
|
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, Point pos=null) |
|
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) |
|
Chara | 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) |
|
T | GetRandomSpot< T > () |
|
bool | TryAddThingInSpot< T > (Thing t, bool useContainer=true) |
|
List< Thing > | TryListThingsInSpot< 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 | TrySpawnFollower () |
|
void | SpawnAltar () |
|
virtual void | OnGenerateMap () |
|
void | TryGenerateOre () |
|
Chara | TryGenerateEvolved (bool force=false, Point p=null) |
|
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< Element > | ListLandFeats () |
|
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 () |
|
int | GetSortVal () |
|
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) |
|
List< Chara > | ListMinions (Chara c) |
|
int | CountMinions (Chara c) |
|
int | GetSoilCost () |
|
void | SpawnLostItems () |
|
void | ApplyBackerPet (bool draw) |
|
FortuneRollData | GetOrCreateFortuneRollData (bool refresh=true) |
|
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) |
|
ICardParent | GetRoot () |
|
void | RemoveCard (Card c) |
|
void | OnChildNumChange (Card c) |
|
void | WriteNote (UINote n, Action< UINote > onWriteNote=null, NoteMode mode=NoteMode.Default, Recipe recipe=null) |
|
void | OnInspect () |
|
Definition at line 5 of file Zone_Dungeon.cs.
Definition at line 111 of file Zone_Dungeon.cs.
112 {
113 int idRail = 31;
114 string idTrolley = "390";
115 bool placeStopper = true;
116 int num = 8;
118 {
119 idRail = 110;
120 placeStopper = false;
122 }
123 PathManager.Instance._pathfinder.PunishChangeDirection = true;
124 PathManager.Instance._pathfinder.Diagonals = false;
127 if (traitStairsDown != null && traitStairsUp != null)
128 {
129 TryPlaceRail(traitStairsDown.
owner.
pos, traitStairsUp.owner.pos);
130 }
131 int num2 = 0;
132 for (int i = 0; i < 200; i++)
133 {
135 {
136 num2++;
137 if (num2 > num)
138 {
139 break;
140 }
141 }
142 }
143 PathManager.Instance._pathfinder.Diagonals = true;
145 {
147 {
148 return false;
149 }
152 {
153 return false;
154 }
157 bool flag = false;
158 int num3 = 0;
160 {
162 for (int j = -1; j < 2; j++)
163 {
164 for (int k = -1; k < 2; k++)
165 {
166 point2.
Set(shared.
x + k, shared.
z + j);
167 if ((Mathf.Abs(k) != 1 || Mathf.Abs(j) != 1) && point2.
IsValid && point2.
sourceObj.id == 31 && !point2.
Equals(point))
168 {
169 flag = true;
170 if (num3 != 0)
171 {
172 break;
173 }
174 return false;
175 }
176 }
177 }
179 {
180 break;
181 }
185 {
187 {
188 t.Destroy();
189 }
190 });
191 if (flag)
192 {
193 break;
194 }
195 num3++;
197 }
198 if (!flag && placeStopper)
199 {
202 int dir = ((cell.Front.obj != 31) ? ((cell.
Right.
obj == 31) ? 1 : ((cell.Back.obj == 31) ? 2 : 3)) : 0);
204 {
206 }
207 }
208 if (num3 > 2)
209 {
212 {
214 }
215 }
216 return true;
217 }
218 }
Point GetRandomSurface(int x, int z, int radius, bool walkable=true, bool allowWater=false)
Thing FindThing(Func< Thing, bool > func)
void RequestPathImmediate(PathProgress progress)
static PathManager Instance
List< PathFinderNode > nodes
static Point GetShared(int x, int z)
void SetObj(int id=0, int value=1, int dir=0)
Point Set(int _x, int _z)
bool Equals(int _x, int _z)
void SetBlock(int idMat=0, int idBlock=0)
static Thing Create(string id, int idMat=-1, int lv=-1)
virtual bool CanBeDestroyed
Card AddCard(Card t, Point point)
References EClass._map, EClass._zone, Zone.AddCard(), Map.bounds, Trait.CanBeDestroyed, Point.cell, ThingGen.Create(), Card.dir, Point.Distance(), Map.FindThing(), MapBounds.GetRandomSurface(), Point.GetShared(), PathProgress.HasPath, Point.HasThing, PathManager.Instance, Cell.obj, Trait.owner, EClass.pc, Card.pos, PathManager.RequestPathImmediate(), Cell.Right, EClass.rnd(), Point.Set(), Point.SetBlock(), Point.SetObj(), Point.sourceObj, Point.Things, Card.trait, Algorithms.PathFinderNode.X, Point.x, Algorithms.PathFinderNode.Z, and Point.z.
Referenced by Zone_CurryRuinDungeon.OnGenerateMap(), Zone_RandomDungeonFactory.OnGenerateMap(), and Zone_VernisMine.OnGenerateMap().