### YamlMime:ManagedReference
items:
- uid: TinyLife.World.Map
commentId: T:TinyLife.World.Map
id: Map
parent: TinyLife.World
children:
- TinyLife.World.Map.#ctor(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.AddHousehold(TinyLife.World.Lot)
- TinyLife.World.Map.AddLight(TinyLife.Objects.Light)
- TinyLife.World.Map.AddLot(Microsoft.Xna.Framework.Rectangle)
- TinyLife.World.Map.AddLot(TinyLife.World.Lot)
- TinyLife.World.Map.AddNewRoomsAndValidateExisting(Microsoft.Xna.Framework.Point[],TinyLife.Tools.UndoableAction,System.Boolean)
- TinyLife.World.Map.AddObject(TinyLife.Objects.MapObject)
- TinyLife.World.Map.AddRoad(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.AddRoof(TinyLife.World.Roof)
- TinyLife.World.Map.AddWall(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.AddWall(TinyLife.World.Wall)
- TinyLife.World.Map.AdoptableChildren
- TinyLife.World.Map.ApplyCameraRotation(Microsoft.Xna.Framework.Vector2,System.Boolean,System.Nullable{MLEM.Misc.Direction2})
- TinyLife.World.Map.ApplyInverseCameraRotation(Microsoft.Xna.Framework.Vector2,System.Nullable{MLEM.Misc.Direction2})
- TinyLife.World.Map.CanWalkBetween(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Boolean,System.Nullable{MLEM.Misc.RectangleF},System.Nullable{Microsoft.Xna.Framework.Matrix},Microsoft.Xna.Framework.Graphics.RenderTarget2D,System.Boolean)
- TinyLife.World.Map.Finalize
- TinyLife.World.Map.GetAllLotEmployments
- TinyLife.World.Map.GetClosestEmptyTile(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)
- TinyLife.World.Map.GetClosestFreeExitPoint(Microsoft.Xna.Framework.Vector2)
- TinyLife.World.Map.GetClosestRoads(Microsoft.Xna.Framework.Point,System.Int32)
- TinyLife.World.Map.GetClosestRoadsidePosition(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Vector2)
- TinyLife.World.Map.GetDeadPerson(System.Guid)
- TinyLife.World.Map.GetDepth(Microsoft.Xna.Framework.Vector2,System.Single,System.Boolean,System.Boolean,System.Boolean)
- TinyLife.World.Map.GetExitRoads
- TinyLife.World.Map.GetHousehold(TinyLife.Objects.Person)
- TinyLife.World.Map.GetHousehold(TinyLife.World.Lot)
- TinyLife.World.Map.GetHouseholds
- TinyLife.World.Map.GetLot(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetLot(System.Guid)
- TinyLife.World.Map.GetLots
- TinyLife.World.Map.GetMapSampler
- TinyLife.World.Map.GetObject``1(System.Guid)
- TinyLife.World.Map.GetObjects``1(MLEM.Misc.RectangleF)
- TinyLife.World.Map.GetPathCost(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetPeople
- TinyLife.World.Map.GetRandomTile(System.Random,Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
- TinyLife.World.Map.GetRegularVisitors
- TinyLife.World.Map.GetRoads
- TinyLife.World.Map.GetRoof(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetRoofs(MLEM.Misc.RectangleF)
- TinyLife.World.Map.GetRoom(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetSection(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetSections(Microsoft.Xna.Framework.Point,System.Int32)
- TinyLife.World.Map.GetSections(MLEM.Misc.RectangleF,System.Int32)
- TinyLife.World.Map.GetTile(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetTilesAround(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
- TinyLife.World.Map.GetWallBetween(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.GetWalls(MLEM.Misc.RectangleF)
- TinyLife.World.Map.IsFreeSpot(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.IsInBounds(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.IsLotHidden(TinyLife.World.Lot)
- TinyLife.World.Map.IsRoad(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.LoadStaticMap(System.String,System.Boolean,System.Action{System.String},System.Action{System.Single})
- TinyLife.World.Map.MailToSend
- TinyLife.World.Map.MarkDirtyForPathfinding(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.MarkObjectDirtyForDrawing(TinyLife.Objects.MapObject,TinyLife.World.MapSection,System.Boolean)
- TinyLife.World.Map.MarkTileDirtyForDrawing(Microsoft.Xna.Framework.Point)
- TinyLife.World.Map.MoveEverything(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Rectangle,System.Boolean,TinyLife.World.Tile)
- TinyLife.World.Map.OnCameraRotationChanged(MLEM.Misc.Direction2,MLEM.Misc.Direction2)
- TinyLife.World.Map.OnObjectAdded
- TinyLife.World.Map.OnObjectRemoved
- TinyLife.World.Map.OnUpdate
- TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,Microsoft.Xna.Framework.Vector2,System.Single,System.Single,System.Boolean,System.Boolean)
- TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,TinyLife.World.MapAudioEmitter,System.Single,System.Single,System.Boolean,System.Boolean)
- TinyLife.World.Map.PostValidate(System.Action{System.String},System.Action{System.Single})
- TinyLife.World.Map.RemoveHousehold(TinyLife.World.Household)
- TinyLife.World.Map.RemoveLight(TinyLife.Objects.Light)
- TinyLife.World.Map.RemoveLot(TinyLife.World.Lot)
- TinyLife.World.Map.RemoveObject(TinyLife.Objects.MapObject)
- TinyLife.World.Map.RemoveRoof(TinyLife.World.Roof)
- TinyLife.World.Map.RemoveWall(TinyLife.World.Wall)
- TinyLife.World.Map.RoadRadius
- TinyLife.World.Map.SetTile(Microsoft.Xna.Framework.Point,TinyLife.World.Tile)
- TinyLife.World.Map.Size
- TinyLife.World.Map.SizeInSections
- TinyLife.World.Map.StaticVersion
- TinyLife.World.Map.Time
- TinyLife.World.Map.Update(Microsoft.Xna.Framework.GameTime,System.TimeSpan,System.Single)
- TinyLife.World.Map.UpdateExternalPeople(System.Action{System.Single})
- TinyLife.World.Map.Validate(System.Action{System.String},System.Action{System.Single})
- TinyLife.World.Map.ValidateExistingRooms(Microsoft.Xna.Framework.Point[])
langs:
- csharp
- vb
name: Map
nameWithType: Map
fullName: TinyLife.World.Map
type: Class
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Map
path: ../TinyLife/World/Map.cs
startLine: 37
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nA map holds all of the data about a city, like its tiles, its objects and its roads.\nA map is split into objects which allows faster retrieval of objects in an area.\n"
example: []
syntax:
content: >-
[DataContract]
public class Map : JsonTypeSafeGenericDataHolder, IGenericDataHolder
content.vb: >-
Public Class Map Inherits JsonTypeSafeGenericDataHolder Implements IGenericDataHolder
inheritance:
- System.Object
- MLEM.Data.Json.JsonTypeSafeGenericDataHolder
implements:
- MLEM.Misc.IGenericDataHolder
inheritedMembers:
- MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(System.String,System.Object)
- MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData``1(System.String,{T})
- MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData``1(System.String)
- MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- System.Object.ReferenceEquals(System.Object,System.Object)
- System.Object.ToString
extensionMethods:
- TinyLife.World.Map.TinyLife.Utilities.Extensions.JsonCopy``1
attributes:
- type: System.Runtime.Serialization.DataContractAttribute
ctor: System.Runtime.Serialization.DataContractAttribute.#ctor
arguments: []
- uid: TinyLife.World.Map.RoadRadius
commentId: F:TinyLife.World.Map.RoadRadius
id: RoadRadius
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RoadRadius
nameWithType: Map.RoadRadius
fullName: TinyLife.World.Map.RoadRadius
type: Field
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RoadRadius
path: ../TinyLife/World/Map.cs
startLine: 44
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThis field holds the radius that roads are required to have (in road tiles) excluding the center dotted line tiles.\nIt is set to 2.\n"
example: []
syntax:
content: public const int RoadRadius = 2
return:
type: System.Int32
content.vb: Public Const RoadRadius As Integer = 2
- uid: TinyLife.World.Map.OnUpdate
commentId: E:TinyLife.World.Map.OnUpdate
id: OnUpdate
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: OnUpdate
nameWithType: Map.OnUpdate
fullName: TinyLife.World.Map.OnUpdate
type: Event
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: OnUpdate
path: ../TinyLife/World/Map.cs
startLine: 79
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAn event that is invoked when this map is updated in \n"
example: []
syntax:
content: public event UpdateDelegate OnUpdate
return:
type: TinyLife.World.UpdateDelegate
content.vb: Public Event OnUpdate As UpdateDelegate
- uid: TinyLife.World.Map.OnObjectAdded
commentId: E:TinyLife.World.Map.OnObjectAdded
id: OnObjectAdded
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: OnObjectAdded
nameWithType: Map.OnObjectAdded
fullName: TinyLife.World.Map.OnObjectAdded
type: Event
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: OnObjectAdded
path: ../TinyLife/World/Map.cs
startLine: 83
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAn event that is invoked when a is added to this map using \n"
example: []
syntax:
content: public event Action OnObjectAdded
return:
type: System.Action{TinyLife.Objects.MapObject}
content.vb: Public Event OnObjectAdded As Action(Of MapObject)
- uid: TinyLife.World.Map.OnObjectRemoved
commentId: E:TinyLife.World.Map.OnObjectRemoved
id: OnObjectRemoved
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: OnObjectRemoved
nameWithType: Map.OnObjectRemoved
fullName: TinyLife.World.Map.OnObjectRemoved
type: Event
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: OnObjectRemoved
path: ../TinyLife/World/Map.cs
startLine: 87
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAn event that is invoked when a is removed from this map using \n"
example: []
syntax:
content: public event Action OnObjectRemoved
return:
type: System.Action{TinyLife.Objects.MapObject}
content.vb: Public Event OnObjectRemoved As Action(Of MapObject)
- uid: TinyLife.World.Map.MailToSend
commentId: F:TinyLife.World.Map.MailToSend
id: MailToSend
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: MailToSend
nameWithType: Map.MailToSend
fullName: TinyLife.World.Map.MailToSend
type: Field
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MailToSend
path: ../TinyLife/World/Map.cs
startLine: 93
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nA list of all that needs to be sent by a mail carrier the next morning.\n"
example: []
syntax:
content: >-
[DataMember]
public readonly List MailToSend
return:
type: System.Collections.Generic.List{TinyLife.World.Mail}
content.vb: >-
Public ReadOnly MailToSend As List(Of Mail)
attributes:
- type: System.Runtime.Serialization.DataMemberAttribute
ctor: System.Runtime.Serialization.DataMemberAttribute.#ctor
arguments: []
- uid: TinyLife.World.Map.AdoptableChildren
commentId: P:TinyLife.World.Map.AdoptableChildren
id: AdoptableChildren
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AdoptableChildren
nameWithType: Map.AdoptableChildren
fullName: TinyLife.World.Map.AdoptableChildren
type: Property
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AdoptableChildren
path: ../TinyLife/World/Map.cs
startLine: 98
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nA set of randomly generated children that can be adopted using .\nIf this collection has children removed from it, it will automatically get repopulated until there are 12 children in it.\n"
example: []
syntax:
content: public List AdoptableChildren { get; }
parameters: []
return:
type: System.Collections.Generic.List{TinyLife.Objects.Person}
content.vb: Public ReadOnly Property AdoptableChildren As List(Of Person)
overload: TinyLife.World.Map.AdoptableChildren*
- uid: TinyLife.World.Map.SizeInSections
commentId: P:TinyLife.World.Map.SizeInSections
id: SizeInSections
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: SizeInSections
nameWithType: Map.SizeInSections
fullName: TinyLife.World.Map.SizeInSections
type: Property
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: SizeInSections
path: ../TinyLife/World/Map.cs
startLine: 109
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThe size, in sections (not tiles) that this map has\n"
example: []
syntax:
content: >-
[DataMember]
public Point SizeInSections { get; }
parameters: []
return:
type: Microsoft.Xna.Framework.Point
content.vb: >-
Public Property SizeInSections As Point
overload: TinyLife.World.Map.SizeInSections*
attributes:
- type: System.Runtime.Serialization.DataMemberAttribute
ctor: System.Runtime.Serialization.DataMemberAttribute.#ctor
arguments: []
- uid: TinyLife.World.Map.Size
commentId: P:TinyLife.World.Map.Size
id: Size
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: Size
nameWithType: Map.Size
fullName: TinyLife.World.Map.Size
type: Property
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Size
path: ../TinyLife/World/Map.cs
startLine: 123
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThe size in tiles that this map has.\nThis is always multiplied by .\n"
example: []
syntax:
content: public Point Size { get; }
parameters: []
return:
type: Microsoft.Xna.Framework.Point
content.vb: Public Property Size As Point
overload: TinyLife.World.Map.Size*
- uid: TinyLife.World.Map.StaticVersion
commentId: P:TinyLife.World.Map.StaticVersion
id: StaticVersion
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: StaticVersion
nameWithType: Map.StaticVersion
fullName: TinyLife.World.Map.StaticVersion
type: Property
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: StaticVersion
path: ../TinyLife/World/Map.cs
startLine: 137
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThe static version of this map.\nWhen a new save file is created, a static version of each map is loaded and used as the save file's basis.\nIf the static version of the save file is newer, their save file is updated to the new static map version, which causes all non-lot objects to be copied to the saved map.\n"
example: []
syntax:
content: >-
[DataMember]
public int StaticVersion { get; }
parameters: []
return:
type: System.Int32
content.vb: >-
Public Property StaticVersion As Integer
overload: TinyLife.World.Map.StaticVersion*
attributes:
- type: System.Runtime.Serialization.DataMemberAttribute
ctor: System.Runtime.Serialization.DataMemberAttribute.#ctor
arguments: []
- uid: TinyLife.World.Map.Time
commentId: P:TinyLife.World.Map.Time
id: Time
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: Time
nameWithType: Map.Time
fullName: TinyLife.World.Map.Time
type: Property
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Time
path: ../TinyLife/World/Map.cs
startLine: 142
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThis map's current in-game time, including the full day and time.\n"
example: []
syntax:
content: public TimeSpan Time { get; }
parameters: []
return:
type: System.TimeSpan
content.vb: Public ReadOnly Property Time As TimeSpan
overload: TinyLife.World.Map.Time*
- uid: TinyLife.World.Map.#ctor(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.#ctor(Microsoft.Xna.Framework.Point)
id: '#ctor(Microsoft.Xna.Framework.Point)'
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: Map(Point)
nameWithType: Map.Map(Point)
fullName: TinyLife.World.Map.Map(Microsoft.Xna.Framework.Point)
type: Constructor
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: .ctor
path: ../TinyLife/World/Map.cs
startLine: 181
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nCreates a new map with the given size\n"
example: []
syntax:
content: public Map(Point sizeInSections)
parameters:
- id: sizeInSections
type: Microsoft.Xna.Framework.Point
description: The size, in sections, of this map
content.vb: Public Sub New(sizeInSections As Point)
overload: TinyLife.World.Map.#ctor*
nameWithType.vb: Map.New(Point)
fullName.vb: TinyLife.World.Map.New(Microsoft.Xna.Framework.Point)
name.vb: New(Point)
- uid: TinyLife.World.Map.Finalize
commentId: M:TinyLife.World.Map.Finalize
id: Finalize
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: ~Map()
nameWithType: Map.~Map()
fullName: TinyLife.World.Map.~Map()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Finalize
path: ../TinyLife/World/Map.cs
startLine: 186
assemblies:
- Tiny Life
namespace: TinyLife.World
example: []
syntax:
content: protected ~Map()
content.vb: ''
overload: TinyLife.World.Map.Finalize*
nameWithType.vb: ''
fullName.vb: ''
name.vb: ''
- uid: TinyLife.World.Map.Update(Microsoft.Xna.Framework.GameTime,System.TimeSpan,System.Single)
commentId: M:TinyLife.World.Map.Update(Microsoft.Xna.Framework.GameTime,System.TimeSpan,System.Single)
id: Update(Microsoft.Xna.Framework.GameTime,System.TimeSpan,System.Single)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: Update(GameTime, TimeSpan, float)
nameWithType: Map.Update(GameTime, TimeSpan, float)
fullName: TinyLife.World.Map.Update(Microsoft.Xna.Framework.GameTime, System.TimeSpan, float)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Update
path: ../TinyLife/World/Map.cs
startLine: 197
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nUpdates this map, its objects and its s.\n"
example: []
syntax:
content: public void Update(GameTime time, TimeSpan passedInGame, float speedMultiplier)
parameters:
- id: time
type: Microsoft.Xna.Framework.GameTime
description: The game's time
- id: passedInGame
type: System.TimeSpan
description: The amount of time that has passed in game
- id: speedMultiplier
type: System.Single
description: The game speed multiplier, which represents how fast things should happen, which is usually determined by
content.vb: Public Sub Update(time As GameTime, passedInGame As TimeSpan, speedMultiplier As Single)
overload: TinyLife.World.Map.Update*
nameWithType.vb: Map.Update(GameTime, TimeSpan, Single)
fullName.vb: TinyLife.World.Map.Update(Microsoft.Xna.Framework.GameTime, System.TimeSpan, Single)
name.vb: Update(GameTime, TimeSpan, Single)
- uid: TinyLife.World.Map.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Boolean,System.Nullable{MLEM.Misc.RectangleF},System.Nullable{Microsoft.Xna.Framework.Matrix},Microsoft.Xna.Framework.Graphics.RenderTarget2D,System.Boolean)
commentId: M:TinyLife.World.Map.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Boolean,System.Nullable{MLEM.Misc.RectangleF},System.Nullable{Microsoft.Xna.Framework.Matrix},Microsoft.Xna.Framework.Graphics.RenderTarget2D,System.Boolean)
id: Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Boolean,System.Nullable{MLEM.Misc.RectangleF},System.Nullable{Microsoft.Xna.Framework.Matrix},Microsoft.Xna.Framework.Graphics.RenderTarget2D,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: Draw(GameTime, SpriteBatch, bool, RectangleF?, Matrix?, RenderTarget2D, bool)
nameWithType: Map.Draw(GameTime, SpriteBatch, bool, RectangleF?, Matrix?, RenderTarget2D, bool)
fullName: TinyLife.World.Map.Draw(Microsoft.Xna.Framework.GameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch, bool, MLEM.Misc.RectangleF?, Microsoft.Xna.Framework.Matrix?, Microsoft.Xna.Framework.Graphics.RenderTarget2D, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Draw
path: ../TinyLife/World/Map.cs
startLine: 242
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nDraws this map and all of its objects.\nNote that drawing in this manner uses multiple objects, for things like the ground and the lightmaps.\n"
example: []
syntax:
content: public void Draw(GameTime time, SpriteBatch batch, bool selectionMode, RectangleF? visibleArea = null, Matrix? visibleMatrix = null, RenderTarget2D lightmap = null, bool ignoreObjectVisibility = false)
parameters:
- id: time
type: Microsoft.Xna.Framework.GameTime
description: The game's time
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch to use for drawing
- id: selectionMode
type: System.Boolean
description: Whether we're drawing in selection mode ("ShowSelectionEffect" cheat displays this mode)
- id: visibleArea
type: System.Nullable{MLEM.Misc.RectangleF}
description: The area that is visible, in world space. If this is null, is used to calculate the visible area.
- id: visibleMatrix
type: System.Nullable{Microsoft.Xna.Framework.Matrix}
description: A matrix that has a translation and scale that determines the visible area of the screenshot
- id: lightmap
type: Microsoft.Xna.Framework.Graphics.RenderTarget2D
description: The light map to draw lighting data onto, or null to use the default light map
- id: ignoreObjectVisibility
type: System.Boolean
description: Whether object visibility () should be ignored
content.vb: Public Sub Draw(time As GameTime, batch As SpriteBatch, selectionMode As Boolean, visibleArea As RectangleF? = Nothing, visibleMatrix As Matrix? = Nothing, lightmap As RenderTarget2D = Nothing, ignoreObjectVisibility As Boolean = False)
overload: TinyLife.World.Map.Draw*
nameWithType.vb: Map.Draw(GameTime, SpriteBatch, Boolean, RectangleF?, Matrix?, RenderTarget2D, Boolean)
fullName.vb: TinyLife.World.Map.Draw(Microsoft.Xna.Framework.GameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch, Boolean, MLEM.Misc.RectangleF?, Microsoft.Xna.Framework.Matrix?, Microsoft.Xna.Framework.Graphics.RenderTarget2D, Boolean)
name.vb: Draw(GameTime, SpriteBatch, Boolean, RectangleF?, Matrix?, RenderTarget2D, Boolean)
- uid: TinyLife.World.Map.GetDepth(Microsoft.Xna.Framework.Vector2,System.Single,System.Boolean,System.Boolean,System.Boolean)
commentId: M:TinyLife.World.Map.GetDepth(Microsoft.Xna.Framework.Vector2,System.Single,System.Boolean,System.Boolean,System.Boolean)
id: GetDepth(Microsoft.Xna.Framework.Vector2,System.Single,System.Boolean,System.Boolean,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetDepth(Vector2, float, bool, bool, bool)
nameWithType: Map.GetDepth(Vector2, float, bool, bool, bool)
fullName: TinyLife.World.Map.GetDepth(Microsoft.Xna.Framework.Vector2, float, bool, bool, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetDepth
path: ../TinyLife/World/Map.cs
startLine: 527
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nGets the depth that should be used for drawing a or at the given position\n"
example: []
syntax:
content: public float GetDepth(Vector2 worldPos, float offset = 0, bool center = true, bool borderOffset = false, bool applyCameraRotation = true)
parameters:
- id: worldPos
type: Microsoft.Xna.Framework.Vector2
description: The position to get depth for, in tile coordinates
- id: offset
type: System.Single
description: An offset added to the depth value
- id: center
type: System.Boolean
description: Whether the position should be centered on the x axis
- id: borderOffset
type: System.Boolean
description: Whether the map border offset should be applied to the camera rotation using . This value only has an effect if applyCameraRotation
is true
- id: applyCameraRotation
type: System.Boolean
description: Whether the game's current should be applied using
return:
type: System.Single
description: The depth to pass to the draw call
content.vb: Public Function GetDepth(worldPos As Vector2, offset As Single = 0, center As Boolean = True, borderOffset As Boolean = False, applyCameraRotation As Boolean = True) As Single
overload: TinyLife.World.Map.GetDepth*
nameWithType.vb: Map.GetDepth(Vector2, Single, Boolean, Boolean, Boolean)
fullName.vb: TinyLife.World.Map.GetDepth(Microsoft.Xna.Framework.Vector2, Single, Boolean, Boolean, Boolean)
name.vb: GetDepth(Vector2, Single, Boolean, Boolean, Boolean)
- uid: TinyLife.World.Map.IsInBounds(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.IsInBounds(Microsoft.Xna.Framework.Point)
id: IsInBounds(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: IsInBounds(Point)
nameWithType: Map.IsInBounds(Point)
fullName: TinyLife.World.Map.IsInBounds(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsInBounds
path: ../TinyLife/World/Map.cs
startLine: 538
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns whether the given position is in bounds of this map's \n"
example: []
syntax:
content: public bool IsInBounds(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to query
return:
type: System.Boolean
description: true if the position is in bounds, false otherwise
content.vb: Public Function IsInBounds(pos As Point) As Boolean
overload: TinyLife.World.Map.IsInBounds*
- uid: TinyLife.World.Map.AddRoad(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.AddRoad(Microsoft.Xna.Framework.Point)
id: AddRoad(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddRoad(Point)
nameWithType: Map.AddRoad(Point)
fullName: TinyLife.World.Map.AddRoad(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddRoad
path: ../TinyLife/World/Map.cs
startLine: 547
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds a road to the map at the given position.\nThis doesn't actually add the road tiles, but it notifies the pathfinder that there is a road center at this location.\n"
example: []
syntax:
content: public void AddRoad(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to add a road to
content.vb: Public Sub AddRoad(pos As Point)
overload: TinyLife.World.Map.AddRoad*
- uid: TinyLife.World.Map.IsRoad(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.IsRoad(Microsoft.Xna.Framework.Point)
id: IsRoad(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: IsRoad(Point)
nameWithType: Map.IsRoad(Point)
fullName: TinyLife.World.Map.IsRoad(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsRoad
path: ../TinyLife/World/Map.cs
startLine: 557
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns whether the given position contains a road.\nThis doesn't query road tiles, but it queries for road markers added by .\n"
example: []
syntax:
content: public bool IsRoad(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: ''
return:
type: System.Boolean
description: ''
content.vb: Public Function IsRoad(pos As Point) As Boolean
overload: TinyLife.World.Map.IsRoad*
- uid: TinyLife.World.Map.GetClosestRoads(Microsoft.Xna.Framework.Point,System.Int32)
commentId: M:TinyLife.World.Map.GetClosestRoads(Microsoft.Xna.Framework.Point,System.Int32)
id: GetClosestRoads(Microsoft.Xna.Framework.Point,System.Int32)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetClosestRoads(Point, int)
nameWithType: Map.GetClosestRoads(Point, int)
fullName: TinyLife.World.Map.GetClosestRoads(Microsoft.Xna.Framework.Point, int)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClosestRoads
path: ../TinyLife/World/Map.cs
startLine: 567
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns all road markers around the given pos
in the given radius
, ordered by their distance to the pos
.\n"
example: []
syntax:
content: public IEnumerable GetClosestRoads(Point pos, int radius)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to find the closest roads to
- id: radius
type: System.Int32
description: The radius, in tiles, to search for roads in
return:
type: System.Collections.Generic.IEnumerable{Microsoft.Xna.Framework.Point}
description: The closest road points
content.vb: Public Function GetClosestRoads(pos As Point, radius As Integer) As IEnumerable(Of Point)
overload: TinyLife.World.Map.GetClosestRoads*
nameWithType.vb: Map.GetClosestRoads(Point, Integer)
fullName.vb: TinyLife.World.Map.GetClosestRoads(Microsoft.Xna.Framework.Point, Integer)
name.vb: GetClosestRoads(Point, Integer)
- uid: TinyLife.World.Map.GetRoads
commentId: M:TinyLife.World.Map.GetRoads
id: GetRoads
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetRoads()
nameWithType: Map.GetRoads()
fullName: TinyLife.World.Map.GetRoads()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRoads
path: ../TinyLife/World/Map.cs
startLine: 577
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of all of the road markers on this map\n"
example: []
syntax:
content: public IEnumerable GetRoads()
return:
type: System.Collections.Generic.IEnumerable{Microsoft.Xna.Framework.Point}
description: A set of all road markers on this map
content.vb: Public Function GetRoads() As IEnumerable(Of Point)
overload: TinyLife.World.Map.GetRoads*
- uid: TinyLife.World.Map.GetClosestRoadsidePosition(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Vector2)
commentId: M:TinyLife.World.Map.GetClosestRoadsidePosition(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Vector2)
id: GetClosestRoadsidePosition(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Vector2)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetClosestRoadsidePosition(Point, Vector2)
nameWithType: Map.GetClosestRoadsidePosition(Point, Vector2)
fullName: TinyLife.World.Map.GetClosestRoadsidePosition(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Vector2)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClosestRoadsidePosition
path: ../TinyLife/World/Map.cs
startLine: 588
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the closest roadside position to the given road
position, as well as the given pos
.\n"
example: []
syntax:
content: public Point? GetClosestRoadsidePosition(Point road, Vector2 pos)
parameters:
- id: road
type: Microsoft.Xna.Framework.Point
description: The road position.
- id: pos
type: Microsoft.Xna.Framework.Vector2
description: The (non-road) position that the returned roadside position should be closest to.
return:
type: System.Nullable{Microsoft.Xna.Framework.Point}
description: The closest roadside position, or null if there is none around.
content.vb: Public Function GetClosestRoadsidePosition(road As Point, pos As Vector2) As Point?
overload: TinyLife.World.Map.GetClosestRoadsidePosition*
- uid: TinyLife.World.Map.GetTilesAround(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
commentId: M:TinyLife.World.Map.GetTilesAround(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
id: GetTilesAround(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetTilesAround(Vector2, int, bool, bool, Predicate)
nameWithType: Map.GetTilesAround(Vector2, int, bool, bool, Predicate)
fullName: TinyLife.World.Map.GetTilesAround(Microsoft.Xna.Framework.Vector2, int, bool, bool, System.Predicate)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetTilesAround
path: ../TinyLife/World/Map.cs
startLine: 605
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of tiles around the given position that match the given conditions\n"
example: []
syntax:
content: public IEnumerable GetTilesAround(Vector2 pos, int radius, bool hasToBeOnLot = false, bool sameRoom = false, Predicate valid = null)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Vector2
description: The position
- id: radius
type: System.Int32
description: The radius, in tiles
- id: hasToBeOnLot
type: System.Boolean
description: Whether the returned positions have to be on a lot
- id: sameRoom
type: System.Boolean
description: Whether the returned positions have to be in the same room as the pos
passed
- id: valid
type: System.Predicate{Microsoft.Xna.Framework.Point}
description: A function that determines whether a position should be returned. If this is null, all valid positions are returned.
return:
type: System.Collections.Generic.IEnumerable{Microsoft.Xna.Framework.Point}
description: A set of positions that match the given conditions
content.vb: Public Function GetTilesAround(pos As Vector2, radius As Integer, hasToBeOnLot As Boolean = False, sameRoom As Boolean = False, valid As Predicate(Of Point) = Nothing) As IEnumerable(Of Point)
overload: TinyLife.World.Map.GetTilesAround*
nameWithType.vb: Map.GetTilesAround(Vector2, Integer, Boolean, Boolean, Predicate(Of Point))
fullName.vb: TinyLife.World.Map.GetTilesAround(Microsoft.Xna.Framework.Vector2, Integer, Boolean, Boolean, System.Predicate(Of Microsoft.Xna.Framework.Point))
name.vb: GetTilesAround(Vector2, Integer, Boolean, Boolean, Predicate(Of Point))
- uid: TinyLife.World.Map.GetClosestEmptyTile(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)
commentId: M:TinyLife.World.Map.GetClosestEmptyTile(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)
id: GetClosestEmptyTile(Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetClosestEmptyTile(Vector2, int, bool, bool, bool)
nameWithType: Map.GetClosestEmptyTile(Vector2, int, bool, bool, bool)
fullName: TinyLife.World.Map.GetClosestEmptyTile(Microsoft.Xna.Framework.Vector2, int, bool, bool, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClosestEmptyTile
path: ../TinyLife/World/Map.cs
startLine: 632
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the position of the closest tile that is empty.\nAn empty tile is a tile that has no instances on it.\n"
example: []
syntax:
content: public Point? GetClosestEmptyTile(Vector2 pos, int radius = 2, bool ignorePeople = true, bool hasToBeOnLot = false, bool sameRoom = false)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Vector2
description: The position to be close to
- id: radius
type: System.Int32
description: The radius to search for empty tiles in
- id: ignorePeople
type: System.Boolean
description: Whether or not people should be ignored. If this is true, the returned empty tile might currently be occupied by a .
- id: hasToBeOnLot
type: System.Boolean
description: Whether or not the returned tile position has to be part of a
- id: sameRoom
type: System.Boolean
description: Whether or not the returned tile position has to be in the same room as pos
return:
type: System.Nullable{Microsoft.Xna.Framework.Point}
description: The closest empty tile, or null if there isn't one
content.vb: Public Function GetClosestEmptyTile(pos As Vector2, radius As Integer = 2, ignorePeople As Boolean = True, hasToBeOnLot As Boolean = False, sameRoom As Boolean = False) As Point?
overload: TinyLife.World.Map.GetClosestEmptyTile*
nameWithType.vb: Map.GetClosestEmptyTile(Vector2, Integer, Boolean, Boolean, Boolean)
fullName.vb: TinyLife.World.Map.GetClosestEmptyTile(Microsoft.Xna.Framework.Vector2, Integer, Boolean, Boolean, Boolean)
name.vb: GetClosestEmptyTile(Vector2, Integer, Boolean, Boolean, Boolean)
- uid: TinyLife.World.Map.GetRandomTile(System.Random,Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
commentId: M:TinyLife.World.Map.GetRandomTile(System.Random,Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
id: GetRandomTile(System.Random,Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean,System.Boolean,System.Predicate{Microsoft.Xna.Framework.Point})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetRandomTile(Random, Vector2, int, bool, bool, Predicate)
nameWithType: Map.GetRandomTile(Random, Vector2, int, bool, bool, Predicate)
fullName: TinyLife.World.Map.GetRandomTile(System.Random, Microsoft.Xna.Framework.Vector2, int, bool, bool, System.Predicate)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRandomTile
path: ../TinyLife/World/Map.cs
startLine: 650
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a random tile in the given radius that matches the given predicate.\nIf no tile is found, an empty is returned.\n"
example: []
syntax:
content: public Point? GetRandomTile(Random random, Vector2 pos, int radius = 32, bool hasToBeOnLot = false, bool sameRoom = false, Predicate valid = null)
parameters:
- id: random
type: System.Random
description: The random to use
- id: pos
type: Microsoft.Xna.Framework.Vector2
description: The position that the radius should be centered on
- id: radius
type: System.Int32
description: The radius
- id: hasToBeOnLot
type: System.Boolean
description: Whether the position returned has to be on a lot
- id: sameRoom
type: System.Boolean
description: Whether the position returned has to be in the same room as the pos
passed
- id: valid
type: System.Predicate{Microsoft.Xna.Framework.Point}
description: A predicate that determines whether tile should be included
return:
type: System.Nullable{Microsoft.Xna.Framework.Point}
description: A random tile that matches the given conditions
content.vb: Public Function GetRandomTile(random As Random, pos As Vector2, radius As Integer = 32, hasToBeOnLot As Boolean = False, sameRoom As Boolean = False, valid As Predicate(Of Point) = Nothing) As Point?
overload: TinyLife.World.Map.GetRandomTile*
nameWithType.vb: Map.GetRandomTile(Random, Vector2, Integer, Boolean, Boolean, Predicate(Of Point))
fullName.vb: TinyLife.World.Map.GetRandomTile(System.Random, Microsoft.Xna.Framework.Vector2, Integer, Boolean, Boolean, System.Predicate(Of Microsoft.Xna.Framework.Point))
name.vb: GetRandomTile(Random, Vector2, Integer, Boolean, Boolean, Predicate(Of Point))
- uid: TinyLife.World.Map.Validate(System.Action{System.String},System.Action{System.Single})
commentId: M:TinyLife.World.Map.Validate(System.Action{System.String},System.Action{System.Single})
id: Validate(System.Action{System.String},System.Action{System.Single})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: Validate(Action, Action)
nameWithType: Map.Validate(Action, Action)
fullName: TinyLife.World.Map.Validate(System.Action, System.Action)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Validate
path: ../TinyLife/World/Map.cs
startLine: 677
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThis method is called when this object is loaded from disk.\nWhen called on a map, each is validated, and roads and rooms are generated.\n"
example: []
syntax:
content: public void Validate(Action setState, Action setProgress)
parameters:
- id: setState
type: System.Action{System.String}
description: An action that accepts the current state of the loading process.
- id: setProgress
type: System.Action{System.Single}
description: An action that accepts the progress of the current state of the loading process.
content.vb: Public Sub Validate(setState As Action(Of String), setProgress As Action(Of Single))
overload: TinyLife.World.Map.Validate*
nameWithType.vb: Map.Validate(Action(Of String), Action(Of Single))
fullName.vb: TinyLife.World.Map.Validate(System.Action(Of String), System.Action(Of Single))
name.vb: Validate(Action(Of String), Action(Of Single))
- uid: TinyLife.World.Map.PostValidate(System.Action{System.String},System.Action{System.Single})
commentId: M:TinyLife.World.Map.PostValidate(System.Action{System.String},System.Action{System.Single})
id: PostValidate(System.Action{System.String},System.Action{System.Single})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: PostValidate(Action, Action)
nameWithType: Map.PostValidate(Action, Action)
fullName: TinyLife.World.Map.PostValidate(System.Action, System.Action)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: PostValidate
path: ../TinyLife/World/Map.cs
startLine: 735
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nThis method is called when this object is loaded from disk, after has already been called.\nWhen called on a map, post-load preloads like pathfinding pre-generation occurs, as well as .\n"
example: []
syntax:
content: public void PostValidate(Action setState, Action setProgress)
parameters:
- id: setState
type: System.Action{System.String}
description: An action that accepts the current state of the loading process.
- id: setProgress
type: System.Action{System.Single}
description: An action that accepts the progress of the current state of the loading process.
content.vb: Public Sub PostValidate(setState As Action(Of String), setProgress As Action(Of Single))
overload: TinyLife.World.Map.PostValidate*
nameWithType.vb: Map.PostValidate(Action(Of String), Action(Of Single))
fullName.vb: TinyLife.World.Map.PostValidate(System.Action(Of String), System.Action(Of Single))
name.vb: PostValidate(Action(Of String), Action(Of Single))
- uid: TinyLife.World.Map.GetRoom(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetRoom(Microsoft.Xna.Framework.Point)
id: GetRoom(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetRoom(Point)
nameWithType: Map.GetRoom(Point)
fullName: TinyLife.World.Map.GetRoom(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRoom
path: ../TinyLife/World/Map.cs
startLine: 752
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the room that the given position is contained in\n"
example: []
syntax:
content: public Room GetRoom(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to query
return:
type: TinyLife.World.Room
description: The room at that location, or null if there is none
content.vb: Public Function GetRoom(pos As Point) As Room
overload: TinyLife.World.Map.GetRoom*
- uid: TinyLife.World.Map.GetLot(System.Guid)
commentId: M:TinyLife.World.Map.GetLot(System.Guid)
id: GetLot(System.Guid)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetLot(Guid)
nameWithType: Map.GetLot(Guid)
fullName: TinyLife.World.Map.GetLot(System.Guid)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetLot
path: ../TinyLife/World/Map.cs
startLine: 766
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the lot with the given id on this map.\nThe returned lot's will equal the given id.\n"
example: []
syntax:
content: public Lot GetLot(Guid id)
parameters:
- id: id
type: System.Guid
description: The id that the lot should have
return:
type: TinyLife.World.Lot
description: The lot with the given id
content.vb: Public Function GetLot(id As Guid) As Lot
overload: TinyLife.World.Map.GetLot*
- uid: TinyLife.World.Map.GetLot(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetLot(Microsoft.Xna.Framework.Point)
id: GetLot(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetLot(Point)
nameWithType: Map.GetLot(Point)
fullName: TinyLife.World.Map.GetLot(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetLot
path: ../TinyLife/World/Map.cs
startLine: 777
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the lot that is present at the given position.\nThe lot returned will always have its contain the passed position.\n"
example: []
syntax:
content: public Lot GetLot(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to query
return:
type: TinyLife.World.Lot
description: The lot at that position, or null if there is none
content.vb: Public Function GetLot(pos As Point) As Lot
overload: TinyLife.World.Map.GetLot*
- uid: TinyLife.World.Map.AddLot(Microsoft.Xna.Framework.Rectangle)
commentId: M:TinyLife.World.Map.AddLot(Microsoft.Xna.Framework.Rectangle)
id: AddLot(Microsoft.Xna.Framework.Rectangle)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddLot(Rectangle)
nameWithType: Map.AddLot(Rectangle)
fullName: TinyLife.World.Map.AddLot(Microsoft.Xna.Framework.Rectangle)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddLot
path: ../TinyLife/World/Map.cs
startLine: 790
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds a new lot with the given area to this map's lots\n"
example: []
syntax:
content: public Lot AddLot(Rectangle area)
parameters:
- id: area
type: Microsoft.Xna.Framework.Rectangle
description: The area that the new lot should have
return:
type: TinyLife.World.Lot
description: The newly created lot
content.vb: Public Function AddLot(area As Rectangle) As Lot
overload: TinyLife.World.Map.AddLot*
- uid: TinyLife.World.Map.AddLot(TinyLife.World.Lot)
commentId: M:TinyLife.World.Map.AddLot(TinyLife.World.Lot)
id: AddLot(TinyLife.World.Lot)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddLot(Lot)
nameWithType: Map.AddLot(Lot)
fullName: TinyLife.World.Map.AddLot(TinyLife.World.Lot)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddLot
path: ../TinyLife/World/Map.cs
startLine: 800
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds the given lot to this map's lots.\n"
example: []
syntax:
content: public void AddLot(Lot lot)
parameters:
- id: lot
type: TinyLife.World.Lot
description: The lot to add.
content.vb: Public Sub AddLot(lot As Lot)
overload: TinyLife.World.Map.AddLot*
- uid: TinyLife.World.Map.RemoveLot(TinyLife.World.Lot)
commentId: M:TinyLife.World.Map.RemoveLot(TinyLife.World.Lot)
id: RemoveLot(TinyLife.World.Lot)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RemoveLot(Lot)
nameWithType: Map.RemoveLot(Lot)
fullName: TinyLife.World.Map.RemoveLot(TinyLife.World.Lot)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveLot
path: ../TinyLife/World/Map.cs
startLine: 808
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves the given lot from this map's lots\n"
example: []
syntax:
content: public void RemoveLot(Lot lot)
parameters:
- id: lot
type: TinyLife.World.Lot
description: The lot to remove
content.vb: Public Sub RemoveLot(lot As Lot)
overload: TinyLife.World.Map.RemoveLot*
- uid: TinyLife.World.Map.GetLots
commentId: M:TinyLife.World.Map.GetLots
id: GetLots
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetLots()
nameWithType: Map.GetLots()
fullName: TinyLife.World.Map.GetLots()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetLots
path: ../TinyLife/World/Map.cs
startLine: 816
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of all of the objects on this map\n"
example: []
syntax:
content: public IEnumerable GetLots()
return:
type: System.Collections.Generic.IEnumerable{TinyLife.World.Lot}
description: This map's lots
content.vb: Public Function GetLots() As IEnumerable(Of Lot)
overload: TinyLife.World.Map.GetLots*
- uid: TinyLife.World.Map.AddWall(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.AddWall(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
id: AddWall(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddWall(Point, Point)
nameWithType: Map.AddWall(Point, Point)
fullName: TinyLife.World.Map.AddWall(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddWall
path: ../TinyLife/World/Map.cs
startLine: 827
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds the given wall to the given position.\n"
example: []
syntax:
content: public bool AddWall(Point pos, Point secondPos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position that the new wall should have
- id: secondPos
type: Microsoft.Xna.Framework.Point
description: The second position that the new wall should have
return:
type: System.Boolean
description: Whether the wall could be added
content.vb: Public Function AddWall(pos As Point, secondPos As Point) As Boolean
overload: TinyLife.World.Map.AddWall*
- uid: TinyLife.World.Map.AddWall(TinyLife.World.Wall)
commentId: M:TinyLife.World.Map.AddWall(TinyLife.World.Wall)
id: AddWall(TinyLife.World.Wall)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddWall(Wall)
nameWithType: Map.AddWall(Wall)
fullName: TinyLife.World.Map.AddWall(TinyLife.World.Wall)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddWall
path: ../TinyLife/World/Map.cs
startLine: 838
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds the given wall to the given position.\nOptionally, the related to that wall is re-calculated.\n"
example: []
syntax:
content: public bool AddWall(Wall wall)
parameters:
- id: wall
type: TinyLife.World.Wall
description: The wall to add
return:
type: System.Boolean
description: Whether the wall could be added successfully
content.vb: Public Function AddWall(wall As Wall) As Boolean
overload: TinyLife.World.Map.AddWall*
- uid: TinyLife.World.Map.RemoveWall(TinyLife.World.Wall)
commentId: M:TinyLife.World.Map.RemoveWall(TinyLife.World.Wall)
id: RemoveWall(TinyLife.World.Wall)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RemoveWall(Wall)
nameWithType: Map.RemoveWall(Wall)
fullName: TinyLife.World.Map.RemoveWall(TinyLife.World.Wall)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveWall
path: ../TinyLife/World/Map.cs
startLine: 848
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves the given wall from the map\n"
example: []
syntax:
content: public bool RemoveWall(Wall wall)
parameters:
- id: wall
type: TinyLife.World.Wall
description: The wall to remove
return:
type: System.Boolean
description: Whether the wall was present on the map and could be removed
content.vb: Public Function RemoveWall(wall As Wall) As Boolean
overload: TinyLife.World.Map.RemoveWall*
- uid: TinyLife.World.Map.GetWallBetween(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetWallBetween(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
id: GetWallBetween(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetWallBetween(Point, Point)
nameWithType: Map.GetWallBetween(Point, Point)
fullName: TinyLife.World.Map.GetWallBetween(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetWallBetween
path: ../TinyLife/World/Map.cs
startLine: 864
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the wall between the pos
and secondPos
.\nA wall is between two positions if its are exactly those two positions, ignoring their order.\n"
example: []
syntax:
content: public Wall GetWallBetween(Point pos, Point secondPos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The first position
- id: secondPos
type: Microsoft.Xna.Framework.Point
description: The second position
return:
type: TinyLife.World.Wall
description: The wall between the two positions, or null if there is none
content.vb: Public Function GetWallBetween(pos As Point, secondPos As Point) As Wall
overload: TinyLife.World.Map.GetWallBetween*
- uid: TinyLife.World.Map.GetTile(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetTile(Microsoft.Xna.Framework.Point)
id: GetTile(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetTile(Point)
nameWithType: Map.GetTile(Point)
fullName: TinyLife.World.Map.GetTile(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetTile
path: ../TinyLife/World/Map.cs
startLine: 878
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the tile at the given position on this map\n"
example: []
syntax:
content: public Tile GetTile(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to query
return:
type: TinyLife.World.Tile
description: The tile at that position
content.vb: Public Function GetTile(pos As Point) As Tile
overload: TinyLife.World.Map.GetTile*
- uid: TinyLife.World.Map.SetTile(Microsoft.Xna.Framework.Point,TinyLife.World.Tile)
commentId: M:TinyLife.World.Map.SetTile(Microsoft.Xna.Framework.Point,TinyLife.World.Tile)
id: SetTile(Microsoft.Xna.Framework.Point,TinyLife.World.Tile)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: SetTile(Point, Tile)
nameWithType: Map.SetTile(Point, Tile)
fullName: TinyLife.World.Map.SetTile(Microsoft.Xna.Framework.Point, TinyLife.World.Tile)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: SetTile
path: ../TinyLife/World/Map.cs
startLine: 888
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nSets the tile at the given position to the given tile\n"
example: []
syntax:
content: public void SetTile(Point pos, Tile tile)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position
- id: tile
type: TinyLife.World.Tile
description: The tile
content.vb: Public Sub SetTile(pos As Point, tile As Tile)
overload: TinyLife.World.Map.SetTile*
- uid: TinyLife.World.Map.AddRoof(TinyLife.World.Roof)
commentId: M:TinyLife.World.Map.AddRoof(TinyLife.World.Roof)
id: AddRoof(TinyLife.World.Roof)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddRoof(Roof)
nameWithType: Map.AddRoof(Roof)
fullName: TinyLife.World.Map.AddRoof(TinyLife.World.Roof)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddRoof
path: ../TinyLife/World/Map.cs
startLine: 904
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds the given roof to this map\n"
example: []
syntax:
content: public void AddRoof(Roof roof)
parameters:
- id: roof
type: TinyLife.World.Roof
description: The roof to add
content.vb: Public Sub AddRoof(roof As Roof)
overload: TinyLife.World.Map.AddRoof*
- uid: TinyLife.World.Map.GetRoof(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetRoof(Microsoft.Xna.Framework.Point)
id: GetRoof(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetRoof(Point)
nameWithType: Map.GetRoof(Point)
fullName: TinyLife.World.Map.GetRoof(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRoof
path: ../TinyLife/World/Map.cs
startLine: 914
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nGets a whose area contains the given position\n"
example: []
syntax:
content: public Roof GetRoof(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to find a roof at
return:
type: TinyLife.World.Roof
description: The roof at that position, or null if there is none
content.vb: Public Function GetRoof(pos As Point) As Roof
overload: TinyLife.World.Map.GetRoof*
- uid: TinyLife.World.Map.GetRoofs(MLEM.Misc.RectangleF)
commentId: M:TinyLife.World.Map.GetRoofs(MLEM.Misc.RectangleF)
id: GetRoofs(MLEM.Misc.RectangleF)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetRoofs(RectangleF)
nameWithType: Map.GetRoofs(RectangleF)
fullName: TinyLife.World.Map.GetRoofs(MLEM.Misc.RectangleF)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRoofs
path: ../TinyLife/World/Map.cs
startLine: 929
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the roofs that intersect the given area
.\n"
example: []
syntax:
content: public IEnumerable GetRoofs(RectangleF area)
parameters:
- id: area
type: MLEM.Misc.RectangleF
description: The area to search for roofs in.
return:
type: System.Collections.Generic.IEnumerable{TinyLife.World.Roof}
description: The roofs in the given area.
content.vb: Public Function GetRoofs(area As RectangleF) As IEnumerable(Of Roof)
overload: TinyLife.World.Map.GetRoofs*
- uid: TinyLife.World.Map.RemoveRoof(TinyLife.World.Roof)
commentId: M:TinyLife.World.Map.RemoveRoof(TinyLife.World.Roof)
id: RemoveRoof(TinyLife.World.Roof)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RemoveRoof(Roof)
nameWithType: Map.RemoveRoof(Roof)
fullName: TinyLife.World.Map.RemoveRoof(TinyLife.World.Roof)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveRoof
path: ../TinyLife/World/Map.cs
startLine: 942
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves the given from this map\n"
example: []
syntax:
content: public void RemoveRoof(Roof roof)
parameters:
- id: roof
type: TinyLife.World.Roof
description: The roof to remove
content.vb: Public Sub RemoveRoof(roof As Roof)
overload: TinyLife.World.Map.RemoveRoof*
- uid: TinyLife.World.Map.GetObjects``1(MLEM.Misc.RectangleF)
commentId: M:TinyLife.World.Map.GetObjects``1(MLEM.Misc.RectangleF)
id: GetObjects``1(MLEM.Misc.RectangleF)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetObjects(RectangleF)
nameWithType: Map.GetObjects(RectangleF)
fullName: TinyLife.World.Map.GetObjects(MLEM.Misc.RectangleF)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetObjects
path: ../TinyLife/World/Map.cs
startLine: 953
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of objects that are present in the given area.\n"
example: []
syntax:
content: 'public IEnumerable GetObjects(RectangleF area) where T : MapObject'
parameters:
- id: area
type: MLEM.Misc.RectangleF
description: The area, in tile coordinates
typeParameters:
- id: T
description: The type that the objects need to have
return:
type: System.Collections.Generic.IEnumerable{{T}}
description: A set of objects that match the criteria
content.vb: Public Function GetObjects(Of T As MapObject)(area As RectangleF) As IEnumerable(Of T)
overload: TinyLife.World.Map.GetObjects*
nameWithType.vb: Map.GetObjects(Of T)(RectangleF)
fullName.vb: TinyLife.World.Map.GetObjects(Of T)(MLEM.Misc.RectangleF)
name.vb: GetObjects(Of T)(RectangleF)
- uid: TinyLife.World.Map.GetObject``1(System.Guid)
commentId: M:TinyLife.World.Map.GetObject``1(System.Guid)
id: GetObject``1(System.Guid)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetObject(Guid)
nameWithType: Map.GetObject(Guid)
fullName: TinyLife.World.Map.GetObject(System.Guid)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetObject
path: ../TinyLife/World/Map.cs
startLine: 969
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the object with the given id of the given type.\nIf there is no object with that id, or its type does not match, null is returned.\n"
example: []
syntax:
content: 'public T GetObject(Guid id) where T : MapObject'
parameters:
- id: id
type: System.Guid
description: The id that the returned object should have
typeParameters:
- id: T
description: The type that the object is expected to have
return:
type: '{T}'
description: The object, or null if there is no matching one
content.vb: Public Function GetObject(Of T As MapObject)(id As Guid) As T
overload: TinyLife.World.Map.GetObject*
nameWithType.vb: Map.GetObject(Of T)(Guid)
fullName.vb: TinyLife.World.Map.GetObject(Of T)(System.Guid)
name.vb: GetObject(Of T)(Guid)
- uid: TinyLife.World.Map.AddObject(TinyLife.Objects.MapObject)
commentId: M:TinyLife.World.Map.AddObject(TinyLife.Objects.MapObject)
id: AddObject(TinyLife.Objects.MapObject)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddObject(MapObject)
nameWithType: Map.AddObject(MapObject)
fullName: TinyLife.World.Map.AddObject(TinyLife.Objects.MapObject)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddObject
path: ../TinyLife/World/Map.cs
startLine: 981
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds the given object to this map.\nNote that, if the object's is already present on this map, this method will cause an exception.\n"
example: []
syntax:
content: public void AddObject(MapObject obj)
parameters:
- id: obj
type: TinyLife.Objects.MapObject
description: The object to add to this map
content.vb: Public Sub AddObject(obj As MapObject)
overload: TinyLife.World.Map.AddObject*
- uid: TinyLife.World.Map.RemoveObject(TinyLife.Objects.MapObject)
commentId: M:TinyLife.World.Map.RemoveObject(TinyLife.Objects.MapObject)
id: RemoveObject(TinyLife.Objects.MapObject)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RemoveObject(MapObject)
nameWithType: Map.RemoveObject(MapObject)
fullName: TinyLife.World.Map.RemoveObject(TinyLife.Objects.MapObject)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveObject
path: ../TinyLife/World/Map.cs
startLine: 1006
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves the given object from this map and its underlying .\nThis also calls .\n"
remarks: "\nWhen removing a object from the world entirely, including when putting it into furniture storage, should be used instead, or should be called in addition to this method.\nAs all of those methods also sever the relationships between furniture items and their parents (which is equivalent to calling ), they are usually preferred over this method, since parent-child relationships should not persist in many cases.\n"
example: []
syntax:
content: public void RemoveObject(MapObject obj)
parameters:
- id: obj
type: TinyLife.Objects.MapObject
description: The object to remove
content.vb: Public Sub RemoveObject(obj As MapObject)
overload: TinyLife.World.Map.RemoveObject*
- uid: TinyLife.World.Map.GetPeople
commentId: M:TinyLife.World.Map.GetPeople
id: GetPeople
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetPeople()
nameWithType: Map.GetPeople()
fullName: TinyLife.World.Map.GetPeople()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPeople
path: ../TinyLife/World/Map.cs
startLine: 1026
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns all of the objects that are on this map.\nNote that no are returned.\n"
example: []
syntax:
content: public IEnumerable GetPeople()
return:
type: System.Collections.Generic.IEnumerable{TinyLife.Objects.Person}
description: This map's people
content.vb: Public Function GetPeople() As IEnumerable(Of Person)
overload: TinyLife.World.Map.GetPeople*
- uid: TinyLife.World.Map.GetHousehold(TinyLife.Objects.Person)
commentId: M:TinyLife.World.Map.GetHousehold(TinyLife.Objects.Person)
id: GetHousehold(TinyLife.Objects.Person)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetHousehold(Person)
nameWithType: Map.GetHousehold(Person)
fullName: TinyLife.World.Map.GetHousehold(TinyLife.Objects.Person)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHousehold
path: ../TinyLife/World/Map.cs
startLine: 1038
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the household that the given lives in\n"
example: []
syntax:
content: public Household GetHousehold(Person person)
parameters:
- id: person
type: TinyLife.Objects.Person
description: The person to query
return:
type: TinyLife.World.Household
description: The person's household, or null if there is none
content.vb: Public Function GetHousehold(person As Person) As Household
overload: TinyLife.World.Map.GetHousehold*
- uid: TinyLife.World.Map.GetHousehold(TinyLife.World.Lot)
commentId: M:TinyLife.World.Map.GetHousehold(TinyLife.World.Lot)
id: GetHousehold(TinyLife.World.Lot)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetHousehold(Lot)
nameWithType: Map.GetHousehold(Lot)
fullName: TinyLife.World.Map.GetHousehold(TinyLife.World.Lot)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHousehold
path: ../TinyLife/World/Map.cs
startLine: 1051
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the household that lives on the given \n"
example: []
syntax:
content: public Household GetHousehold(Lot lot)
parameters:
- id: lot
type: TinyLife.World.Lot
description: The lot to query
return:
type: TinyLife.World.Household
description: The household that lives on the lot, or null if none lives there
content.vb: Public Function GetHousehold(lot As Lot) As Household
overload: TinyLife.World.Map.GetHousehold*
- uid: TinyLife.World.Map.AddHousehold(TinyLife.World.Lot)
commentId: M:TinyLife.World.Map.AddHousehold(TinyLife.World.Lot)
id: AddHousehold(TinyLife.World.Lot)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddHousehold(Lot)
nameWithType: Map.AddHousehold(Lot)
fullName: TinyLife.World.Map.AddHousehold(TinyLife.World.Lot)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddHousehold
path: ../TinyLife/World/Map.cs
startLine: 1064
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds a new household to this map by calling the constructor.\n"
example: []
syntax:
content: public Household AddHousehold(Lot lot)
parameters:
- id: lot
type: TinyLife.World.Lot
description: The lot that the household should live on
return:
type: TinyLife.World.Household
description: The newly created household
content.vb: Public Function AddHousehold(lot As Lot) As Household
overload: TinyLife.World.Map.AddHousehold*
- uid: TinyLife.World.Map.RemoveHousehold(TinyLife.World.Household)
commentId: M:TinyLife.World.Map.RemoveHousehold(TinyLife.World.Household)
id: RemoveHousehold(TinyLife.World.Household)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RemoveHousehold(Household)
nameWithType: Map.RemoveHousehold(Household)
fullName: TinyLife.World.Map.RemoveHousehold(TinyLife.World.Household)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveHousehold
path: ../TinyLife/World/Map.cs
startLine: 1074
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves the given household from this map\n"
example: []
syntax:
content: public void RemoveHousehold(Household household)
parameters:
- id: household
type: TinyLife.World.Household
description: The household to remove
content.vb: Public Sub RemoveHousehold(household As Household)
overload: TinyLife.World.Map.RemoveHousehold*
- uid: TinyLife.World.Map.GetHouseholds
commentId: M:TinyLife.World.Map.GetHouseholds
id: GetHouseholds
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetHouseholds()
nameWithType: Map.GetHouseholds()
fullName: TinyLife.World.Map.GetHouseholds()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHouseholds
path: ../TinyLife/World/Map.cs
startLine: 1082
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of all of the instances that live on this map\n"
example: []
syntax:
content: public IEnumerable GetHouseholds()
return:
type: System.Collections.Generic.IEnumerable{TinyLife.World.Household}
description: This map's households
content.vb: Public Function GetHouseholds() As IEnumerable(Of Household)
overload: TinyLife.World.Map.GetHouseholds*
- uid: TinyLife.World.Map.GetSection(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetSection(Microsoft.Xna.Framework.Point)
id: GetSection(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetSection(Point)
nameWithType: Map.GetSection(Point)
fullName: TinyLife.World.Map.GetSection(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetSection
path: ../TinyLife/World/Map.cs
startLine: 1092
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the at the given tile position\n"
example: []
syntax:
content: public MapSection GetSection(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The tile position
return:
type: TinyLife.World.MapSection
description: The section at that position
content.vb: Public Function GetSection(pos As Point) As MapSection
overload: TinyLife.World.Map.GetSection*
- uid: TinyLife.World.Map.GetSections(Microsoft.Xna.Framework.Point,System.Int32)
commentId: M:TinyLife.World.Map.GetSections(Microsoft.Xna.Framework.Point,System.Int32)
id: GetSections(Microsoft.Xna.Framework.Point,System.Int32)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetSections(Point, int)
nameWithType: Map.GetSections(Point, int)
fullName: TinyLife.World.Map.GetSections(Microsoft.Xna.Framework.Point, int)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetSections
path: ../TinyLife/World/Map.cs
startLine: 1104
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of sections that are contained in (or intersect with) the given area\n"
example: []
syntax:
content: public IEnumerable GetSections(Point point, int radiusIncrease)
parameters:
- id: point
type: Microsoft.Xna.Framework.Point
description: The position to find the section for, in tile coordinates
- id: radiusIncrease
type: System.Int32
description: The radius, in sections, that the search area should be extended by
return:
type: System.Collections.Generic.IEnumerable{TinyLife.World.MapSection}
description: A set of sections covered by this area
content.vb: Public Function GetSections(point As Point, radiusIncrease As Integer) As IEnumerable(Of MapSection)
overload: TinyLife.World.Map.GetSections*
nameWithType.vb: Map.GetSections(Point, Integer)
fullName.vb: TinyLife.World.Map.GetSections(Microsoft.Xna.Framework.Point, Integer)
name.vb: GetSections(Point, Integer)
- uid: TinyLife.World.Map.GetSections(MLEM.Misc.RectangleF,System.Int32)
commentId: M:TinyLife.World.Map.GetSections(MLEM.Misc.RectangleF,System.Int32)
id: GetSections(MLEM.Misc.RectangleF,System.Int32)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetSections(RectangleF, int)
nameWithType: Map.GetSections(RectangleF, int)
fullName: TinyLife.World.Map.GetSections(MLEM.Misc.RectangleF, int)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetSections
path: ../TinyLife/World/Map.cs
startLine: 1114
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of sections that are contained in (or intersect with) the given area\n"
example: []
syntax:
content: public IEnumerable GetSections(RectangleF area, int radiusIncrease)
parameters:
- id: area
type: MLEM.Misc.RectangleF
description: The area to find sections in, in tile coordinates
- id: radiusIncrease
type: System.Int32
description: The radius, in sections, that the search area should be extended by
return:
type: System.Collections.Generic.IEnumerable{TinyLife.World.MapSection}
description: A set of sections covered by this area
content.vb: Public Function GetSections(area As RectangleF, radiusIncrease As Integer) As IEnumerable(Of MapSection)
overload: TinyLife.World.Map.GetSections*
nameWithType.vb: Map.GetSections(RectangleF, Integer)
fullName.vb: TinyLife.World.Map.GetSections(MLEM.Misc.RectangleF, Integer)
name.vb: GetSections(RectangleF, Integer)
- uid: TinyLife.World.Map.MarkDirtyForPathfinding(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.MarkDirtyForPathfinding(Microsoft.Xna.Framework.Point)
id: MarkDirtyForPathfinding(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: MarkDirtyForPathfinding(Point)
nameWithType: Map.MarkDirtyForPathfinding(Point)
fullName: TinyLife.World.Map.MarkDirtyForPathfinding(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MarkDirtyForPathfinding
path: ../TinyLife/World/Map.cs
startLine: 1135
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nMarks the given position dirty for pathfinding purposes.\nWhen a path is found again close to this position, its cost () will be re-calculated.\nThis method is called by when it is placed for removed.\n"
example: []
syntax:
content: public void MarkDirtyForPathfinding(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to mark dirty
content.vb: Public Sub MarkDirtyForPathfinding(pos As Point)
overload: TinyLife.World.Map.MarkDirtyForPathfinding*
- uid: TinyLife.World.Map.GetPathCost(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.GetPathCost(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
id: GetPathCost(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetPathCost(Person, Point, Point)
nameWithType: Map.GetPathCost(Person, Point, Point)
fullName: TinyLife.World.Map.GetPathCost(TinyLife.Objects.Person, Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPathCost
path: ../TinyLife/World/Map.cs
startLine: 1156
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the cost to pathfind from the given current position to the given next position.\nNote that, for this method to return a proper result, nextPos
has to be directly or diagonally adjacent to currPos
.\n"
example: []
syntax:
content: public float GetPathCost(Person person, Point currPos, Point nextPos)
parameters:
- id: person
type: TinyLife.Objects.Person
description: The person to get the path cost for
- id: currPos
type: Microsoft.Xna.Framework.Point
description: The current position
- id: nextPos
type: Microsoft.Xna.Framework.Point
description: The next, neighboring position
return:
type: System.Single
description: The cost to path to this location
content.vb: Public Function GetPathCost(person As Person, currPos As Point, nextPos As Point) As Single
overload: TinyLife.World.Map.GetPathCost*
- uid: TinyLife.World.Map.CanWalkBetween(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.CanWalkBetween(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
id: CanWalkBetween(TinyLife.Objects.Person,Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: CanWalkBetween(Person, Point, Point)
nameWithType: Map.CanWalkBetween(Person, Point, Point)
fullName: TinyLife.World.Map.CanWalkBetween(TinyLife.Objects.Person, Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CanWalkBetween
path: ../TinyLife/World/Map.cs
startLine: 1178
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns whether the given person can walk between the two given positions.\nInternally, this method only queries whether is lower than or .\nNote that, for this method to return a proper result, nextPos
has to be directly or diagonally adjacent to currPos
.\n"
example: []
syntax:
content: public bool CanWalkBetween(Person person, Point currPos, Point nextPos)
parameters:
- id: person
type: TinyLife.Objects.Person
description: The person to get the path cost for
- id: currPos
type: Microsoft.Xna.Framework.Point
description: The current position
- id: nextPos
type: Microsoft.Xna.Framework.Point
description: The next, neighboring position
return:
type: System.Boolean
description: Whether the two locations can be walked between
content.vb: Public Function CanWalkBetween(person As Person, currPos As Point, nextPos As Point) As Boolean
overload: TinyLife.World.Map.CanWalkBetween*
- uid: TinyLife.World.Map.IsFreeSpot(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.IsFreeSpot(Microsoft.Xna.Framework.Point)
id: IsFreeSpot(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: IsFreeSpot(Point)
nameWithType: Map.IsFreeSpot(Point)
fullName: TinyLife.World.Map.IsFreeSpot(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsFreeSpot
path: ../TinyLife/World/Map.cs
startLine: 1187
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns whether or not the given position on the given map is free for a to stand in\n"
example: []
syntax:
content: public bool IsFreeSpot(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to query
return:
type: System.Boolean
description: Whether this position is free to stand on
content.vb: Public Function IsFreeSpot(pos As Point) As Boolean
overload: TinyLife.World.Map.IsFreeSpot*
- uid: TinyLife.World.Map.GetDeadPerson(System.Guid)
commentId: M:TinyLife.World.Map.GetDeadPerson(System.Guid)
id: GetDeadPerson(System.Guid)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetDeadPerson(Guid)
nameWithType: Map.GetDeadPerson(Guid)
fullName: TinyLife.World.Map.GetDeadPerson(System.Guid)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetDeadPerson
path: ../TinyLife/World/Map.cs
startLine: 1197
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a dead with the given id\n"
example: []
syntax:
content: public Person GetDeadPerson(Guid id)
parameters:
- id: id
type: System.Guid
description: The id to get a dead person by
return:
type: TinyLife.Objects.Person
description: The dead person instance, or null if there is none
content.vb: Public Function GetDeadPerson(id As Guid) As Person
overload: TinyLife.World.Map.GetDeadPerson*
- uid: TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,Microsoft.Xna.Framework.Vector2,System.Single,System.Single,System.Boolean,System.Boolean)
commentId: M:TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,Microsoft.Xna.Framework.Vector2,System.Single,System.Single,System.Boolean,System.Boolean)
id: PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,Microsoft.Xna.Framework.Vector2,System.Single,System.Single,System.Boolean,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: PlaySound(SoundEffect, Vector2, float, float, bool, bool)
nameWithType: Map.PlaySound(SoundEffect, Vector2, float, float, bool, bool)
fullName: TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect, Microsoft.Xna.Framework.Vector2, float, float, bool, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: PlaySound
path: ../TinyLife/World/Map.cs
startLine: 1217
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nPlays a sound at the given location (in world space) statically.\nIf the sound should move while being played, use instead.\nNote that the returned does not need to be disposed when it is finished playing.\n"
example: []
syntax:
content: public SoundEffectInstance PlaySound(SoundEffect sound, Vector2 pos, float volume = 1, float pitch = 0, bool loop = false, bool applyWorldSoundVolume = true)
parameters:
- id: sound
type: Microsoft.Xna.Framework.Audio.SoundEffect
description: The sound effect to play
- id: pos
type: Microsoft.Xna.Framework.Vector2
description: The position, in world space, to play the sound at
- id: volume
type: System.Single
description: The sound's volume, between 0 and 1 (default)
- id: pitch
type: System.Single
description: The sound's pitch, between -1, 0 (default) and 1
- id: loop
type: System.Boolean
description: Whether or not the sound should loop
- id: applyWorldSoundVolume
type: System.Boolean
description: Whether the should be applied to the passed volume
return:
type: Microsoft.Xna.Framework.Audio.SoundEffectInstance
description: The sound effect instance that is responsible for playing this sound, which can be stopped or paused
content.vb: Public Function PlaySound(sound As SoundEffect, pos As Vector2, volume As Single = 1, pitch As Single = 0, [loop] As Boolean = False, applyWorldSoundVolume As Boolean = True) As SoundEffectInstance
overload: TinyLife.World.Map.PlaySound*
nameWithType.vb: Map.PlaySound(SoundEffect, Vector2, Single, Single, Boolean, Boolean)
fullName.vb: TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect, Microsoft.Xna.Framework.Vector2, Single, Single, Boolean, Boolean)
name.vb: PlaySound(SoundEffect, Vector2, Single, Single, Boolean, Boolean)
- uid: TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,TinyLife.World.MapAudioEmitter,System.Single,System.Single,System.Boolean,System.Boolean)
commentId: M:TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,TinyLife.World.MapAudioEmitter,System.Single,System.Single,System.Boolean,System.Boolean)
id: PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect,TinyLife.World.MapAudioEmitter,System.Single,System.Single,System.Boolean,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: PlaySound(SoundEffect, MapAudioEmitter, float, float, bool, bool)
nameWithType: Map.PlaySound(SoundEffect, MapAudioEmitter, float, float, bool, bool)
fullName: TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect, TinyLife.World.MapAudioEmitter, float, float, bool, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: PlaySound
path: ../TinyLife/World/Map.cs
startLine: 1234
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nPlays a sound at the given location (in world space) with the given , whose can be updated by the caller.\nIf the sound should move in a static locatdion, use instead.\nNote that the returned does not need to be disposed when it is finished playing.\n"
example: []
syntax:
content: public SoundEffectInstance PlaySound(SoundEffect sound, MapAudioEmitter emitter, float volume = 1, float pitch = 0, bool loop = false, bool applyWorldSoundVolume = true)
parameters:
- id: sound
type: Microsoft.Xna.Framework.Audio.SoundEffect
description: The sound effect to play
- id: emitter
type: TinyLife.World.MapAudioEmitter
description: The audio emitter, whose should be set by the caller
- id: volume
type: System.Single
description: The sound's volume, between 0 and 1 (default)
- id: pitch
type: System.Single
description: The sound's pitch, between -1, 0 (default) and 1
- id: loop
type: System.Boolean
description: Whether or not the sound should loop
- id: applyWorldSoundVolume
type: System.Boolean
description: Whether the should be applied to the passed volume
return:
type: Microsoft.Xna.Framework.Audio.SoundEffectInstance
description: The sound effect instance that is responsible for playing this sound, which can be stopped or paused
content.vb: Public Function PlaySound(sound As SoundEffect, emitter As MapAudioEmitter, volume As Single = 1, pitch As Single = 0, [loop] As Boolean = False, applyWorldSoundVolume As Boolean = True) As SoundEffectInstance
overload: TinyLife.World.Map.PlaySound*
nameWithType.vb: Map.PlaySound(SoundEffect, MapAudioEmitter, Single, Single, Boolean, Boolean)
fullName.vb: TinyLife.World.Map.PlaySound(Microsoft.Xna.Framework.Audio.SoundEffect, TinyLife.World.MapAudioEmitter, Single, Single, Boolean, Boolean)
name.vb: PlaySound(SoundEffect, MapAudioEmitter, Single, Single, Boolean, Boolean)
- uid: TinyLife.World.Map.GetClosestFreeExitPoint(Microsoft.Xna.Framework.Vector2)
commentId: M:TinyLife.World.Map.GetClosestFreeExitPoint(Microsoft.Xna.Framework.Vector2)
id: GetClosestFreeExitPoint(Microsoft.Xna.Framework.Vector2)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetClosestFreeExitPoint(Vector2)
nameWithType: Map.GetClosestFreeExitPoint(Vector2)
fullName: TinyLife.World.Map.GetClosestFreeExitPoint(Microsoft.Xna.Framework.Vector2)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClosestFreeExitPoint
path: ../TinyLife/World/Map.cs
startLine: 1253
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the closest point to the given position
that the map can be exited from.\nAn exit point is a sidewalk next to a road, which additionally doesn't have any objects in the way.\n"
example: []
syntax:
content: public Point GetClosestFreeExitPoint(Vector2 position)
parameters:
- id: position
type: Microsoft.Xna.Framework.Vector2
description: The position.
return:
type: Microsoft.Xna.Framework.Point
description: The closest free exit point, which is expected to exist on every map.
content.vb: Public Function GetClosestFreeExitPoint(position As Vector2) As Point
overload: TinyLife.World.Map.GetClosestFreeExitPoint*
- uid: TinyLife.World.Map.GetExitRoads
commentId: M:TinyLife.World.Map.GetExitRoads
id: GetExitRoads
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetExitRoads()
nameWithType: Map.GetExitRoads()
fullName: TinyLife.World.Map.GetExitRoads()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetExitRoads
path: ../TinyLife/World/Map.cs
startLine: 1264
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the positions of all of the roads that are at the borders of this map and the that the map border is in\n"
example: []
syntax:
content: public IEnumerable<(Point Road, Direction2 Dir)> GetExitRoads()
return:
type: System.Collections.Generic.IEnumerable{System.ValueTuple{Microsoft.Xna.Framework.Point,MLEM.Misc.Direction2}}
description: All of the exit roads out of this map
content.vb: Public Function GetExitRoads() As IEnumerable(Of (Road As Point, Dir As Direction2))
overload: TinyLife.World.Map.GetExitRoads*
- uid: TinyLife.World.Map.GetWalls(MLEM.Misc.RectangleF)
commentId: M:TinyLife.World.Map.GetWalls(MLEM.Misc.RectangleF)
id: GetWalls(MLEM.Misc.RectangleF)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetWalls(RectangleF)
nameWithType: Map.GetWalls(RectangleF)
fullName: TinyLife.World.Map.GetWalls(MLEM.Misc.RectangleF)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetWalls
path: ../TinyLife/World/Map.cs
startLine: 1279
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of walls in the given area.\nAll objects for which at least one entry is contained in the area are returned.\n"
example: []
syntax:
content: public IEnumerable GetWalls(RectangleF area)
parameters:
- id: area
type: MLEM.Misc.RectangleF
description: The area to query for walls
return:
type: System.Collections.Generic.IEnumerable{TinyLife.World.Wall}
description: A set of walls in the area
content.vb: Public Function GetWalls(area As RectangleF) As IEnumerable(Of Wall)
overload: TinyLife.World.Map.GetWalls*
- uid: TinyLife.World.Map.ApplyCameraRotation(Microsoft.Xna.Framework.Vector2,System.Boolean,System.Nullable{MLEM.Misc.Direction2})
commentId: M:TinyLife.World.Map.ApplyCameraRotation(Microsoft.Xna.Framework.Vector2,System.Boolean,System.Nullable{MLEM.Misc.Direction2})
id: ApplyCameraRotation(Microsoft.Xna.Framework.Vector2,System.Boolean,System.Nullable{MLEM.Misc.Direction2})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: ApplyCameraRotation(Vector2, bool, Direction2?)
nameWithType: Map.ApplyCameraRotation(Vector2, bool, Direction2?)
fullName: TinyLife.World.Map.ApplyCameraRotation(Microsoft.Xna.Framework.Vector2, bool, MLEM.Misc.Direction2?)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ApplyCameraRotation
path: ../TinyLife/World/Map.cs
startLine: 1299
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nApplies the game's current to the given position in world space\n"
example: []
syntax:
content: public Vector2 ApplyCameraRotation(Vector2 worldPos, bool borderOffset = false, Direction2? cameraRotation = null)
parameters:
- id: worldPos
type: Microsoft.Xna.Framework.Vector2
description: The position, in world space
- id: borderOffset
type: System.Boolean
description: Whether a border offset should be applied. This is useful for tiles and other objects that aren't centered in the middle of their tiles, but that use the top-left corner of a tile for positioning.
- id: cameraRotation
type: System.Nullable{MLEM.Misc.Direction2}
description: An optional override camera rotation which should be used in favor of
return:
type: Microsoft.Xna.Framework.Vector2
description: The position in world space, but with camera rotation appplied
content.vb: Public Function ApplyCameraRotation(worldPos As Vector2, borderOffset As Boolean = False, cameraRotation As Direction2? = Nothing) As Vector2
overload: TinyLife.World.Map.ApplyCameraRotation*
nameWithType.vb: Map.ApplyCameraRotation(Vector2, Boolean, Direction2?)
fullName.vb: TinyLife.World.Map.ApplyCameraRotation(Microsoft.Xna.Framework.Vector2, Boolean, MLEM.Misc.Direction2?)
name.vb: ApplyCameraRotation(Vector2, Boolean, Direction2?)
- uid: TinyLife.World.Map.ApplyInverseCameraRotation(Microsoft.Xna.Framework.Vector2,System.Nullable{MLEM.Misc.Direction2})
commentId: M:TinyLife.World.Map.ApplyInverseCameraRotation(Microsoft.Xna.Framework.Vector2,System.Nullable{MLEM.Misc.Direction2})
id: ApplyInverseCameraRotation(Microsoft.Xna.Framework.Vector2,System.Nullable{MLEM.Misc.Direction2})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: ApplyInverseCameraRotation(Vector2, Direction2?)
nameWithType: Map.ApplyInverseCameraRotation(Vector2, Direction2?)
fullName: TinyLife.World.Map.ApplyInverseCameraRotation(Microsoft.Xna.Framework.Vector2, MLEM.Misc.Direction2?)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ApplyInverseCameraRotation
path: ../TinyLife/World/Map.cs
startLine: 1315
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nApplies the game's current to the given position in world space in reverse, undoing the action done by \n"
example: []
syntax:
content: public Vector2 ApplyInverseCameraRotation(Vector2 worldPos, Direction2? cameraRotation = null)
parameters:
- id: worldPos
type: Microsoft.Xna.Framework.Vector2
description: The position, in world space
- id: cameraRotation
type: System.Nullable{MLEM.Misc.Direction2}
description: An optional override camera rotation which should be used in favor of
return:
type: Microsoft.Xna.Framework.Vector2
description: The position in world space, but without camera rotation appplied
content.vb: Public Function ApplyInverseCameraRotation(worldPos As Vector2, cameraRotation As Direction2? = Nothing) As Vector2
overload: TinyLife.World.Map.ApplyInverseCameraRotation*
- uid: TinyLife.World.Map.OnCameraRotationChanged(MLEM.Misc.Direction2,MLEM.Misc.Direction2)
commentId: M:TinyLife.World.Map.OnCameraRotationChanged(MLEM.Misc.Direction2,MLEM.Misc.Direction2)
id: OnCameraRotationChanged(MLEM.Misc.Direction2,MLEM.Misc.Direction2)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: OnCameraRotationChanged(Direction2, Direction2)
nameWithType: Map.OnCameraRotationChanged(Direction2, Direction2)
fullName: TinyLife.World.Map.OnCameraRotationChanged(MLEM.Misc.Direction2, MLEM.Misc.Direction2)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: OnCameraRotationChanged
path: ../TinyLife/World/Map.cs
startLine: 1330
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nA method that is called when is changed.\nWhen changing camera rotation manually, this method should be called along with the change.\n"
example: []
syntax:
content: public void OnCameraRotationChanged(Direction2 oldRotation, Direction2 newRotation)
parameters:
- id: oldRotation
type: MLEM.Misc.Direction2
description: ''
- id: newRotation
type: MLEM.Misc.Direction2
description: ''
content.vb: Public Sub OnCameraRotationChanged(oldRotation As Direction2, newRotation As Direction2)
overload: TinyLife.World.Map.OnCameraRotationChanged*
- uid: TinyLife.World.Map.AddLight(TinyLife.Objects.Light)
commentId: M:TinyLife.World.Map.AddLight(TinyLife.Objects.Light)
id: AddLight(TinyLife.Objects.Light)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddLight(Light)
nameWithType: Map.AddLight(Light)
fullName: TinyLife.World.Map.AddLight(TinyLife.Objects.Light)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddLight
path: ../TinyLife/World/Map.cs
startLine: 1353
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds the given light to the world at its \n"
example: []
syntax:
content: public void AddLight(Light light)
parameters:
- id: light
type: TinyLife.Objects.Light
description: The light to add
content.vb: Public Sub AddLight(light As Light)
overload: TinyLife.World.Map.AddLight*
- uid: TinyLife.World.Map.RemoveLight(TinyLife.Objects.Light)
commentId: M:TinyLife.World.Map.RemoveLight(TinyLife.Objects.Light)
id: RemoveLight(TinyLife.Objects.Light)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: RemoveLight(Light)
nameWithType: Map.RemoveLight(Light)
fullName: TinyLife.World.Map.RemoveLight(TinyLife.Objects.Light)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveLight
path: ../TinyLife/World/Map.cs
startLine: 1362
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves the given light from the world\n"
example: []
syntax:
content: public void RemoveLight(Light light)
parameters:
- id: light
type: TinyLife.Objects.Light
description: The light to remove
content.vb: Public Sub RemoveLight(light As Light)
overload: TinyLife.World.Map.RemoveLight*
- uid: TinyLife.World.Map.MoveEverything(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Rectangle,System.Boolean,TinyLife.World.Tile)
commentId: M:TinyLife.World.Map.MoveEverything(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Rectangle,System.Boolean,TinyLife.World.Tile)
id: MoveEverything(Microsoft.Xna.Framework.Point,Microsoft.Xna.Framework.Rectangle,System.Boolean,TinyLife.World.Tile)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: MoveEverything(Point, Rectangle, bool, Tile)
nameWithType: Map.MoveEverything(Point, Rectangle, bool, Tile)
fullName: TinyLife.World.Map.MoveEverything(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Rectangle, bool, TinyLife.World.Tile)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MoveEverything
path: ../TinyLife/World/Map.cs
startLine: 1374
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nMoves all of the objects, walls, tiles and roofs in the given area
in the world, optionally moving the lots as well\n"
example: []
syntax:
content: public void MoveEverything(Point offset, Rectangle area, bool moveLots, Tile defaultTile = null)
parameters:
- id: offset
type: Microsoft.Xna.Framework.Point
description: The offset to move things by
- id: area
type: Microsoft.Xna.Framework.Rectangle
description: The area to move
- id: moveLots
type: System.Boolean
description: Whether lots should be moved as well. The content of lots will be moved regardless of this parameter
- id: defaultTile
type: TinyLife.World.Tile
description: The default tile to replace the moved ground with.
content.vb: Public Sub MoveEverything(offset As Point, area As Rectangle, moveLots As Boolean, defaultTile As Tile = Nothing)
overload: TinyLife.World.Map.MoveEverything*
nameWithType.vb: Map.MoveEverything(Point, Rectangle, Boolean, Tile)
fullName.vb: TinyLife.World.Map.MoveEverything(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Rectangle, Boolean, TinyLife.World.Tile)
name.vb: MoveEverything(Point, Rectangle, Boolean, Tile)
- uid: TinyLife.World.Map.ValidateExistingRooms(Microsoft.Xna.Framework.Point[])
commentId: M:TinyLife.World.Map.ValidateExistingRooms(Microsoft.Xna.Framework.Point[])
id: ValidateExistingRooms(Microsoft.Xna.Framework.Point[])
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: ValidateExistingRooms(params Point[])
nameWithType: Map.ValidateExistingRooms(params Point[])
fullName: TinyLife.World.Map.ValidateExistingRooms(params Microsoft.Xna.Framework.Point[])
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ValidateExistingRooms
path: ../TinyLife/World/Map.cs
startLine: 1435
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nRemoves all outdated rooms on this map after calling their methods.\n"
example: []
syntax:
content: public void ValidateExistingRooms(params Point[] positions)
parameters:
- id: positions
type: Microsoft.Xna.Framework.Point[]
description: The positions around which to validate rooms
content.vb: Public Sub ValidateExistingRooms(ParamArray positions As Point())
overload: TinyLife.World.Map.ValidateExistingRooms*
nameWithType.vb: Map.ValidateExistingRooms(ParamArray Point())
fullName.vb: TinyLife.World.Map.ValidateExistingRooms(ParamArray Microsoft.Xna.Framework.Point())
name.vb: ValidateExistingRooms(ParamArray Point())
- uid: TinyLife.World.Map.AddNewRoomsAndValidateExisting(Microsoft.Xna.Framework.Point[],TinyLife.Tools.UndoableAction,System.Boolean)
commentId: M:TinyLife.World.Map.AddNewRoomsAndValidateExisting(Microsoft.Xna.Framework.Point[],TinyLife.Tools.UndoableAction,System.Boolean)
id: AddNewRoomsAndValidateExisting(Microsoft.Xna.Framework.Point[],TinyLife.Tools.UndoableAction,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: AddNewRoomsAndValidateExisting(Point[], UndoableAction, bool)
nameWithType: Map.AddNewRoomsAndValidateExisting(Point[], UndoableAction, bool)
fullName: TinyLife.World.Map.AddNewRoomsAndValidateExisting(Microsoft.Xna.Framework.Point[], TinyLife.Tools.UndoableAction, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddNewRoomsAndValidateExisting
path: ../TinyLife/World/Map.cs
startLine: 1454
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nAdds new objects to the given positions if there are valid rooms present, and validates additional rooms, checking for whether they should still exists.\n"
example: []
syntax:
content: public void AddNewRoomsAndValidateExisting(Point[] positions, UndoableAction action, bool editWorld = false)
parameters:
- id: positions
type: Microsoft.Xna.Framework.Point[]
description: The positions that should be inspected for possible rooms.
- id: action
type: TinyLife.Tools.UndoableAction
description: The undoable action that this method should add its actions to. If this method should be executed immediately, use the immediate constructor.
- id: editWorld
type: System.Boolean
description: Whether the world should be edited when adding new rooms, which involves adding concrete floors and a roof to new rooms.
content.vb: Public Sub AddNewRoomsAndValidateExisting(positions As Point(), action As UndoableAction, editWorld As Boolean = False)
overload: TinyLife.World.Map.AddNewRoomsAndValidateExisting*
nameWithType.vb: Map.AddNewRoomsAndValidateExisting(Point(), UndoableAction, Boolean)
fullName.vb: TinyLife.World.Map.AddNewRoomsAndValidateExisting(Microsoft.Xna.Framework.Point(), TinyLife.Tools.UndoableAction, Boolean)
name.vb: AddNewRoomsAndValidateExisting(Point(), UndoableAction, Boolean)
- uid: TinyLife.World.Map.GetRegularVisitors
commentId: M:TinyLife.World.Map.GetRegularVisitors
id: GetRegularVisitors
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetRegularVisitors()
nameWithType: Map.GetRegularVisitors()
fullName: TinyLife.World.Map.GetRegularVisitors()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRegularVisitors
path: ../TinyLife/World/Map.cs
startLine: 1508
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the set of instances in the world that are regular visitors.\nThis method is a shorthand for and .\nNote that dead regular visitors are not returned.\n"
example: []
syntax:
content: public IEnumerable GetRegularVisitors()
return:
type: System.Collections.Generic.IEnumerable{TinyLife.Objects.Person}
description: This map's regular visitors
content.vb: Public Function GetRegularVisitors() As IEnumerable(Of Person)
overload: TinyLife.World.Map.GetRegularVisitors*
- uid: TinyLife.World.Map.UpdateExternalPeople(System.Action{System.Single})
commentId: M:TinyLife.World.Map.UpdateExternalPeople(System.Action{System.Single})
id: UpdateExternalPeople(System.Action{System.Single})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: UpdateExternalPeople(Action)
nameWithType: Map.UpdateExternalPeople(Action)
fullName: TinyLife.World.Map.UpdateExternalPeople(System.Action)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: UpdateExternalPeople
path: ../TinyLife/World/Map.cs
startLine: 1520
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nUpdates this map's regular visitors, based on the value, and also assigns random people to empty slots.\nThis method does three things: It removes visitors that have been added into the world by the player (through household imports),\nit removes visitors if the current number of visitors is greater than the maximum,\nand it attempts to add new visitors if it is lower than the maximum and people in empty slots.\nThis method is called automatically in variouos locations.\n"
example: []
syntax:
content: public void UpdateExternalPeople(Action setProgress = null)
parameters:
- id: setProgress
type: System.Action{System.Single}
content.vb: Public Sub UpdateExternalPeople(setProgress As Action(Of Single) = Nothing)
overload: TinyLife.World.Map.UpdateExternalPeople*
nameWithType.vb: Map.UpdateExternalPeople(Action(Of Single))
fullName.vb: TinyLife.World.Map.UpdateExternalPeople(System.Action(Of Single))
name.vb: UpdateExternalPeople(Action(Of Single))
- uid: TinyLife.World.Map.GetAllLotEmployments
commentId: M:TinyLife.World.Map.GetAllLotEmployments
id: GetAllLotEmployments
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetAllLotEmployments()
nameWithType: Map.GetAllLotEmployments()
fullName: TinyLife.World.Map.GetAllLotEmployments()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetAllLotEmployments
path: ../TinyLife/World/Map.cs
startLine: 1603
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns a set of all instances and their on the map.\nNote that are also returned, with their component being set to null.\n"
example: []
syntax:
content: public IEnumerable<(LotEmployment Employment, Lot Lot)> GetAllLotEmployments()
return:
type: System.Collections.Generic.IEnumerable{System.ValueTuple{TinyLife.World.LotEmployment,TinyLife.World.Lot}}
description: All lot employments on this map
content.vb: Public Function GetAllLotEmployments() As IEnumerable(Of (Employment As LotEmployment, Lot As Lot))
overload: TinyLife.World.Map.GetAllLotEmployments*
- uid: TinyLife.World.Map.MarkTileDirtyForDrawing(Microsoft.Xna.Framework.Point)
commentId: M:TinyLife.World.Map.MarkTileDirtyForDrawing(Microsoft.Xna.Framework.Point)
id: MarkTileDirtyForDrawing(Microsoft.Xna.Framework.Point)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: MarkTileDirtyForDrawing(Point)
nameWithType: Map.MarkTileDirtyForDrawing(Point)
fullName: TinyLife.World.Map.MarkTileDirtyForDrawing(Microsoft.Xna.Framework.Point)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MarkTileDirtyForDrawing
path: ../TinyLife/World/Map.cs
startLine: 1616
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nMarks the given position dirty for drawing, which causes the underlying to re-render the tile.\nThis method is used automatically by and .\n"
example: []
syntax:
content: public void MarkTileDirtyForDrawing(Point pos)
parameters:
- id: pos
type: Microsoft.Xna.Framework.Point
description: The position to mark dirty.
content.vb: Public Sub MarkTileDirtyForDrawing(pos As Point)
overload: TinyLife.World.Map.MarkTileDirtyForDrawing*
- uid: TinyLife.World.Map.MarkObjectDirtyForDrawing(TinyLife.Objects.MapObject,TinyLife.World.MapSection,System.Boolean)
commentId: M:TinyLife.World.Map.MarkObjectDirtyForDrawing(TinyLife.Objects.MapObject,TinyLife.World.MapSection,System.Boolean)
id: MarkObjectDirtyForDrawing(TinyLife.Objects.MapObject,TinyLife.World.MapSection,System.Boolean)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: MarkObjectDirtyForDrawing(MapObject, MapSection, bool)
nameWithType: Map.MarkObjectDirtyForDrawing(MapObject, MapSection, bool)
fullName: TinyLife.World.Map.MarkObjectDirtyForDrawing(TinyLife.Objects.MapObject, TinyLife.World.MapSection, bool)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MarkObjectDirtyForDrawing
path: ../TinyLife/World/Map.cs
startLine: 1632
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nMarks the given dirty for drawing, which causes the underlying to re-render the object if its visibility is .\nThis method is used automatically by and , as well as when a static object's changes.\n"
example: []
syntax:
content: public void MarkObjectDirtyForDrawing(MapObject obj, MapSection section = null, bool removedFromSection = false)
parameters:
- id: obj
type: TinyLife.Objects.MapObject
description: The object to mark dirty.
- id: section
type: TinyLife.World.MapSection
description: The section that the object is expected to be in, or null to determine the section automatically.
- id: removedFromSection
type: System.Boolean
description: Whether the object was removed, and should not be redrawn in the section
.
content.vb: Public Sub MarkObjectDirtyForDrawing(obj As MapObject, section As MapSection = Nothing, removedFromSection As Boolean = False)
overload: TinyLife.World.Map.MarkObjectDirtyForDrawing*
nameWithType.vb: Map.MarkObjectDirtyForDrawing(MapObject, MapSection, Boolean)
fullName.vb: TinyLife.World.Map.MarkObjectDirtyForDrawing(TinyLife.Objects.MapObject, TinyLife.World.MapSection, Boolean)
name.vb: MarkObjectDirtyForDrawing(MapObject, MapSection, Boolean)
- uid: TinyLife.World.Map.LoadStaticMap(System.String,System.Boolean,System.Action{System.String},System.Action{System.Single})
commentId: M:TinyLife.World.Map.LoadStaticMap(System.String,System.Boolean,System.Action{System.String},System.Action{System.Single})
id: LoadStaticMap(System.String,System.Boolean,System.Action{System.String},System.Action{System.Single})
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: LoadStaticMap(string, bool, Action, Action)
nameWithType: Map.LoadStaticMap(string, bool, Action, Action)
fullName: TinyLife.World.Map.LoadStaticMap(string, bool, System.Action, System.Action)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: LoadStaticMap
path: ../TinyLife/World/Map.cs
startLine: 2187
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nLoads a static map with the given name from the game's content directory.\nNote that the map is not post-validated ().\n"
example: []
syntax:
content: public static Map LoadStaticMap(string name, bool custom, Action setState, Action setProgress)
parameters:
- id: name
type: System.String
description: The name of the static map to load.
- id: custom
type: System.Boolean
description: Whether the map is in the custom maps directory (or a default map).
- id: setState
type: System.Action{System.String}
description: An action that accepts the current state of the loading process.
- id: setProgress
type: System.Action{System.Single}
description: An action that accepts the progress of the current state of the loading process.
return:
type: TinyLife.World.Map
description: The static map that was loaded.
content.vb: Public Shared Function LoadStaticMap(name As String, custom As Boolean, setState As Action(Of String), setProgress As Action(Of Single)) As Map
overload: TinyLife.World.Map.LoadStaticMap*
nameWithType.vb: Map.LoadStaticMap(String, Boolean, Action(Of String), Action(Of Single))
fullName.vb: TinyLife.World.Map.LoadStaticMap(String, Boolean, System.Action(Of String), System.Action(Of Single))
name.vb: LoadStaticMap(String, Boolean, Action(Of String), Action(Of Single))
- uid: TinyLife.World.Map.IsLotHidden(TinyLife.World.Lot)
commentId: M:TinyLife.World.Map.IsLotHidden(TinyLife.World.Lot)
id: IsLotHidden(TinyLife.World.Lot)
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: IsLotHidden(Lot)
nameWithType: Map.IsLotHidden(Lot)
fullName: TinyLife.World.Map.IsLotHidden(TinyLife.World.Lot)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsLotHidden
path: ../TinyLife/World/Map.cs
startLine: 2242
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nWhether the given lot is hidden from the camera.\nNote that the result of this method will be different from , since this method also checks for the ShowAllLots cheat.\nFor ease of use, this method returns false if lot
is null.\n"
example: []
syntax:
content: public static bool IsLotHidden(Lot lot)
parameters:
- id: lot
type: TinyLife.World.Lot
description: ''
return:
type: System.Boolean
description: ''
content.vb: Public Shared Function IsLotHidden(lot As Lot) As Boolean
overload: TinyLife.World.Map.IsLotHidden*
- uid: TinyLife.World.Map.GetMapSampler
commentId: M:TinyLife.World.Map.GetMapSampler
id: GetMapSampler
parent: TinyLife.World.Map
langs:
- csharp
- vb
name: GetMapSampler()
nameWithType: Map.GetMapSampler()
fullName: TinyLife.World.Map.GetMapSampler()
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetMapSampler
path: ../TinyLife/World/Map.cs
startLine: 2260
assemblies:
- Tiny Life
namespace: TinyLife.World
summary: "\nReturns the to use when rendering the map.\nThis value is determined by , as well as the 's scale.\n"
example: []
syntax:
content: public static SamplerState GetMapSampler()
return:
type: Microsoft.Xna.Framework.Graphics.SamplerState
description: The sampler state to use when rendering the map.
content.vb: Public Shared Function GetMapSampler() As SamplerState
overload: TinyLife.World.Map.GetMapSampler*
references:
- uid: TinyLife.World.MapSection
commentId: T:TinyLife.World.MapSection
parent: TinyLife.World
name: MapSection
nameWithType: MapSection
fullName: TinyLife.World.MapSection
- uid: TinyLife.World
commentId: N:TinyLife.World
name: TinyLife.World
nameWithType: TinyLife.World
fullName: TinyLife.World
spec.csharp:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.World
name: World
spec.vb:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.World
name: World
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
name: object
nameWithType: object
fullName: object
nameWithType.vb: Object
fullName.vb: Object
name.vb: Object
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder
commentId: T:MLEM.Data.Json.JsonTypeSafeGenericDataHolder
parent: MLEM.Data.Json
isExternal: true
name: JsonTypeSafeGenericDataHolder
nameWithType: JsonTypeSafeGenericDataHolder
fullName: MLEM.Data.Json.JsonTypeSafeGenericDataHolder
- uid: MLEM.Misc.IGenericDataHolder
commentId: T:MLEM.Misc.IGenericDataHolder
parent: MLEM.Misc
isExternal: true
name: IGenericDataHolder
nameWithType: IGenericDataHolder
fullName: MLEM.Misc.IGenericDataHolder
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(System.String,System.Object)
commentId: M:MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(System.String,System.Object)
parent: MLEM.Data.Json.JsonTypeSafeGenericDataHolder
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
name: SetData(string, object)
nameWithType: JsonTypeSafeGenericDataHolder.SetData(string, object)
fullName: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(string, object)
nameWithType.vb: JsonTypeSafeGenericDataHolder.SetData(String, Object)
fullName.vb: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(String, Object)
name.vb: SetData(String, Object)
spec.csharp:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(System.String,System.Object)
name: SetData
isExternal: true
- name: (
- uid: System.String
name: string
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(System.String,System.Object)
name: SetData
isExternal: true
- name: (
- uid: System.String
name: String
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData``1(System.String,{T})
commentId: M:MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData``1(System.String,``0)
parent: MLEM.Data.Json.JsonTypeSafeGenericDataHolder
definition: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData``1(System.String,``0)
href: https://learn.microsoft.com/dotnet/api/system.string
name: SetData(string, T)
nameWithType: JsonTypeSafeGenericDataHolder.SetData(string, T)
fullName: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(string, T)
nameWithType.vb: JsonTypeSafeGenericDataHolder.SetData(Of T)(String, T)
fullName.vb: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(Of T)(String, T)
name.vb: SetData(Of T)(String, T)
spec.csharp:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData``1(System.String,``0)
name: SetData
isExternal: true
- name: <
- name: T
- name: '>'
- name: (
- uid: System.String
name: string
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: ','
- name: " "
- name: T
- name: )
spec.vb:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData``1(System.String,``0)
name: SetData
isExternal: true
- name: (
- name: Of
- name: " "
- name: T
- name: )
- name: (
- uid: System.String
name: String
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: ','
- name: " "
- name: T
- name: )
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData``1(System.String)
commentId: M:MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData``1(System.String)
parent: MLEM.Data.Json.JsonTypeSafeGenericDataHolder
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
name: GetData(string)
nameWithType: JsonTypeSafeGenericDataHolder.GetData(string)
fullName: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData(string)
nameWithType.vb: JsonTypeSafeGenericDataHolder.GetData(Of T)(String)
fullName.vb: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData(Of T)(String)
name.vb: GetData(Of T)(String)
spec.csharp:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData``1(System.String)
name: GetData
isExternal: true
- name: <
- name: T
- name: '>'
- name: (
- uid: System.String
name: string
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: )
spec.vb:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData``1(System.String)
name: GetData
isExternal: true
- name: (
- name: Of
- name: " "
- name: T
- name: )
- name: (
- uid: System.String
name: String
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: )
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys
commentId: M:MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys
parent: MLEM.Data.Json.JsonTypeSafeGenericDataHolder
isExternal: true
name: GetDataKeys()
nameWithType: JsonTypeSafeGenericDataHolder.GetDataKeys()
fullName: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys()
spec.csharp:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys
name: GetDataKeys
isExternal: true
- name: (
- name: )
spec.vb:
- uid: MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys
name: GetDataKeys
isExternal: true
- name: (
- name: )
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
name: Equals(object)
nameWithType: object.Equals(object)
fullName: object.Equals(object)
nameWithType.vb: Object.Equals(Object)
fullName.vb: Object.Equals(Object)
name.vb: Equals(Object)
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
name: Equals(object, object)
nameWithType: object.Equals(object, object)
fullName: object.Equals(object, object)
nameWithType.vb: Object.Equals(Object, Object)
fullName.vb: Object.Equals(Object, Object)
name.vb: Equals(Object, Object)
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
name: GetHashCode()
nameWithType: object.GetHashCode()
fullName: object.GetHashCode()
nameWithType.vb: Object.GetHashCode()
fullName.vb: Object.GetHashCode()
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
name: GetType()
nameWithType: object.GetType()
fullName: object.GetType()
nameWithType.vb: Object.GetType()
fullName.vb: Object.GetType()
spec.csharp:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
spec.vb:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
name: MemberwiseClone()
nameWithType: object.MemberwiseClone()
fullName: object.MemberwiseClone()
nameWithType.vb: Object.MemberwiseClone()
fullName.vb: Object.MemberwiseClone()
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
name: ReferenceEquals(object, object)
nameWithType: object.ReferenceEquals(object, object)
fullName: object.ReferenceEquals(object, object)
nameWithType.vb: Object.ReferenceEquals(Object, Object)
fullName.vb: Object.ReferenceEquals(Object, Object)
name.vb: ReferenceEquals(Object, Object)
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
name: ToString()
nameWithType: object.ToString()
fullName: object.ToString()
nameWithType.vb: Object.ToString()
fullName.vb: Object.ToString()
spec.csharp:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
spec.vb:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
- uid: TinyLife.World.Map.TinyLife.Utilities.Extensions.JsonCopy``1
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
parent: TinyLife.Utilities.Extensions
definition: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
name: JsonCopy