Elin Decompiled Documentation EA 23.102 Nightly
|
Public Member Functions | |
override void | OnActivate () |
void | CheckRandomSites () |
void | RenewRandomSites () |
void | UpdateRandomSites () |
void | InitElomap () |
Zone | CreateRandomSite (Zone center, int radius=8, string idSource=null, bool updateMesh=true, int lv=0) |
SourceZone.Row | GetRandomSiteSource () |
Point | GetRandomPoint () |
Point | GetRandomPoint (int orgX, int orgY, int radius=8, bool increaseRadius=false) |
Point | GetRandomPoint (int orgX, int orgY, int minRadius, int maxRadius) |
bool | CanCreateZone (Point pos) |
Zone | CreateZone (Point pos) |
List< Zone > | ListTowns () |
Zone | GetRandomTown () |
List< Zone > | ListRandomSites () |
List< Zone > | ListZonesInRadius (Zone center, int radius=10) |
List< Zone > | ListTravelZones (int radius=100) |
override void | OnAdvanceHour () |
List< Chara > | ListMobs () |
![]() | |
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 () |
Public Attributes | |
EloMap | elomap = new EloMap() |
int | dateCheckSites |
![]() | |
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 |
![]() | |
Spatial | parent |
string | id |
string | idUser |
string | name |
string | idMainFaction |
string | idProfile |
string | idCurrentSubset |
string | idHat |
int[] | _ints = new int[30] |
List< Spatial > | children = new List<Spatial>() |
List< Spatial > | connections = new List<Spatial>() |
Dictionary< int, int > | mapInt = new Dictionary<int, int>() |
bool | destryoed |
bool | isImported |
BitArray32 | bits |
Properties | |
override bool | WillAutoSave [get] |
override ActionMode | DefaultActionMode [get] |
override bool | IsRegion [get] |
override int | DangerLv [get] |
override bool | BlockBorderExit [get] |
override Point | RegionPos [get] |
![]() | |
Chara | Boss [get, set] |
override int | ContentLv [get] |
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 | AllowInvest [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] |
bool | ShowEnemyOnMinimap [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 | IsPCFactionOrTent [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] |
virtual int | MaxSoil [get] |
![]() | |
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] |
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 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] |
![]() | |
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] |
![]() | |
bool | CanInspect [get] |
string | InspectName [get] |
Point | InspectPoint [get] |
Vector3 | InspectPosition [get] |
Private Member Functions | |
Zone | CreateRandomSite (Point pos, string idSource, bool updateMesh, int lv=0) |
Additional Inherited Members | |
![]() | |
enum | NoteMode { Default , Recipe , Product , Info } |
![]() | |
static bool | IsImportValid (string path) |
![]() | |
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 bool | forceRegenerate |
static string | forceSubset |
static CardRow | sourceHat |
static int | okaerinko = 0 |
static bool | ignoreSpawnAnime |
static List< Thing > | Suckers = new List<Thing>() |
![]() | |
static Core | core |
![]() | |
Zone | _FindZone (string _id) |
![]() | |
Point | _regionPos = new Point() |
|
inline |
Definition at line 215 of file Region.cs.
References EloMap.TileInfo.blocked, EloMapActor.elomap, elomap, Scene.elomapActor, EloMap.GetTileInfo(), EloMap.TileInfo.idZoneProfile, EloMapActor.Initialize(), World.region, EClass.scene, EClass.world, Point.x, and Point.z.
Referenced by Player.EnterLocalZone().
|
inline |
Definition at line 53 of file Region.cs.
References SpatialGen.Create(), World.date, dateCheckSites, elomap, Spatial.FindZone(), Date.GetRaw(), Date.IsExpired(), EloMap.objmap, UpdateRandomSites(), and EClass.world.
Referenced by GameDate.AdvanceHour(), and OnActivate().
|
inlineprivate |
Definition at line 110 of file Region.cs.
References Player.CountKeyItem(), SpatialGen.Create(), World.date, EClass.debug, elomap, CoreDebug.enable, Card.FameLv, GetRandomSiteSource(), Date.GetRaw(), Spatial.icon, EloMap.IsSnow(), Card.LV, Spatial.lv, EloMap.objmap, EClass.pc, EClass.player, EClass.rnd(), EClass.rndHalf(), EloMap.SetZone(), EClass.world, Point.x, Spatial.x, Spatial.y, and Point.z.
|
inline |
Definition at line 104 of file Region.cs.
References CreateRandomSite(), Scene.elomap, GetRandomPoint(), InitElomap(), Spatial.IsRegion, Spatial.lv, EloMap.minX, EloMap.minY, EClass.pc, Card.pos, EClass.scene, Point.x, Spatial.x, Spatial.y, and Point.z.
Referenced by CreateRandomSite(), Expedition.End(), TraitScrollMap.OnRead(), and UpdateRandomSites().
Definition at line 226 of file Region.cs.
References SpatialGen.Create(), Point.x, and Point.z.
Referenced by Player.EnterLocalZone().
|
inline |
Definition at line 164 of file Region.cs.
References Map.bounds, EloMap.CanBuildSite(), elomap, MapBounds.GetRandomPoint(), Zone.map, EloMap.minX, EloMap.minY, Point.x, and Point.z.
Referenced by CreateRandomSite(), OnAdvanceHour(), and UpdateRandomSites().
|
inline |
Definition at line 199 of file Region.cs.
References EloMap.CanBuildSite(), Point.Distance(), elomap, Point.IsBlocked, EloMap.minX, EloMap.minY, Rand.Range(), Point.x, and Point.z.
|
inline |
Definition at line 180 of file Region.cs.
References EloMap.CanBuildSite(), elomap, Rand.Range(), Point.x, and Point.z.
|
inline |
Definition at line 159 of file Region.cs.
References EClass.debug, CoreDebug.enable, EClass.sources, and SourceManager.zones.
Referenced by ThingGen.CreateMap(), and CreateRandomSite().
|
inline |
Definition at line 244 of file Region.cs.
References ListTowns().
Referenced by GlobalGoalAdv.OnAdvanceHour().
|
inline |
Definition at line 99 of file Region.cs.
References elomap, Scene.elomapActor, EloMapActor.Initialize(), and EClass.scene.
Referenced by CreateRandomSite().
|
inline |
Definition at line 332 of file Region.cs.
References EClass._map, Map.charas, Chara.IsGlobal, and Card.IsPCFactionOrMinion.
Referenced by OnAdvanceHour().
|
inline |
Definition at line 256 of file Region.cs.
References Spatial.children.
Referenced by RenewRandomSites(), and UpdateRandomSites().
|
inline |
Definition at line 231 of file Region.cs.
References Spatial.CanSpawnAdv, EClass.game, SpatialManager.map, and Game.spatials.
Referenced by GameDate.AdvanceDay(), GlobalGoalVisitTown.GetDestZone(), GetRandomTown(), and Chara.OnBanish().
|
inline |
Definition at line 276 of file Region.cs.
References Spatial.CanFastTravel, Chara.currentZone, EClass.debug, Spatial.Dist(), Scene.elomap, EClass.game, Zone.IsInstance, Spatial.isKnown, Spatial.IsRegion, EloMap.minX, EloMap.minY, Spatial.parent, EClass.pc, Card.pos, CoreDebug.returnAnywhere, EClass.scene, Game.spatials, Spatial.x, Spatial.y, and SpatialManager.Zones.
Referenced by LayerTravel.Refresh().
Definition at line 263 of file Region.cs.
References Spatial.Dist(), EClass.game, Spatial.source, Game.spatials, and SpatialManager.Zones.
Referenced by Expedition.End().
|
inlinevirtual |
Reimplemented from Zone.
Definition at line 25 of file Region.cs.
References Zone.CanDestroy(), CheckRandomSites(), Spatial.children, Spatial.destryoed, Zone.IsInstance, and Zone.IsPCFaction.
|
inlinevirtual |
Reimplemented from Zone.
Definition at line 299 of file Region.cs.
References Zone.AddCard(), RegionPoint.biome, Zone.biome, CharaGen.CreateFromFilter(), World.date, EClass.debug, CoreDebug.enable, SpawnList.Get(), BiomeProfile.Spawns.GetRandomCharaId(), GetRandomPoint(), Date.hour, item, ListMobs(), EClass.pc, Card.pos, EClass.rnd(), BiomeProfile.spawn, Chara.trait, EClass.world, Point.x, and Point.z.
|
inline |
Definition at line 75 of file Region.cs.
References dateCheckSites, Debug, item, ListRandomSites(), and Msg.Say().
Referenced by LayerSleep.Advance().
|
inline |
Definition at line 86 of file Region.cs.
References CreateRandomSite(), GetRandomPoint(), and ListRandomSites().
Referenced by LayerSleep.Advance(), and CheckRandomSites().
int Region.dateCheckSites |
Definition at line 11 of file Region.cs.
Referenced by CheckRandomSites(), and RenewRandomSites().
Definition at line 8 of file Region.cs.
Referenced by Zone.Activate(), CanCreateZone(), CheckRandomSites(), CreateRandomSite(), EloMapActor.GetEloMap(), Zone.GetProfile(), GetRandomPoint(), EloMap.GetRoadDist(), InitElomap(), MapGenRegion.OnGenerateTerrain(), and LayerTreasureMap.SetMap().
|
get |