diff --git a/Changelog.md b/Changelog.md
index 7b549cd..a4cab4b 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,3 +1,15 @@
+# 0.24.1
+> Various Fixes and Improvements
+
+Improvements
+- Made randomly generated outfits match their intention better
+- Made lots replace the ground with their default tile type rather than grass when moving them
+- Added info text to homes that are too expensive for starter households
+- Added a notification for when a mod fails to load
+
+Fixes
+- Fixed mods being unable to contain custom furniture
+
# 0.24.0
![](media/changelog/0.24.0.png)
diff --git a/docs/api/.manifest b/docs/api/.manifest
index 965858c..383ccef 100644
--- a/docs/api/.manifest
+++ b/docs/api/.manifest
@@ -2844,6 +2844,7 @@
"TinyLife.World.Lot.CanImport(TinyLife.World.ExportedLot)": "TinyLife.World.Lot.yml",
"TinyLife.World.Lot.Export": "TinyLife.World.Lot.yml",
"TinyLife.World.Lot.GetCoveredArea": "TinyLife.World.Lot.yml",
+ "TinyLife.World.Lot.GetDefaultTile": "TinyLife.World.Lot.yml",
"TinyLife.World.Lot.GetFrontDoor(Vector2)": "TinyLife.World.Lot.yml",
"TinyLife.World.Lot.GetHomeLocation(TinyLife.Objects.Person)": "TinyLife.World.Lot.yml",
"TinyLife.World.Lot.GetObjects``1": "TinyLife.World.Lot.yml",
@@ -2926,7 +2927,7 @@
"TinyLife.World.Map.GetClosestEmptyTile(Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.GetClosestExitRoad(Vector2)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.GetClosestRoad(Point,System.Int32)": "TinyLife.World.Map.yml",
- "TinyLife.World.Map.GetClosestSidewalk(Point,Vector2)": "TinyLife.World.Map.yml",
+ "TinyLife.World.Map.GetClosestRoadsidePosition(Point,Vector2)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.GetDeadPerson(System.Guid)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.GetDepth(Vector2,System.Single,System.Boolean,System.Boolean,System.Boolean)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.GetExitRoads": "TinyLife.World.Map.yml",
@@ -2961,7 +2962,7 @@
"TinyLife.World.Map.MailToSend": "TinyLife.World.Map.yml",
"TinyLife.World.Map.MarkDirtyForPathfinding(Point)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.MarkTileDirtyForDrawing(Point)": "TinyLife.World.Map.yml",
- "TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean)": "TinyLife.World.Map.yml",
+ "TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean,TinyLife.World.Tile)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.OnCameraRotationChanged(MLEM.Misc.Direction2,MLEM.Misc.Direction2)": "TinyLife.World.Map.yml",
"TinyLife.World.Map.OnObjectAdded": "TinyLife.World.Map.yml",
"TinyLife.World.Map.OnObjectRemoved": "TinyLife.World.Map.yml",
diff --git a/docs/api/TinyLife.GameImpl.GameMode.yml b/docs/api/TinyLife.GameImpl.GameMode.yml
index 34344ae..c37f5fb 100644
--- a/docs/api/TinyLife.GameImpl.GameMode.yml
+++ b/docs/api/TinyLife.GameImpl.GameMode.yml
@@ -25,7 +25,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GameMode
path: ../TinyLife/GameImpl.cs
- startLine: 909
+ startLine: 915
assemblies:
- Tiny Life
namespace: TinyLife
@@ -60,7 +60,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Splash
path: ../TinyLife/GameImpl.cs
- startLine: 912
+ startLine: 918
assemblies:
- Tiny Life
namespace: TinyLife
@@ -94,7 +94,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MainMenu
path: ../TinyLife/GameImpl.cs
- startLine: 914
+ startLine: 920
assemblies:
- Tiny Life
namespace: TinyLife
@@ -128,7 +128,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: SelectHousehold
path: ../TinyLife/GameImpl.cs
- startLine: 916
+ startLine: 922
assemblies:
- Tiny Life
namespace: TinyLife
@@ -162,7 +162,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: InGameHousehold
path: ../TinyLife/GameImpl.cs
- startLine: 918
+ startLine: 924
assemblies:
- Tiny Life
namespace: TinyLife
@@ -196,7 +196,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: BuildOnly
path: ../TinyLife/GameImpl.cs
- startLine: 920
+ startLine: 926
assemblies:
- Tiny Life
namespace: TinyLife
@@ -230,7 +230,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CharacterCreation
path: ../TinyLife/GameImpl.cs
- startLine: 922
+ startLine: 928
assemblies:
- Tiny Life
namespace: TinyLife
diff --git a/docs/api/TinyLife.GameImpl.yml b/docs/api/TinyLife.GameImpl.yml
index 6737289..782c3ec 100644
--- a/docs/api/TinyLife.GameImpl.yml
+++ b/docs/api/TinyLife.GameImpl.yml
@@ -1026,7 +1026,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CanBeExtremelyFast
path: ../TinyLife/GameImpl.cs
- startLine: 736
+ startLine: 742
assemblies:
- Tiny Life
namespace: TinyLife
@@ -1061,7 +1061,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CanSwitchGameModes
path: ../TinyLife/GameImpl.cs
- startLine: 747
+ startLine: 753
assemblies:
- Tiny Life
namespace: TinyLife
@@ -1096,7 +1096,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: FadeKeyboardLighting
path: ../TinyLife/GameImpl.cs
- startLine: 762
+ startLine: 768
assemblies:
- Tiny Life
namespace: TinyLife
@@ -1132,7 +1132,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: TakeScreenshot
path: ../TinyLife/GameImpl.cs
- startLine: 788
+ startLine: 794
assemblies:
- Tiny Life
namespace: TinyLife
diff --git a/docs/api/TinyLife.Mods.ModInfo.yml b/docs/api/TinyLife.Mods.ModInfo.yml
index 6598954..714e0ed 100644
--- a/docs/api/TinyLife.Mods.ModInfo.yml
+++ b/docs/api/TinyLife.Mods.ModInfo.yml
@@ -27,7 +27,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ModInfo
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 134
+ startLine: 137
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -75,7 +75,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Id
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 139
+ startLine: 142
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -110,7 +110,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Mod
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 143
+ startLine: 146
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -145,7 +145,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Logger
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 148
+ startLine: 151
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -180,7 +180,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Content
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 153
+ startLine: 156
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -215,7 +215,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Harmony
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 157
+ startLine: 160
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -250,7 +250,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Finalize
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 170
+ startLine: 173
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -281,7 +281,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Dispose
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 175
+ startLine: 178
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -314,7 +314,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ToString
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 182
+ startLine: 185
assemblies:
- Tiny Life
namespace: TinyLife.Mods
diff --git a/docs/api/TinyLife.Mods.ModLoader.yml b/docs/api/TinyLife.Mods.ModLoader.yml
index 6d77d57..00a54ba 100644
--- a/docs/api/TinyLife.Mods.ModLoader.yml
+++ b/docs/api/TinyLife.Mods.ModLoader.yml
@@ -65,7 +65,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: TryGetModInfo
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 31
+ startLine: 32
assemblies:
- Tiny Life
namespace: TinyLife.Mods
@@ -112,7 +112,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetModsFolder
path: ../TinyLife/Mods/ModLoader.cs
- startLine: 39
+ startLine: 40
assemblies:
- Tiny Life
namespace: TinyLife.Mods
diff --git a/docs/api/TinyLife.Objects.Clothes.yml b/docs/api/TinyLife.Objects.Clothes.yml
index 4b259e0..1bca1d1 100644
--- a/docs/api/TinyLife.Objects.Clothes.yml
+++ b/docs/api/TinyLife.Objects.Clothes.yml
@@ -635,11 +635,11 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RandomWeight
path: ../TinyLife/Objects/Clothes.cs
- startLine: 269
+ startLine: 270
assemblies:
- Tiny Life
namespace: TinyLife.Objects
- summary: "\nAn optional function that determines the weight that this clothing item has when randomly generating an for a .\nThe default weight for a clothing item is 1, and the higher the weight is, the more likely it is for this item to be chosen for an outfit.\n"
+ summary: "\nAn optional function that determines the weight that this clothing item has when randomly generating an for a .\nThe higher the weight is, the more likely it is for this item to be chosen for an outfit.\nThe default weight for a clothing item is 3 if any of the outfit's match the clothing item's , and 1 otherwise.\n"
example: []
syntax:
content: public Func RandomWeight { get; set; }
@@ -672,7 +672,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RandomColorWeight
path: ../TinyLife/Objects/Clothes.cs
- startLine: 274
+ startLine: 275
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -709,7 +709,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: .ctor
path: ../TinyLife/Objects/Clothes.cs
- startLine: 285
+ startLine: 286
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -763,7 +763,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPrice
path: ../TinyLife/Objects/Clothes.cs
- startLine: 312
+ startLine: 310
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -800,7 +800,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Register
path: ../TinyLife/Objects/Clothes.cs
- startLine: 320
+ startLine: 318
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -838,7 +838,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClothes
path: ../TinyLife/Objects/Clothes.cs
- startLine: 331
+ startLine: 329
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -1856,6 +1856,12 @@ references:
name: Outfit
nameWithType: Outfit
fullName: TinyLife.Objects.Outfit
+- uid: TinyLife.Objects.Outfit.Intentions
+ commentId: F:TinyLife.Objects.Outfit.Intentions
+ isExternal: true
+- uid: TinyLife.Objects.Clothes.Intentions
+ commentId: F:TinyLife.Objects.Clothes.Intentions
+ isExternal: true
- uid: TinyLife.Objects.Clothes.RandomWeight*
commentId: Overload:TinyLife.Objects.Clothes.RandomWeight
name: RandomWeight
diff --git a/docs/api/TinyLife.Objects.ClothesIntention.yml b/docs/api/TinyLife.Objects.ClothesIntention.yml
index 2e906a5..c13bab0 100644
--- a/docs/api/TinyLife.Objects.ClothesIntention.yml
+++ b/docs/api/TinyLife.Objects.ClothesIntention.yml
@@ -30,7 +30,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ClothesIntention
path: ../TinyLife/Objects/Clothes.cs
- startLine: 575
+ startLine: 573
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -77,7 +77,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: None
path: ../TinyLife/Objects/Clothes.cs
- startLine: 579
+ startLine: 577
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -109,7 +109,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Everyday
path: ../TinyLife/Objects/Clothes.cs
- startLine: 580
+ startLine: 578
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -141,7 +141,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Party
path: ../TinyLife/Objects/Clothes.cs
- startLine: 581
+ startLine: 579
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -173,7 +173,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Formal
path: ../TinyLife/Objects/Clothes.cs
- startLine: 582
+ startLine: 580
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -205,7 +205,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Workout
path: ../TinyLife/Objects/Clothes.cs
- startLine: 583
+ startLine: 581
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -237,7 +237,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Swimwear
path: ../TinyLife/Objects/Clothes.cs
- startLine: 584
+ startLine: 582
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -269,7 +269,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Sleep
path: ../TinyLife/Objects/Clothes.cs
- startLine: 585
+ startLine: 583
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -301,7 +301,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Summer
path: ../TinyLife/Objects/Clothes.cs
- startLine: 586
+ startLine: 584
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -333,7 +333,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Winter
path: ../TinyLife/Objects/Clothes.cs
- startLine: 587
+ startLine: 585
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -365,7 +365,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Work
path: ../TinyLife/Objects/Clothes.cs
- startLine: 588
+ startLine: 586
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -397,7 +397,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Safety
path: ../TinyLife/Objects/Clothes.cs
- startLine: 589
+ startLine: 587
assemblies:
- Tiny Life
namespace: TinyLife.Objects
diff --git a/docs/api/TinyLife.Objects.ClothesLayer.yml b/docs/api/TinyLife.Objects.ClothesLayer.yml
index cc0ec93..5363ff8 100644
--- a/docs/api/TinyLife.Objects.ClothesLayer.yml
+++ b/docs/api/TinyLife.Objects.ClothesLayer.yml
@@ -31,7 +31,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ClothesLayer
path: ../TinyLife/Objects/Clothes.cs
- startLine: 516
+ startLine: 514
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -79,7 +79,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Body
path: ../TinyLife/Objects/Clothes.cs
- startLine: 522
+ startLine: 520
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -113,7 +113,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Eyes
path: ../TinyLife/Objects/Clothes.cs
- startLine: 526
+ startLine: 524
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -147,7 +147,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Pants
path: ../TinyLife/Objects/Clothes.cs
- startLine: 530
+ startLine: 528
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -181,7 +181,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Arms
path: ../TinyLife/Objects/Clothes.cs
- startLine: 534
+ startLine: 532
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -215,7 +215,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Shirt
path: ../TinyLife/Objects/Clothes.cs
- startLine: 538
+ startLine: 536
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -249,7 +249,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Accessories
path: ../TinyLife/Objects/Clothes.cs
- startLine: 542
+ startLine: 540
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -283,7 +283,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: FacialHair
path: ../TinyLife/Objects/Clothes.cs
- startLine: 546
+ startLine: 544
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -317,7 +317,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Hair
path: ../TinyLife/Objects/Clothes.cs
- startLine: 550
+ startLine: 548
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -351,7 +351,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: HeadAccessories
path: ../TinyLife/Objects/Clothes.cs
- startLine: 554
+ startLine: 552
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -385,7 +385,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: FaceAccessories
path: ../TinyLife/Objects/Clothes.cs
- startLine: 558
+ startLine: 556
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -419,7 +419,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ArmAccessories
path: ../TinyLife/Objects/Clothes.cs
- startLine: 563
+ startLine: 561
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -453,7 +453,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Shoes
path: ../TinyLife/Objects/Clothes.cs
- startLine: 567
+ startLine: 565
assemblies:
- Tiny Life
namespace: TinyLife.Objects
diff --git a/docs/api/TinyLife.Objects.Outfit.yml b/docs/api/TinyLife.Objects.Outfit.yml
index 70c474a..e65bc38 100644
--- a/docs/api/TinyLife.Objects.Outfit.yml
+++ b/docs/api/TinyLife.Objects.Outfit.yml
@@ -25,7 +25,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Outfit
path: ../TinyLife/Objects/Clothes.cs
- startLine: 405
+ startLine: 403
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -80,7 +80,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Clothes
path: ../TinyLife/Objects/Clothes.cs
- startLine: 413
+ startLine: 411
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -125,7 +125,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Intentions
path: ../TinyLife/Objects/Clothes.cs
- startLine: 419
+ startLine: 417
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -168,7 +168,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: .ctor
path: ../TinyLife/Objects/Clothes.cs
- startLine: 425
+ startLine: 423
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -207,7 +207,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetIntentionPercentage
path: ../TinyLife/Objects/Clothes.cs
- startLine: 435
+ startLine: 433
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -246,7 +246,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: EnsureIntentionsMatch
path: ../TinyLife/Objects/Clothes.cs
- startLine: 453
+ startLine: 451
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -282,14 +282,14 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: SetRandomClothesItem
path: ../TinyLife/Objects/Clothes.cs
- startLine: 473
+ startLine: 471
assemblies:
- Tiny Life
namespace: TinyLife.Objects
summary: "\nSets a random clothes item for this outfit's given .\n"
example: []
syntax:
- content: public void SetRandomClothesItem(Random random, ClothesLayer layer, AgeGroup age, ClothesIntention intention = ClothesIntention.None, bool keepOldColors = false, int maxPrice = 50)
+ content: public void SetRandomClothesItem(Random random, ClothesLayer layer, AgeGroup age, ClothesIntention allowedIntentions = ClothesIntention.None, bool keepOldColors = false, int maxPrice = 50)
parameters:
- id: random
type: System.Random
@@ -300,16 +300,16 @@ items:
- id: age
type: TinyLife.Objects.AgeGroup
description: The ages that clothes items should be generated for.
- - id: intention
+ - id: allowedIntentions
type: TinyLife.Objects.ClothesIntention
- description: The intentions allowed, or to allow any intentions.
+ description: The intentions allowed, or to allow all intentions.
- id: keepOldColors
type: System.Boolean
description: Whether old colors should be kept if the new object's matches the old one.
- id: maxPrice
type: System.Int32
description: The maximum price that should be used when setting a random clothes item. Defaults to .
- content.vb: Public Sub SetRandomClothesItem(random As Random, layer As ClothesLayer, age As AgeGroup, intention As ClothesIntention = ClothesIntention.None, keepOldColors As Boolean = False, maxPrice As Integer = 50)
+ content.vb: Public Sub SetRandomClothesItem(random As Random, layer As ClothesLayer, age As AgeGroup, allowedIntentions As ClothesIntention = ClothesIntention.None, keepOldColors As Boolean = False, maxPrice As Integer = 50)
overload: TinyLife.Objects.Outfit.SetRandomClothesItem*
modifiers.csharp:
- public
diff --git a/docs/api/TinyLife.Objects.WornClothes.yml b/docs/api/TinyLife.Objects.WornClothes.yml
index 0a188d4..8f0b932 100644
--- a/docs/api/TinyLife.Objects.WornClothes.yml
+++ b/docs/api/TinyLife.Objects.WornClothes.yml
@@ -25,7 +25,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: WornClothes
path: ../TinyLife/Objects/Clothes.cs
- startLine: 343
+ startLine: 341
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -80,7 +80,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Type
path: ../TinyLife/Objects/Clothes.cs
- startLine: 350
+ startLine: 348
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -125,7 +125,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Colors
path: ../TinyLife/Objects/Clothes.cs
- startLine: 357
+ startLine: 355
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -168,7 +168,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: FromStorage
path: ../TinyLife/Objects/Clothes.cs
- startLine: 362
+ startLine: 360
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -211,7 +211,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: .ctor
path: ../TinyLife/Objects/Clothes.cs
- startLine: 369
+ startLine: 367
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -253,7 +253,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetColor
path: ../TinyLife/Objects/Clothes.cs
- startLine: 379
+ startLine: 377
assemblies:
- Tiny Life
namespace: TinyLife.Objects
@@ -292,7 +292,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Validate
path: ../TinyLife/Objects/Clothes.cs
- startLine: 387
+ startLine: 385
assemblies:
- Tiny Life
namespace: TinyLife.Objects
diff --git a/docs/api/TinyLife.Set.yml b/docs/api/TinyLife.Set.yml
index 88780d0..e004adc 100644
--- a/docs/api/TinyLife.Set.yml
+++ b/docs/api/TinyLife.Set.yml
@@ -22,7 +22,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Set
path: ../TinyLife/GameImpl.cs
- startLine: 943
+ startLine: 949
assemblies:
- Tiny Life
namespace: TinyLife
@@ -57,7 +57,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Woodworking
path: ../TinyLife/GameImpl.cs
- startLine: 949
+ startLine: 955
assemblies:
- Tiny Life
namespace: TinyLife
@@ -91,7 +91,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Workout
path: ../TinyLife/GameImpl.cs
- startLine: 953
+ startLine: 959
assemblies:
- Tiny Life
namespace: TinyLife
@@ -125,7 +125,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ChildClothes
path: ../TinyLife/GameImpl.cs
- startLine: 957
+ startLine: 963
assemblies:
- Tiny Life
namespace: TinyLife
diff --git a/docs/api/TinyLife.Uis.Menus.TransitionType.yml b/docs/api/TinyLife.Uis.Menus.TransitionType.yml
index 2e83f05..317c9fb 100644
--- a/docs/api/TinyLife.Uis.Menus.TransitionType.yml
+++ b/docs/api/TinyLife.Uis.Menus.TransitionType.yml
@@ -21,7 +21,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: TransitionType
path: ../TinyLife/Uis/Menus.cs
- startLine: 779
+ startLine: 784
assemblies:
- Tiny Life
namespace: TinyLife.Uis
@@ -56,7 +56,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Swipe
path: ../TinyLife/Uis/Menus.cs
- startLine: 785
+ startLine: 790
assemblies:
- Tiny Life
namespace: TinyLife.Uis
@@ -90,7 +90,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Fade
path: ../TinyLife/Uis/Menus.cs
- startLine: 790
+ startLine: 795
assemblies:
- Tiny Life
namespace: TinyLife.Uis
diff --git a/docs/api/TinyLife.World.DrawDelegate.yml b/docs/api/TinyLife.World.DrawDelegate.yml
index e93e665..f2816cd 100644
--- a/docs/api/TinyLife.World.DrawDelegate.yml
+++ b/docs/api/TinyLife.World.DrawDelegate.yml
@@ -19,7 +19,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: DrawDelegate
path: ../TinyLife/World/Map.cs
- startLine: 2193
+ startLine: 2185
assemblies:
- Tiny Life
namespace: TinyLife.World
diff --git a/docs/api/TinyLife.World.ExportedLot.yml b/docs/api/TinyLife.World.ExportedLot.yml
index b8753ee..964b6ce 100644
--- a/docs/api/TinyLife.World.ExportedLot.yml
+++ b/docs/api/TinyLife.World.ExportedLot.yml
@@ -28,7 +28,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ExportedLot
path: ../TinyLife/World/Lot.cs
- startLine: 349
+ startLine: 363
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -77,7 +77,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ExportedVersion
path: ../TinyLife/World/Lot.cs
- startLine: 354
+ startLine: 368
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -110,7 +110,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Area
path: ../TinyLife/World/Lot.cs
- startLine: 358
+ startLine: 372
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -143,7 +143,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Type
path: ../TinyLife/World/Lot.cs
- startLine: 362
+ startLine: 376
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -176,7 +176,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Furniture
path: ../TinyLife/World/Lot.cs
- startLine: 366
+ startLine: 380
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -209,7 +209,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Walls
path: ../TinyLife/World/Lot.cs
- startLine: 370
+ startLine: 384
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -242,7 +242,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Roofs
path: ../TinyLife/World/Lot.cs
- startLine: 374
+ startLine: 388
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -275,7 +275,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Tiles
path: ../TinyLife/World/Lot.cs
- startLine: 378
+ startLine: 392
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -308,7 +308,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPrice
path: ../TinyLife/World/Lot.cs
- startLine: 381
+ startLine: 395
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -345,7 +345,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetCoveredArea
path: ../TinyLife/World/Lot.cs
- startLine: 395
+ startLine: 409
assemblies:
- Tiny Life
namespace: TinyLife.World
diff --git a/docs/api/TinyLife.World.Lot.yml b/docs/api/TinyLife.World.Lot.yml
index bb47613..7069a84 100644
--- a/docs/api/TinyLife.World.Lot.yml
+++ b/docs/api/TinyLife.World.Lot.yml
@@ -11,6 +11,7 @@ items:
- TinyLife.World.Lot.CanImport(TinyLife.World.ExportedLot)
- TinyLife.World.Lot.Export
- TinyLife.World.Lot.GetCoveredArea
+ - TinyLife.World.Lot.GetDefaultTile
- TinyLife.World.Lot.GetFrontDoor(Vector2)
- TinyLife.World.Lot.GetHomeLocation(TinyLife.Objects.Person)
- TinyLife.World.Lot.GetObjects``1
@@ -478,6 +479,38 @@ items:
- public
modifiers.vb:
- Public
+- uid: TinyLife.World.Lot.GetDefaultTile
+ commentId: M:TinyLife.World.Lot.GetDefaultTile
+ id: GetDefaultTile
+ parent: TinyLife.World.Lot
+ langs:
+ - csharp
+ - vb
+ name: GetDefaultTile()
+ nameWithType: Lot.GetDefaultTile()
+ fullName: TinyLife.World.Lot.GetDefaultTile()
+ type: Method
+ source:
+ remote:
+ path: TinyLife/World/Lot.cs
+ branch: main
+ repo: https://git.ellpeck.de/Ellpeck/TinyLife
+ id: GetDefaultTile
+ path: ../TinyLife/World/Lot.cs
+ startLine: 129
+ assemblies:
+ - Tiny Life
+ namespace: TinyLife.World
+ syntax:
+ content: public Tile GetDefaultTile()
+ return:
+ type: TinyLife.World.Tile
+ content.vb: Public Function GetDefaultTile As Tile
+ overload: TinyLife.World.Lot.GetDefaultTile*
+ modifiers.csharp:
+ - public
+ modifiers.vb:
+ - Public
- uid: TinyLife.World.Lot.AreRequirementsMet
commentId: M:TinyLife.World.Lot.AreRequirementsMet
id: AreRequirementsMet
@@ -496,7 +529,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AreRequirementsMet
path: ../TinyLife/World/Lot.cs
- startLine: 133
+ startLine: 146
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -531,7 +564,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetFrontDoor
path: ../TinyLife/World/Lot.cs
- startLine: 149
+ startLine: 162
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -570,7 +603,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHomeLocation
path: ../TinyLife/World/Lot.cs
- startLine: 173
+ startLine: 186
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -609,7 +642,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPrice
path: ../TinyLife/World/Lot.cs
- startLine: 190
+ startLine: 203
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -646,7 +679,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetWeeklyBills
path: ../TinyLife/World/Lot.cs
- startLine: 204
+ startLine: 217
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -681,7 +714,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Export
path: ../TinyLife/World/Lot.cs
- startLine: 216
+ startLine: 229
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -716,7 +749,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Import
path: ../TinyLife/World/Lot.cs
- startLine: 241
+ startLine: 254
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -758,7 +791,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CanImport
path: ../TinyLife/World/Lot.cs
- startLine: 256
+ startLine: 269
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -797,7 +830,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetCoveredArea
path: ../TinyLife/World/Lot.cs
- startLine: 268
+ startLine: 281
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1644,6 +1677,17 @@ references:
- name: )
nameWithType: )
fullName: )
+- uid: TinyLife.World.Lot.GetDefaultTile*
+ commentId: Overload:TinyLife.World.Lot.GetDefaultTile
+ name: GetDefaultTile
+ nameWithType: Lot.GetDefaultTile
+ fullName: TinyLife.World.Lot.GetDefaultTile
+- uid: TinyLife.World.Tile
+ commentId: T:TinyLife.World.Tile
+ parent: TinyLife.World
+ name: Tile
+ nameWithType: Tile
+ fullName: TinyLife.World.Tile
- uid: TinyLife.World.LotType.RequiredFurniture
commentId: F:TinyLife.World.LotType.RequiredFurniture
isExternal: true
@@ -1849,12 +1893,6 @@ references:
name: Furniture
nameWithType: Furniture
fullName: TinyLife.Objects.Furniture
-- uid: TinyLife.World.Tile
- commentId: T:TinyLife.World.Tile
- parent: TinyLife.World
- name: Tile
- nameWithType: Tile
- fullName: TinyLife.World.Tile
- uid: TinyLife.World.Lot.Export*
commentId: Overload:TinyLife.World.Lot.Export
name: Export
diff --git a/docs/api/TinyLife.World.LotType.yml b/docs/api/TinyLife.World.LotType.yml
index 8bf10d7..a24e728 100644
--- a/docs/api/TinyLife.World.LotType.yml
+++ b/docs/api/TinyLife.World.LotType.yml
@@ -37,7 +37,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: LotType
path: ../TinyLife/World/Lot.cs
- startLine: 405
+ startLine: 419
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -88,7 +88,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Types
path: ../TinyLife/World/Lot.cs
- startLine: 412
+ startLine: 426
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -125,7 +125,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Residential
path: ../TinyLife/World/Lot.cs
- startLine: 415
+ startLine: 429
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -160,7 +160,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Park
path: ../TinyLife/World/Lot.cs
- startLine: 418
+ startLine: 432
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -195,7 +195,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Gym
path: ../TinyLife/World/Lot.cs
- startLine: 421
+ startLine: 435
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -230,7 +230,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Cafe
path: ../TinyLife/World/Lot.cs
- startLine: 426
+ startLine: 440
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -265,7 +265,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: KidsPlayground
path: ../TinyLife/World/Lot.cs
- startLine: 440
+ startLine: 454
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -300,7 +300,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GenericPublicLot
path: ../TinyLife/World/Lot.cs
- startLine: 444
+ startLine: 458
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -335,7 +335,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Name
path: ../TinyLife/World/Lot.cs
- startLine: 451
+ startLine: 465
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -370,7 +370,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Icon
path: ../TinyLife/World/Lot.cs
- startLine: 455
+ startLine: 469
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -405,7 +405,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsResidential
path: ../TinyLife/World/Lot.cs
- startLine: 460
+ startLine: 474
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -440,7 +440,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RequiredFurniture
path: ../TinyLife/World/Lot.cs
- startLine: 465
+ startLine: 479
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -475,7 +475,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetVisitPriority
path: ../TinyLife/World/Lot.cs
- startLine: 471
+ startLine: 485
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -510,7 +510,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Employments
path: ../TinyLife/World/Lot.cs
- startLine: 476
+ startLine: 490
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -547,7 +547,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CanExecuteAction
path: ../TinyLife/World/Lot.cs
- startLine: 481
+ startLine: 495
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -584,7 +584,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: DisplayName
path: ../TinyLife/World/Lot.cs
- startLine: 486
+ startLine: 500
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -621,7 +621,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: .ctor
path: ../TinyLife/World/Lot.cs
- startLine: 496
+ startLine: 510
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -672,7 +672,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Register
path: ../TinyLife/World/Lot.cs
- startLine: 508
+ startLine: 522
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -712,7 +712,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetGroupVisitPriority
path: ../TinyLife/World/Lot.cs
- startLine: 521
+ startLine: 535
assemblies:
- Tiny Life
namespace: TinyLife.World
diff --git a/docs/api/TinyLife.World.Map.yml b/docs/api/TinyLife.World.Map.yml
index 680b01f..981a3a1 100644
--- a/docs/api/TinyLife.World.Map.yml
+++ b/docs/api/TinyLife.World.Map.yml
@@ -28,7 +28,7 @@ items:
- TinyLife.World.Map.GetClosestEmptyTile(Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)
- TinyLife.World.Map.GetClosestExitRoad(Vector2)
- TinyLife.World.Map.GetClosestRoad(Point,System.Int32)
- - TinyLife.World.Map.GetClosestSidewalk(Point,Vector2)
+ - TinyLife.World.Map.GetClosestRoadsidePosition(Point,Vector2)
- TinyLife.World.Map.GetDeadPerson(System.Guid)
- TinyLife.World.Map.GetDepth(Vector2,System.Single,System.Boolean,System.Boolean,System.Boolean)
- TinyLife.World.Map.GetExitRoads
@@ -63,7 +63,7 @@ items:
- TinyLife.World.Map.MailToSend
- TinyLife.World.Map.MarkDirtyForPathfinding(Point)
- TinyLife.World.Map.MarkTileDirtyForDrawing(Point)
- - TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean)
+ - TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean,TinyLife.World.Tile)
- TinyLife.World.Map.OnCameraRotationChanged(MLEM.Misc.Direction2,MLEM.Misc.Direction2)
- TinyLife.World.Map.OnObjectAdded
- TinyLife.World.Map.OnObjectRemoved
@@ -1021,44 +1021,39 @@ items:
- public
modifiers.vb:
- Public
-- uid: TinyLife.World.Map.GetClosestSidewalk(Point,Vector2)
- commentId: M:TinyLife.World.Map.GetClosestSidewalk(Point,Vector2)
- id: GetClosestSidewalk(Point,Vector2)
+- uid: TinyLife.World.Map.GetClosestRoadsidePosition(Point,Vector2)
+ commentId: M:TinyLife.World.Map.GetClosestRoadsidePosition(Point,Vector2)
+ id: GetClosestRoadsidePosition(Point,Vector2)
parent: TinyLife.World.Map
langs:
- csharp
- vb
- name: GetClosestSidewalk(Point, Vector2)
- nameWithType: Map.GetClosestSidewalk(Point, Vector2)
- fullName: TinyLife.World.Map.GetClosestSidewalk(Point, Vector2)
+ name: GetClosestRoadsidePosition(Point, Vector2)
+ nameWithType: Map.GetClosestRoadsidePosition(Point, Vector2)
+ fullName: TinyLife.World.Map.GetClosestRoadsidePosition(Point, Vector2)
type: Method
source:
remote:
path: TinyLife/World/Map.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
- id: GetClosestSidewalk
+ id: GetClosestRoadsidePosition
path: ../TinyLife/World/Map.cs
- startLine: 551
+ startLine: 543
assemblies:
- Tiny Life
namespace: TinyLife.World
- summary: "\nReturns the closest sidewalk position to the given road position.\nA sidewalk is a tile whose name starts with "Concrete" that is +1 tiles away from the road marker.\nNote that the road position must have return true for it.\n"
- example: []
syntax:
- content: public Point? GetClosestSidewalk(Point road, Vector2 pos)
+ content: public Point? GetClosestRoadsidePosition(Point road, Vector2 pos)
parameters:
- id: road
type: Point
- description: The road marker
- id: pos
type: Vector2
- description: The position to which the distance should be shortest
return:
type: System.Nullable{Point}
- description: The closest sidewalk position
- content.vb: Public Function GetClosestSidewalk(road As Point, pos As Vector2) As Point?
- overload: TinyLife.World.Map.GetClosestSidewalk*
+ content.vb: Public Function GetClosestRoadsidePosition(road As Point, pos As Vector2) As Point?
+ overload: TinyLife.World.Map.GetClosestRoadsidePosition*
modifiers.csharp:
- public
modifiers.vb:
@@ -1081,7 +1076,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetTilesAround
path: ../TinyLife/World/Map.cs
- startLine: 568
+ startLine: 560
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1135,7 +1130,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClosestEmptyTile
path: ../TinyLife/World/Map.cs
- startLine: 595
+ startLine: 587
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1186,7 +1181,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRandomTile
path: ../TinyLife/World/Map.cs
- startLine: 613
+ startLine: 605
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1243,7 +1238,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Validate
path: ../TinyLife/World/Map.cs
- startLine: 641
+ startLine: 633
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1288,7 +1283,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRoom
path: ../TinyLife/World/Map.cs
- startLine: 711
+ startLine: 703
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1327,7 +1322,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetLot
path: ../TinyLife/World/Map.cs
- startLine: 726
+ startLine: 718
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1366,7 +1361,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetLot
path: ../TinyLife/World/Map.cs
- startLine: 737
+ startLine: 729
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1405,7 +1400,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddLot
path: ../TinyLife/World/Map.cs
- startLine: 750
+ startLine: 742
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1444,7 +1439,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddLot
path: ../TinyLife/World/Map.cs
- startLine: 760
+ startLine: 752
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1480,7 +1475,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveLot
path: ../TinyLife/World/Map.cs
- startLine: 768
+ startLine: 760
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1516,7 +1511,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetLots
path: ../TinyLife/World/Map.cs
- startLine: 776
+ startLine: 768
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1551,7 +1546,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddWall
path: ../TinyLife/World/Map.cs
- startLine: 787
+ startLine: 779
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1593,7 +1588,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddWall
path: ../TinyLife/World/Map.cs
- startLine: 798
+ startLine: 790
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1632,7 +1627,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveWall
path: ../TinyLife/World/Map.cs
- startLine: 808
+ startLine: 800
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1671,7 +1666,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetWallBetween
path: ../TinyLife/World/Map.cs
- startLine: 824
+ startLine: 816
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1713,7 +1708,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetTile
path: ../TinyLife/World/Map.cs
- startLine: 838
+ startLine: 830
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1752,7 +1747,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: SetTile
path: ../TinyLife/World/Map.cs
- startLine: 848
+ startLine: 840
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1791,7 +1786,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddRoof
path: ../TinyLife/World/Map.cs
- startLine: 863
+ startLine: 855
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1827,7 +1822,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRoof
path: ../TinyLife/World/Map.cs
- startLine: 873
+ startLine: 865
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1866,7 +1861,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveRoof
path: ../TinyLife/World/Map.cs
- startLine: 886
+ startLine: 878
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1902,7 +1897,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetObjects
path: ../TinyLife/World/Map.cs
- startLine: 897
+ startLine: 889
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1949,7 +1944,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetObject
path: ../TinyLife/World/Map.cs
- startLine: 913
+ startLine: 905
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -1996,7 +1991,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddObject
path: ../TinyLife/World/Map.cs
- startLine: 925
+ startLine: 917
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2032,7 +2027,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveObject
path: ../TinyLife/World/Map.cs
- startLine: 950
+ startLine: 942
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2069,7 +2064,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPeople
path: ../TinyLife/World/Map.cs
- startLine: 970
+ startLine: 962
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2104,7 +2099,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHousehold
path: ../TinyLife/World/Map.cs
- startLine: 982
+ startLine: 974
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2143,7 +2138,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHousehold
path: ../TinyLife/World/Map.cs
- startLine: 995
+ startLine: 987
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2182,7 +2177,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddHousehold
path: ../TinyLife/World/Map.cs
- startLine: 1008
+ startLine: 1000
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2221,7 +2216,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveHousehold
path: ../TinyLife/World/Map.cs
- startLine: 1018
+ startLine: 1010
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2257,7 +2252,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetHouseholds
path: ../TinyLife/World/Map.cs
- startLine: 1026
+ startLine: 1018
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2292,7 +2287,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetSection
path: ../TinyLife/World/Map.cs
- startLine: 1036
+ startLine: 1028
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2331,7 +2326,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetSections
path: ../TinyLife/World/Map.cs
- startLine: 1048
+ startLine: 1040
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2373,7 +2368,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetSections
path: ../TinyLife/World/Map.cs
- startLine: 1058
+ startLine: 1050
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2415,7 +2410,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MarkDirtyForPathfinding
path: ../TinyLife/World/Map.cs
- startLine: 1079
+ startLine: 1071
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2451,7 +2446,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetPathCost
path: ../TinyLife/World/Map.cs
- startLine: 1099
+ startLine: 1091
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2496,7 +2491,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CanWalkBetween
path: ../TinyLife/World/Map.cs
- startLine: 1118
+ startLine: 1110
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2541,7 +2536,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsFreeSpot
path: ../TinyLife/World/Map.cs
- startLine: 1127
+ startLine: 1119
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2580,7 +2575,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetDeadPerson
path: ../TinyLife/World/Map.cs
- startLine: 1137
+ startLine: 1129
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2619,7 +2614,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: PlaySound
path: ../TinyLife/World/Map.cs
- startLine: 1157
+ startLine: 1149
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2673,7 +2668,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: PlaySound
path: ../TinyLife/World/Map.cs
- startLine: 1174
+ startLine: 1166
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2727,7 +2722,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetClosestExitRoad
path: ../TinyLife/World/Map.cs
- startLine: 1192
+ startLine: 1184
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2765,7 +2760,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetExitRoads
path: ../TinyLife/World/Map.cs
- startLine: 1200
+ startLine: 1192
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2800,7 +2795,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetWalls
path: ../TinyLife/World/Map.cs
- startLine: 1215
+ startLine: 1207
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2839,7 +2834,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ApplyCameraRotation
path: ../TinyLife/World/Map.cs
- startLine: 1231
+ startLine: 1223
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2887,7 +2882,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ApplyInverseCameraRotation
path: ../TinyLife/World/Map.cs
- startLine: 1247
+ startLine: 1239
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2932,7 +2927,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: OnCameraRotationChanged
path: ../TinyLife/World/Map.cs
- startLine: 1262
+ startLine: 1254
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -2971,7 +2966,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddLight
path: ../TinyLife/World/Map.cs
- startLine: 1284
+ startLine: 1276
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3007,7 +3002,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RemoveLight
path: ../TinyLife/World/Map.cs
- startLine: 1293
+ startLine: 1285
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3025,16 +3020,16 @@ items:
- public
modifiers.vb:
- Public
-- uid: TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean)
- commentId: M:TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean)
- id: MoveEverything(Point,Rectangle,System.Boolean)
+- uid: TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean,TinyLife.World.Tile)
+ commentId: M:TinyLife.World.Map.MoveEverything(Point,Rectangle,System.Boolean,TinyLife.World.Tile)
+ id: MoveEverything(Point,Rectangle,System.Boolean,TinyLife.World.Tile)
parent: TinyLife.World.Map
langs:
- csharp
- vb
- name: MoveEverything(Point, Rectangle, Boolean)
- nameWithType: Map.MoveEverything(Point, Rectangle, Boolean)
- fullName: TinyLife.World.Map.MoveEverything(Point, Rectangle, System.Boolean)
+ name: MoveEverything(Point, Rectangle, Boolean, Tile)
+ nameWithType: Map.MoveEverything(Point, Rectangle, Boolean, Tile)
+ fullName: TinyLife.World.Map.MoveEverything(Point, Rectangle, System.Boolean, TinyLife.World.Tile)
type: Method
source:
remote:
@@ -3043,14 +3038,14 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MoveEverything
path: ../TinyLife/World/Map.cs
- startLine: 1304
+ startLine: 1296
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)
+ content: public void MoveEverything(Point offset, Rectangle area, bool moveLots, Tile defaultTile = null)
parameters:
- id: offset
type: Point
@@ -3061,7 +3056,9 @@ items:
- id: moveLots
type: System.Boolean
description: Whether lots should be moved as well. The content of lots will be moved regardless of this parameter
- content.vb: Public Sub MoveEverything(offset As Point, area As Rectangle, moveLots As Boolean)
+ - id: defaultTile
+ type: TinyLife.World.Tile
+ content.vb: Public Sub MoveEverything(offset As Point, area As Rectangle, moveLots As Boolean, defaultTile As Tile = Nothing)
overload: TinyLife.World.Map.MoveEverything*
modifiers.csharp:
- public
@@ -3085,7 +3082,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: ValidateExistingRooms
path: ../TinyLife/World/Map.cs
- startLine: 1365
+ startLine: 1357
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3124,7 +3121,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: AddNewRoomsAndValidateExisting
path: ../TinyLife/World/Map.cs
- startLine: 1382
+ startLine: 1374
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3169,7 +3166,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetRegularVisitors
path: ../TinyLife/World/Map.cs
- startLine: 1433
+ startLine: 1425
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3204,7 +3201,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: UpdateExternalPeople
path: ../TinyLife/World/Map.cs
- startLine: 1445
+ startLine: 1437
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3242,7 +3239,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: GetAllLotEmployments
path: ../TinyLife/World/Map.cs
- startLine: 1525
+ startLine: 1517
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3277,7 +3274,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: MarkTileDirtyForDrawing
path: ../TinyLife/World/Map.cs
- startLine: 1538
+ startLine: 1530
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3313,7 +3310,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: CompleteAchievement
path: ../TinyLife/World/Map.cs
- startLine: 1552
+ startLine: 1544
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3352,7 +3349,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: LoadStaticMap
path: ../TinyLife/World/Map.cs
- startLine: 1992
+ startLine: 1984
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -3408,7 +3405,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IsLotHidden
path: ../TinyLife/World/Map.cs
- startLine: 2037
+ startLine: 2029
assemblies:
- Tiny Life
namespace: TinyLife.World
@@ -4753,17 +4750,11 @@ references:
- name: )
nameWithType: )
fullName: )
-- uid: TinyLife.World.Map.RoadRadius
- commentId: F:TinyLife.World.Map.RoadRadius
- isExternal: true
-- uid: TinyLife.World.Map.IsRoad(Point)
- commentId: M:TinyLife.World.Map.IsRoad(Point)
- isExternal: true
-- uid: TinyLife.World.Map.GetClosestSidewalk*
- commentId: Overload:TinyLife.World.Map.GetClosestSidewalk
- name: GetClosestSidewalk
- nameWithType: Map.GetClosestSidewalk
- fullName: TinyLife.World.Map.GetClosestSidewalk
+- uid: TinyLife.World.Map.GetClosestRoadsidePosition*
+ commentId: Overload:TinyLife.World.Map.GetClosestRoadsidePosition
+ name: GetClosestRoadsidePosition
+ nameWithType: Map.GetClosestRoadsidePosition
+ fullName: TinyLife.World.Map.GetClosestRoadsidePosition
- uid: TinyLife.World.Map.GetTilesAround*
commentId: Overload:TinyLife.World.Map.GetTilesAround
name: GetTilesAround
diff --git a/docs/api/TinyLife.World.UpdateDelegate.yml b/docs/api/TinyLife.World.UpdateDelegate.yml
index 3c6bdc7..10a9bec 100644
--- a/docs/api/TinyLife.World.UpdateDelegate.yml
+++ b/docs/api/TinyLife.World.UpdateDelegate.yml
@@ -19,7 +19,7 @@ items:
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: UpdateDelegate
path: ../TinyLife/World/Map.cs
- startLine: 2183
+ startLine: 2175
assemblies:
- Tiny Life
namespace: TinyLife.World