|
override void | OnGenerateMap () |
|
int | Evalue (int ele) |
|
int | Evalue (string alias) |
|
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 () |
|
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) |
|
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) |
|
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 3 of file Zone_SnowGrave.cs.
static void Zone_SnowGrave.GenerateGrave |
( |
| ) |
|
|
inlinestatic |
Definition at line 13 of file Zone_SnowGrave.cs.
14 {
15 List<Dictionary<string, string>> list =
new ExcelData(
"Data/Raw/monument", 1).
BuildList();
16 list.RemoveAt(0);
17 list.Shuffle();
18 int num = 200;
19 string[] array = new string[7] { "1035", "1036", "1046", "1047", "1048", "1049", "1050" };
21 {
23 z = 50,
24 maxX = num - 1,
25 maxZ = num - 1,
26 Size = num
27 };
31 for (int i = 0; i < list.Count; i++)
32 {
33 Dictionary<string, string> dictionary = list[i];
35 for (int j = 0; j < 1000; j++)
36 {
37 bool flag = true;
40 {
41 continue;
42 }
43 for (
int k = point.
z - 1; k < point.
z + 2; k++)
44 {
45 for (
int l = point.
x - 1; l < point.
x + 2; l++)
46 {
49 {
50 flag = false;
51 break;
52 }
53 }
54 if (!flag)
55 {
56 break;
57 }
58 }
59 if (flag)
60 {
61 break;
62 }
63 }
66 thing.c_idBacker = dictionary["id"].ToInt();
67 thing.isModified = true;
68 }
69 string[] array2 = new string[3] { "1058", "1059", "1064" };
70 for (int m = 0; m < 500; m++)
71 {
75 }
76 }
static string ConvertName(string s)
List< Dictionary< string, string > > BuildList(string sheetName="_default")
Point GetRandomSurface(int x, int z, int radius, bool walkable=true, bool allowWater=false)
Point Set(int _x, int _z)
static Thing Create(string id, int idMat=-1, int lv=-1)
Card AddThing(string id, int x, int z)
Card AddCard(Card t, Point point)
References EClass._zone, Zone.AddCard(), Zone.AddThing(), Zone.bounds, ExcelData.BuildList(), card, BackerContent.ConvertName(), ThingGen.Create(), Point.Distance(), MapBounds.GetRandomSurface(), Point.HasBlock, Point.HasObj, Card.Install(), Point.Installed, EClass.rnd(), Point.Set(), Point.x, Spatial.x, and Point.z.
Referenced by OnGenerateMap().