|
void | CreateNew (int size, bool setReference=true) |
|
void | SetZone (Zone _zone) |
|
void | SetReference () |
|
void | OnDeactivate () |
|
void | Resize (int newSize) |
|
void | Shift (Vector2Int offset) |
|
void | Reload () |
|
void | ReloadRoom () |
|
void | Reset () |
|
void | ResetEditorPos () |
|
void | Save (string path, ZoneExportData export=null, PartialMap partial=null) |
|
void | Load (string path, bool import=false, PartialMap partial=null) |
|
void | ValidateVersion () |
|
void | OnLoad () |
|
void | OnImport (ZoneExportData data) |
|
void | ExportMetaData (string _path, string id, PartialMap partial=null) |
|
void | AddCardOnActivate (Card c) |
|
void | OnCardAddedToZone (Card t, int x, int z) |
|
void | OnCardRemovedFromZone (Card t) |
|
void | MoveCard (Point p, Card t) |
|
void | _AddCard (int x, int z, Card t, bool onAddToZone) |
|
void | _RemoveCard (Card t) |
|
Cell | GetCell (int index) |
|
void | SetSeen (int x, int z, bool seen=true, bool refresh=true) |
|
void | RevealAll (bool reveal=true) |
|
void | Reveal (Point center, int power=100) |
|
void | RefreshFOV (int x, int z, int radius=6, bool recalculate=false) |
|
void | RefreshFOVAll () |
|
void | SetFloor (int x, int z, int idMat=0, int idFloor=0) |
|
void | SetFloor (int x, int z, int idMat, int idFloor, int dir) |
|
void | SetBridge (int x, int z, int height=0, int idMat=0, int idBridge=0, int dir=0) |
|
void | SetRoofBlock (int x, int z, int idMat, int idBlock, int dir, int height) |
|
void | SetBlock (int x, int z, int idMat=0, int idBlock=0) |
|
void | SetBlock (int x, int z, int idMat, int idBlock, int dir) |
|
void | OnSetBlockOrDoor (int x, int z) |
|
void | TryRemoveRoom (int x, int z) |
|
void | TryAddRoom (int x, int z) |
|
void | SetBlockDir (int x, int z, int dir) |
|
void | ModFire (int x, int z, int amount) |
|
void | TryShatter (Point pos, int ele, int power) |
|
void | Burn (int x, int z, bool instant=false) |
|
void | SetLiquid (int x, int z, CellEffect effect=null) |
|
void | SetLiquid (int x, int z, int id, int value=1) |
|
void | SetEffect (int x, int z, CellEffect effect=null) |
|
void | ModLiquid (int x, int z, int amount) |
|
void | ClearRainAndDecal () |
|
void | SetObj (int x, int z, int id=0, int value=1, int dir=0) |
|
void | SetObj (int x, int z, int idMat, int idObj, int value, int dir) |
|
void | AddBackerTree () |
|
SourceBacker.Row | GetBackerObj (Point p) |
|
void | ApplyBackerObj (Point p, int id=-1) |
|
void | DropBlockComponent (Point point, TileRow r, SourceMaterial.Row mat, bool recoverBlock, bool isPlatform=false, Chara c=null) |
|
void | MineBlock (Point point, bool recoverBlock=false, Chara c=null) |
|
void | MineRamp (Point point, int ramp, bool recoverBlock=false) |
|
void | MineFloor (Point point, Chara c=null, bool recoverBlock=false, bool removePlatform=true) |
|
void | RefreshShadow (int x, int z) |
|
void | TrySmoothPick (Cell cell, Thing t, Chara c) |
|
void | TrySmoothPick (Point p, Thing t, Chara c) |
|
void | DestroyObj (Point point) |
|
void | MineObj (Point point, Task task=null, Chara c=null) |
|
void | MineObjSound (Point point) |
|
PlantData | TryGetPlant (Point p) |
|
PlantData | TryGetPlant (Cell c) |
|
PlantData | AddPlant (Point pos, Thing seed) |
|
void | RemovePlant (Point pos) |
|
void | ValidateInstalled (Point p) |
|
void | _ValidateInstalled (int x, int y) |
|
void | RemoveLonelyRamps (Cell cell) |
|
void | DestroyBlock (int x, int z) |
|
void | AddDecal (int x, int z, int id, int amount=1, bool refresh=true) |
|
void | SetDecal (int x, int z, int id=0, int amount=1, bool refresh=true) |
|
void | SetFoormark (Point pos, int id, int angle, int offset=0) |
|
int | AngleToIndex (int a) |
|
void | RefreshSingleTile (int x, int z) |
|
void | RefreshAllTiles () |
|
void | RefreshNeighborTiles (int x, int z) |
|
void | QuickRefreshTile (int x, int z) |
|
int | GetRampDir (int x, int z, TileType blockType=null) |
|
Cell | GetDependedRamp (Cell cell) |
|
Point | GetRandomPoint (Point center, int radius, int tries=100, bool mustBeWalkable=true, bool requireLos=true) |
|
new Point | GetRandomEdge (int r=3) |
|
Point | GetNearbyResourcePoint (Point center) |
|
List< Point > | ListPointsInCircle (Point center, float radius, bool mustBeWalkable=true, bool los=true) |
|
List< Chara > | ListCharasInCircle (Point center, float radius, bool los=true) |
|
List< Point > | ListPointsInArc (Point center, Point to, int radius, float angle) |
|
List< Point > | ListPointsInLine (Point center, Point to, int radius) |
|
void | SetBounds (int size) |
|
void | SetBounds (MapBounds b) |
|
new void | ForeachCell (Action< Cell > action) |
|
new void | ForeachPoint (Action< Point > action) |
|
new void | ForeachXYZ (Action< int, int > action) |
|
void | ForeachSphere (int _x, int _z, float r, Action< Point > action) |
|
void | ForeachNeighbor (Point center, Action< Point > action) |
|
void | Quake () |
|
int | CountChara (Faction faction) |
|
int | CountGuest () |
|
int | CountHostile () |
|
int | CountWildAnimal () |
|
int | CountNonHostile () |
|
List< Chara > | ListChara (Faction faction) |
|
List< Thing > | ListThing< T > () |
|
bool | PutAway (Card c) |
|
Chara | FindChara (string id) |
|
Chara | FindChara (int uid) |
|
Thing | FindThing (Func< Thing, bool > func) |
|
Thing | FindThing (int uid) |
|
T | FindThing< T > () |
|
Thing | FindThing (Type type, Chara c=null) |
|
Thing | FindThing (Type type, BaseArea area1, BaseArea area2=null) |
|
Thing | FindThing (string workTag, BaseArea area1=null, BaseArea area2=null) |
|
Thing | FindThing (string workTag, Chara c) |
|
BaseArea | FindPublicArea () |
|
void | RefreshSunMap () |
|
void | SetBounds (int _x, int _z, int _maxX, int _maxZ) |
|
bool | Contains (int dx, int dz) |
|
bool | Contains (Point p) |
|
Point | GetCenterPos () |
|
Point | GetRandomTopPos () |
|
Point | GetRandomRightPos () |
|
Point | GetRandomBottomPos () |
|
Point | GetRandomLeftPos () |
|
Point | GetTopPos (float rate=-1f) |
|
Point | GetRightPos (float rate=-1f) |
|
Point | GetBottomPos (float rate=-1f) |
|
Point | GetLeftPos (float rate=-1f) |
|
Point | GetRandomPoint () |
|
Point | GetSpawnPos (int x, int z, int maxX, int maxZ) |
|
bool | CanExpand (int a) |
|
void | Expand (int a) |
|
Point | GetSurface (int x, int z, bool walkable=true) |
|
Point | GetRandomSurface (int x, int z, int radius, bool walkable=true, bool allowWater=false) |
|
Point | GetRandomSurface (bool centered=false, bool walkable=true, bool allowWater=false) |
|
Point | GetRandomSpawnPos () |
|
Point | GetRandomEdge (int r=3) |
|
Point | GetRandomSpace (int width, int height, int tries=100) |
|
void | ForeachCell (Action< Cell > action) |
|
void | ForeachPoint (Action< Point > action) |
|
void | ForeachXYZ (Action< int, int > action) |
|
Definition at line 14 of file Map.cs.