diff --git a/1.6/1.6/Assemblies/WulaFallenEmpire.dll b/1.6/1.6/Assemblies/WulaFallenEmpire.dll index 948a610e..c808e9ef 100644 Binary files a/1.6/1.6/Assemblies/WulaFallenEmpire.dll and b/1.6/1.6/Assemblies/WulaFallenEmpire.dll differ diff --git a/1.6/1.6/Defs/ThingDefs_Buildings/Building_WULA_ArmedShuttleWithPocket.xml b/1.6/1.6/Defs/ThingDefs_Buildings/Building_WULA_ArmedShuttleWithPocket.xml index ead296f8..75aaf20d 100644 --- a/1.6/1.6/Defs/ThingDefs_Buildings/Building_WULA_ArmedShuttleWithPocket.xml +++ b/1.6/1.6/Defs/ThingDefs_Buildings/Building_WULA_ArmedShuttleWithPocket.xml @@ -298,7 +298,7 @@ WULA_PocketMapExit - + An exit portal that allows return from the pocket space to the main map. WulaFallenEmpire.Building_PocketMapExit (3,3) diff --git a/1.6/1.6/Languages/ChineseSimplified (简体中文)/Keyed/WULA_PocketShuttle.xml b/1.6/1.6/Languages/ChineseSimplified (简体中文)/Keyed/WULA_PocketShuttle.xml index fe8d3ce5..95ca391a 100644 --- a/1.6/1.6/Languages/ChineseSimplified (简体中文)/Keyed/WULA_PocketShuttle.xml +++ b/1.6/1.6/Languages/ChineseSimplified (简体中文)/Keyed/WULA_PocketShuttle.xml @@ -11,7 +11,7 @@ 初始化穿梭机的内部口袋空间。这将在穿梭机内部创建维度储存空间。 进入内部空间 - 进入穿梭机的内部口袋空间。无需骇入即可直接访问。选中的殖民者将被传送到内部空间。 + 进入穿梭机的内部口袋空间。选中的殖民者将被传送到内部空间。 查看内部空间 @@ -33,7 +33,6 @@ {0} 名人员已成功传送到内部空间。 - 内部空间人员: {0} 请选择至少一名殖民者进入内部空间。 @@ -42,25 +41,4 @@ 通过口袋空间出口返回主地图。 {0} 已成功返回主地图。 - - 内置空间武装穿梭机 - 一架配备了集成口袋空间技术的先进化燃料动力穿梭机。装备有防御炮塔和无需骇入即可访问的内部储存维度。非常适合长距离探索和移动作战行动。 - - - 先进充能爆破器 - 一种升级版脉冲充能速射爆破器,配备增强型瞄准系统和提升的火力输出。 - - 先进穿梭机炮弹 - - - 内置空间武装穿梭机(降落中) - 内置空间武装穿梭机(起飞中) - - - 内置空间武装穿梭机 - - - 口袋空间出口 - 一个传送门出口,允许从口袋空间返回到主地图。 - \ No newline at end of file diff --git a/MCP/vector_cache/knowledge_cache.json b/MCP/vector_cache/knowledge_cache.json index 8b43e0b6..55755f86 100644 --- a/MCP/vector_cache/knowledge_cache.json +++ b/MCP/vector_cache/knowledge_cache.json @@ -7243,5 +7243,2073 @@ ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\RimWorld\\MapPortal.txt\n\npublic class MapPortal : Building, IThingHolder\n{\n\tprivate static readonly Texture2D ViewPocketMapTex = ContentFinder.Get(\"UI/Commands/ViewCave\");\n\n\tprivate static readonly Texture2D CancelEnterTex = ContentFinder.Get(\"UI/Designators/Cancel\");\n\n\tprivate static readonly Texture2D DefaultEnterTex = ContentFinder.Get(\"UI/Commands/EnterCave\");\n\n\tprotected Map pocketMap;\n\n\tpublic PocketMapExit exit;\n\n\tprotected bool beenEntered;\n\n\tpublic List leftToLoad;\n\n\tpublic PortalContainerProxy containerProxy;\n\n\tpublic bool notifiedCantLoadMore;\n\n\tpublic Map PocketMap\n\t{\n\t\tget\n\t\t{\n\t\t\tMap map = pocketMap;\n\t\t\tif (map != null && map.Parent?.HasMap == false)\n\t\t\t{\n\t\t\t\tpocketMap = null;\n\t\t\t}\n\t\t\treturn pocketMap;\n\t\t}\n\t}\n\n\tpublic bool PocketMapExists => PocketMap != null;\n\n\tpublic virtual bool AutoDraftOnEnter => false;\n\n\tprotected virtual Texture2D EnterTex => DefaultEnterTex;\n\n\tpublic virtual string EnterString => \"EnterPortal\".Translate(Label);\n\n\tpublic virtual string CancelEnterString => \"CommandCancelEnterPortal\".Translate();\n\n\tpublic virtual string EnteringString => \"EnteringPortal\".Translate(Label);\n\n\tpublic bool LoadInProgress\n\t{\n\t\tget\n\t\t{\n\t\t\tif (leftToLoad != null)\n\t\t\t{\n\t\t\t\treturn leftToLoad.Any();\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool AnyPawnCanLoadAnythingNow\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!LoadInProgress)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!base.Spawned)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tIReadOnlyList allPawnsSpawned = base.Map.mapPawns.AllPawnsSpawned;\n\t\t\tfor (int i = 0; i < allPawnsSpawned.Count; i++)\n\t\t\t{\n\t\t\t\tif (allPawnsSpawned[i].CurJobDef == JobDefOf.HaulToPortal && ((JobDriver_HaulToPortal)allPawnsSpawned[i].jobs.curDriver).MapPortal == this)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (allPawnsSpawned[i].CurJobDef == JobDefOf.EnterPortal && ((JobDriver_EnterPortal)allPawnsSpawned[i].jobs.curDriver).MapPortal == this)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 0; j < allPawnsSpawned.Count; j++)\n\t\t\t{\n\t\t\t\tThing thing = allPawnsSpawned[j].mindState?.duty?.focus.Thing;\n\t\t\t\tif (thing != null && thing == this && allPawnsSpawned[j].CanReach(thing, PathEndMode.Touch, Danger.Deadly))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int k = 0; k < allPawnsSpawned.Count; k++)\n\t\t\t{\n\t\t\t\tif (allPawnsSpawned[k].IsColonist && EnterPortalUtility.HasJobOnPortal(allPawnsSpawned[k], this))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic override void ExposeData()\n\t{\n\t\tbase.ExposeData();\n\t\tMap map = pocketMap;\n\t\tif (map != null && map.Parent?.HasMap == false)\n\t\t{\n\t\t\tpocketMap = null;\n\t\t}\n\t\tScribe_References.Look(ref pocketMap, \"pocketMap\");\n\t\tScribe_References.Look(ref exit, \"exit\");\n\t\tScribe_Values.Look(ref beenEntered, \"beenEntered\", defaultValue: false);\n\t\tScribe_Collections.Look(ref leftToLoad, \"leftToLoad\", LookMode.Deep);\n\t\tif (Scribe.mode == LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\tleftToLoad?.RemoveAll((TransferableOneWay x) => x.AnyThing == null);\n\t\t}\n\t}\n\n\tpublic override void SpawnSetup(Map map, bool respawningAfterLoad)\n\t{\n\t\tbase.SpawnSetup(map, respawningAfterLoad);\n\t\tcontainerProxy = new PortalContainerProxy\n\t\t{\n\t\t\tportal = this\n\t\t};\n\t}\n\n\tprotected override void Tick()\n\t{\n\t\tbase.Tick();\n\t\tif (this.IsHashIntervalTick(60) && base.Spawned && LoadInProgress && !notifiedCantLoadMore && !AnyPawnCanLoadAnythingNow && leftToLoad[0]?.AnyThing != null)\n\t\t{\n\t\t\tnotifiedCantLoadMore = true;\n\t\t\tMessages.Message(\"MessageCantLoadMoreIntoPortal\".Translate(Label, Faction.OfPlayer.def.pawnsPlural, leftToLoad[0].AnyThing), this, MessageTypeDefOf.CautionInput);\n\t\t}\n\t}\n\n\tpublic void GetChildHolders(List outChildren)\n\t{\n\t}\n\n\tpublic ThingOwner GetDirectlyHeldThings()\n\t{\n\t\treturn containerProxy;\n\t}\n\n\tpublic void Notify_ThingAdded(Thing t)\n\t{\n\t\tSubtractFromToLoadList(t, t.stackCount);\n\t}\n\n\tpublic void AddToTheToLoadList(TransferableOneWay t, int count)\n\t{\n\t\tif (!t.HasAnyThing || count <= 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (leftToLoad == null)\n\t\t{\n\t\t\tleftToLoad = new List();\n\t\t}\n\t\tTransferableOneWay transferableOneWay = TransferableUtility.TransferableMatching(t.AnyThing, leftToLoad, TransferAsOneMode.PodsOrCaravanPacking);\n\t\tif (transferableOneWay != null)\n\t\t{\n\t\t\tfor (int i = 0; i < t.things.Count; i++)\n\t\t\t{\n\t\t\t\tif (!transferableOneWay.things.Contains(t.things[i]))\n\t\t\t\t{\n\t\t\t\t\ttransferableOneWay.things.Add(t.things[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (transferableOneWay.CanAdjustBy(count).Accepted)\n\t\t\t{\n\t\t\t\ttransferableOneWay.AdjustBy(count);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tTransferableOneWay transferableOneWay2 = new TransferableOneWay();\n\t\t\tleftToLoad.Add(transferableOneWay2);\n\t\t\ttransferableOneWay2.things.AddRange(t.things);\n\t\t\ttransferableOneWay2.AdjustTo(count);\n\t\t}\n\t}\n\n\tpublic int SubtractFromToLoadList(Thing t, int count)\n\t{\n\t\tif (leftToLoad == null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tTransferableOneWay transferableOneWay = TransferableUtility.TransferableMatchingDesperate(t, leftToLoad, TransferAsOneMode.PodsOrCaravanPacking);\n\t\tif (transferableOneWay == null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (transferableOneWay.CountToTransfer <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tint num = Mathf.Min(count, transferableOneWay.CountToTransfer);\n\t\ttransferableOneWay.AdjustBy(-num);\n\t\ttransferableOneWay.things.Remove(t);\n\t\tif (transferableOneWay.CountToTransfer <= 0)\n\t\t{\n\t\t\tleftToLoad.Remove(transferableOneWay);\n\t\t}\n\t\treturn num;\n\t}\n\n\tpublic void CancelLoad()\n\t{\n\t\tLord lord = base.Map.lordManager.lords.FirstOrDefault((Lord l) => l.LordJob is LordJob_LoadAndEnterPortal lordJob_LoadAndEnterPortal && lordJob_LoadAndEnterPortal.portal == this);\n\t\tif (lord != null)\n\t\t{\n\t\t\tbase.Map.lordManager.RemoveLord(lord);\n\t\t}\n\t\tleftToLoad.Clear();\n\t}\n\n\tpublic virtual bool IsEnterable(out string reason)\n\t{\n\t\treason = \"\";\n\t\treturn true;\n\t}\n\n\tpublic virtual Map GetOtherMap()\n\t{\n\t\tif (PocketMap == null)\n\t\t{\n\t\t\tGeneratePocketMap();\n\t\t}\n\t\treturn PocketMap;\n\t}\n\n\tpublic virtual IntVec3 GetDestinationLocation()\n\t{\n\t\treturn exit?.Position ?? IntVec3.Invalid;\n\t}\n\n\tpublic virtual void OnEntered(Pawn pawn)\n\t{\n\t\tNotify_ThingAdded(pawn);\n\t\tif (!beenEntered)\n\t\t{\n\t\t\tbeenEntered = true;\n\t\t\tif (!def.portal.enteredLetterLabel.NullOrEmpty())\n\t\t\t{\n\t\t\t\tFind.LetterStack.ReceiveLetter(def.portal.enteredLetterLabel, def.portal.enteredLetterText.Formatted(pawn.Named(\"PAWN\")), def.portal.enteredLetterDef, exit);\n\t\t\t}\n\t\t}\n\t\tif (Find.CurrentMap == base.Map)\n\t\t{\n\t\t\tdef.portal.traverseSound?.PlayOneShot(this);\n\t\t}\n\t\telse if (Find.CurrentMap == exit.Map)\n\t\t{\n\t\t\tdef.portal.traverseSound?.PlayOneShot(exit);\n\t\t}\n\t}\n\n\tpublic override IEnumerable GetGizmos()\n\t{\n\t\tforeach (Gizmo gizmo in base.GetGizmos())\n\t\t{\n\t\t\tyield return gizmo;\n\t\t}\n\t\tCommand_Action command_Action = new Command_Action();\n\t\tcommand_Action.action = delegate\n\t\t{\n\t\t\tDialog_EnterPortal window = new Dialog_EnterPortal(this);\n\t\t\tFind.WindowStack.Add(window);\n\t\t};\n\t\tcommand_Action.icon = EnterTex;\n\t\tcommand_Action.defaultLabel = EnterString + \"...\";\n\t\tcommand_Action.defaultDesc = \"CommandEnterPortalDesc\".Translate(Label);\n\t\tcommand_Action.Disabled = !IsEnterable(out var reason);\n\t\tcommand_Action.disabledReason = reason;\n\t\tyield return command_Action;\n\t\tif (LoadInProgress)\n\t\t{\n\t\t\tCommand_Action command_Action2 = new Command_Action();\n\t\t\tcommand_Action2.action = CancelLoad;\n\t\t\tcommand_Action2.icon = CancelEnterTex;\n\t\t\tcommand_Action2.defaultLabel = CancelEnterString;\n\t\t\tcommand_Action2.defaultDesc = \"CommandCancelEnterPortalDesc\".Translate();\n\t\t\tyield return command_Action2;\n\t\t}\n\t\tif (pocketMap != null)\n\t\t{\n\t\t\tyield return new Command_Action\n\t\t\t{\n\t\t\t\tdefaultLabel = \"CommandViewPocketMapLabel\".Translate(def.portal.pocketMapGenerator.label),\n\t\t\t\tdefaultDesc = \"CommandViewPocketMapDesc\".Translate(def.portal.pocketMapGenerator.label),\n\t\t\t\ticon = ViewPocketMapTex,\n\t\t\t\taction = delegate\n\t\t\t\t{\n\t\t\t\t\tCameraJumper.TryJumpAndSelect(exit);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t}\n\n\tprivate void GeneratePocketMap()\n\t{\n\t\tPocketMapUtility.currentlyGeneratingPortal = this;\n\t\tpocketMap = GeneratePocketMapInt();\n\t\tPocketMapUtility.currentlyGeneratingPortal = null;\n\t}\n\n\tprotected virtual Map GeneratePocketMapInt()\n\t{\n\t\treturn PocketMapUtility.GeneratePocketMap(new IntVec3(def.portal.pocketMapSize, 1, def.portal.pocketMapSize), def.portal.pocketMapGenerator, GetExtraGenSteps(), base.Map);\n\t}\n\n\tprotected virtual IEnumerable GetExtraGenSteps()\n\t{\n\t\treturn Enumerable.Empty();\n\t}\n}\n\n", "timestamp": "2025-08-25 14:32:36,132" + }, + "LayoutRoomDef": { + "keywords": [ + "LayoutRoomDef" + ], + "question": "LayoutRoomDef", + "embedding": [ + -0.03730578348040581, + -0.0024191075935959816, + 0.017382575199007988, + -0.0029748703818768263, + -0.005055335350334644, + 0.0047636814415454865, + 0.014543810859322548, + 0.0008214919944293797, + -0.06735262274742126, + 0.12018735706806183, + 0.0036618774756789207, + -0.07907062768936157, + -0.06735262274742126, + -0.008017242886126041, + 0.0615973174571991, + 0.03292449191212654, + -0.013843840919435024, + -0.10095115751028061, + -0.04801272228360176, + -0.03826500102877617, + 0.04277591407299042, + 0.012806849554181099, + -0.04373513162136078, + 0.027869155630469322, + -0.011225436814129353, + -0.000681741104926914, + 0.03810945153236389, + 0.044668424874544144, + 0.06408609449863434, + -0.05475316941738129, + 0.027246961370110512, + -0.003256802447140217, + 0.015178968198597431, + 0.01992320641875267, + -0.039327915757894516, + 0.06455273926258087, + 0.04780532419681549, + -0.006419627461582422, + -0.0045206365175545216, + 0.0016259708208963275, + -0.010408805683255196, + -0.007148762699216604, + -0.020739836618304253, + 0.001633262145332992, + -0.0221397764980793, + -0.008989423513412476, + 0.038705721497535706, + -0.07082654535770416, + -0.009890309534966946, + 0.013934577815234661, + 0.00489654578268528, + 0.03302818909287453, + -0.02118055894970894, + 0.012592969462275505, + -0.04917933791875839, + 0.04809049516916275, + 0.0008725314401090145, + -0.0057877106592059135, + -0.001318924012593925, + -0.003525772364810109, + 0.03059125877916813, + 0.03204304724931717, + 0.00477340305224061, + 0.012625375762581825, + 0.03002091310918331, + -0.05750119686126709, + 0.042179644107818604, + -0.01853622868657112, + 0.05063112825155258, + -0.03326151520013809, + -0.003161204745993018, + 0.017265914008021355, + -0.03883534297347069, + -0.012845736928284168, + -0.057397499680519104, + 0.0415055975317955, + -0.018030695617198944, + -0.03992418572306633, + -0.0013521400978788733, + -0.01812143251299858, + -0.008743137121200562, + 0.002944084582850337, + -0.008957017213106155, + 0.013506818562746048, + 0.028880223631858826, + 0.036009542644023895, + 0.028750598430633545, + -0.005505778826773167, + 0.006069642957299948, + 0.05941963195800781, + -0.01861400343477726, + 0.013597555458545685, + 0.02760990709066391, + 0.006374259479343891, + -0.0003674029721878469, + 0.010434730909764767, + -0.044383250176906586, + 0.012016142718493938, + 0.01654002070426941, + 0.01374014187604189, + -0.017589975148439407, + -0.02919132076203823, + -0.01791403442621231, + 0.011076369322836399, + -0.006131214089691639, + 0.05083852633833885, + 0.006740447133779526, + 0.007459860295057297, + -0.004721553530544043, + 0.02843950130045414, + 0.020584288984537125, + -0.0020075514912605286, + -0.008218160830438137, + 0.019275086000561714, + 0.005703455302864313, + 0.0636712983250618, + 0.002268419601023197, + 0.008632957004010677, + -0.05459761992096901, + 0.030669033527374268, + 0.06123436987400055, + 0.0062964847311377525, + 0.027065487578511238, + -0.037461329251527786, + 0.006377500016242266, + -0.022049039602279663, + -0.006293244194239378, + 0.02206200174987316, + 0.01984543167054653, + -0.04412400349974632, + -0.006302966270595789, + -0.02475818060338497, + 0.023500828072428703, + 0.013351269997656345, + -0.031083831563591957, + -0.022541610524058342, + 0.015865975990891457, + 0.0176547858864069, + -0.007414491847157478, + 0.013260533101856709, + 0.008185754530131817, + 0.02926909551024437, + -0.007595965173095465, + -0.009929196909070015, + 0.06351575255393982, + 0.019754694774746895, + -0.015671540051698685, + -0.042309265583753586, + -0.023474903777241707, + -0.0066043417900800705, + 0.01694185473024845, + -0.02164720557630062, + -0.03422073274850845, + 0.019404709339141846, + -0.0016996944323182106, + -0.02068798802793026, + 0.016695568338036537, + 0.028128404170274734, + -0.007680220995098352, + -0.019676920026540756, + -0.022113850340247154, + 0.03453182801604271, + 0.004595170263200998, + 0.02823210321366787, + -0.00805613026022911, + -0.015671540051698685, + -0.06284170597791672, + 0.00453359866514802, + -0.002770712599158287, + -0.02464151941239834, + -0.006675634998828173, + 0.019184349104762077, + -0.050760749727487564, + 0.029087621718645096, + -0.0017839500214904547, + -0.04871269315481186, + -0.021258333697915077, + 0.02054540067911148, + 0.03585399314761162, + -0.005534944124519825, + 0.03564659506082535, + 0.01498453225940466, + 0.06828591227531433, + 0.008607032708823681, + -0.004883583635091782, + -0.0498015321791172, + 0.00788113847374916, + 0.03984641283750534, + -0.005774748511612415, + 0.006082605104893446, + -0.026197006925940514, + 0.01944359764456749, + 0.07481896132230759, + 0.055323515087366104, + -0.07653000205755234, + 0.01564561389386654, + -0.011439315974712372, + 0.05418282374739647, + 0.07735959440469742, + 0.04243889078497887, + 0.012631856836378574, + -0.04871269315481186, + 0.05039780214428902, + 0.032509695738554, + 0.03326151520013809, + 0.016630757600069046, + 0.03279486671090126, + 0.02040281519293785, + 0.042309265583753586, + -0.002589239040389657, + 0.05729379877448082, + -0.002036716789007187, + 0.020597251132130623, + -0.030072763562202454, + -0.029424643144011497, + 0.007699664682149887, + -0.013241089880466461, + -0.006471477448940277, + -0.017382575199007988, + 0.03507624939084053, + 0.02061021327972412, + -0.04713128134608269, + 0.007012657355517149, + 0.02748028375208378, + 0.03305411338806152, + -0.013267014175653458, + 0.014621584676206112, + 0.0053113424219191074, + 0.03370223566889763, + 0.022865669801831245, + 0.04277591407299042, + -0.006228432059288025, + -0.049568209797143936, + 0.03678728640079498, + -0.033313363790512085, + -0.011951331049203873, + -0.03149862587451935, + -0.05724195018410683, + -0.006986732594668865, + 0.03261339291930199, + 0.02394154854118824, + 0.008717212826013565, + -0.04352773353457451, + 0.036294713616371155, + 0.016488170251250267, + -0.05817524343729019, + -0.07606334984302521, + -0.015956712886691093, + 0.03696876019239426, + -0.011944849975407124, + -0.016241885721683502, + 0.017888110131025314, + -0.008393152616918087, + 0.036709509789943695, + 0.033805932849645615, + 0.016993703320622444, + -0.023824887350201607, + 0.0002671469119377434, + -0.00017185304022859782, + -0.007265424355864525, + 0.0013934577582404017, + 0.051305171102285385, + -0.03022831305861473, + -0.022036077454686165, + 0.018730664625763893, + 0.03155047819018364, + -0.01498453225940466, + 0.030357936397194862, + -0.032691169530153275, + -0.05288658291101456, + -0.011264324188232422, + 0.013182759284973145, + 0.023993398994207382, + -0.009656986221671104, + -0.008918129839003086, + 0.028465425595641136, + 0.015062307007610798, + 0.023423053324222565, + -0.03308004140853882, + -0.016656681895256042, + 0.014971570111811161, + 0.03751318156719208, + 0.0002876032085623592, + -0.03720208257436752, + -0.0052627334371209145, + 0.005914093926548958, + 0.04096117988228798, + -0.0003821882128249854, + 0.00034836443956010044, + 0.01860104128718376, + 0.048608992248773575, + -0.004809049889445305, + 0.02919132076203823, + 0.017732560634613037, + 0.05407912656664848, + 0.01317627727985382, + 0.022800859063863754, + 0.028050629422068596, + 0.011685601435601711, + 0.028672825545072556, + -0.009741242043673992, + 0.03188749775290489, + -0.056153107434511185, + 0.03051348589360714, + 0.04490174725651741, + 0.021089822053909302, + -0.048323821276426315, + -0.016345584765076637, + -0.07549300789833069, + -0.0892331451177597, + -0.006649710237979889, + 0.005146072246134281, + 0.026067381724715233, + -0.04472027346491814, + -0.02228236198425293, + 0.026754390448331833, + -0.007433935534209013, + -0.001322974800132215, + 0.027428435161709785, + -0.010687497444450855, + -0.08679621666669846, + -0.03282079100608826, + -0.053456928580999374, + 0.004977561067789793, + 0.011581902392208576, + -0.008198716677725315, + 0.02068798802793026, + -0.03880941867828369, + -9.250899165635929e-05, + -0.025639623403549194, + 0.02103797160089016, + 0.011620789766311646, + -0.009974565356969833, + 0.047079429030418396, + -0.024032285436987877, + -0.014077164232730865, + -0.02843950130045414, + 0.056412357836961746, + 0.0200787540525198, + -0.01848438009619713, + -0.03341706097126007, + -0.06097511947154999, + -0.005334026645869017, + -0.005826598033308983, + 0.01909361220896244, + 0.02552296221256256, + 0.010525466874241829, + 0.028361726552248, + -0.0636194497346878, + -0.0004573296173475683, + -0.01943063549697399, + -0.006448793224990368, + -0.0034512383863329887, + 0.007991318590939045, + 0.026754390448331833, + -0.012307796627283096, + -0.029295019805431366, + -0.011873556300997734, + -0.008769062347710133, + 0.008166310377418995, + 0.007466341368854046, + 0.05558276176452637, + 0.012605932541191578, + -0.0030947725754231215, + 0.028543200343847275, + -0.07507821172475815, + -0.008963498286902905, + 0.07554485648870468, + -0.004679425619542599, + 0.05646420642733574, + 0.022100888192653656, + -0.03411703184247017, + 0.04847937077283859, + 0.031031981110572815, + -0.03523179888725281, + 0.05319768190383911, + 0.01598263718187809, + 0.0013456589076668024, + -0.021906452253460884, + -0.0014234333066269755, + -0.04503137245774269, + 0.023630451411008835, + -0.0026086827274411917, + -0.0024191075935959816, + -0.011776338331401348, + -0.02526371367275715, + -0.042231492698192596, + 0.026832163333892822, + 0.01204206794500351, + -0.01744738779962063, + 0.049360811710357666, + -0.016902966424822807, + 0.018639927729964256, + -0.00612473301589489, + 0.08549997955560684, + -0.006578417029231787, + 0.027869155630469322, + 0.019197311252355576, + 0.006831184029579163, + -0.018043657764792442, + 0.013377195224165916, + -0.030150538310408592, + -0.03357261046767235, + -0.03626878932118416, + -0.04007973521947861, + -0.007200612220913172, + -0.014621584676206112, + -0.024434121325612068, + 0.02309899404644966, + 0.01519193034619093, + 0.009715317748486996, + -0.013182759284973145, + 0.016086336225271225, + 0.0025066037196666002, + -0.03976863622665405, + 0.0005496867233887315, + -0.0014850047882646322, + 0.00553170358762145, + 0.02366933971643448, + -0.0456535667181015, + 0.014141975902020931, + 0.007550596725195646, + -0.08259639889001846, + -0.016099298372864723, + -0.016643719747662544, + -0.011957812123000622, + 0.0071228379383683205, + -0.008464446291327477, + -0.026391442865133286, + 0.0484275184571743, + -0.0422055684030056, + -0.01183466985821724, + -0.10121040791273117, + 0.06284170597791672, + -0.010726384818553925, + -0.03085050731897354, + -0.0072265369817614555, + 0.021413881331682205, + -0.012897586449980736, + -0.029035771265625954, + -0.02740250900387764, + 0.003467441536486149, + 0.05340507999062538, + -0.023345278576016426, + -0.06242690980434418, + -0.034609604626894, + 0.07502636313438416, + 0.016228921711444855, + 0.027713607996702194, + -0.018445491790771484, + -0.00501968851312995, + 0.009780129417777061, + 0.01221057865768671, + 0.010603241622447968, + 0.02381192520260811, + -0.0004719122953247279, + 0.03492069989442825, + -0.0020221341401338577, + -0.016436321660876274, + -0.012605932541191578, + 1.7633417883189395e-05, + 0.04422770068049431, + -0.021128708496689796, + 0.027921006083488464, + -0.008619994856417179, + 0.02360452711582184, + 0.00039697345346212387, + 0.006121492478996515, + -0.03507624939084053, + -0.02201015129685402, + 0.009598655626177788, + -0.024369308724999428, + 0.037539105862379074, + 0.0010515745962038636, + 0.024330420419573784, + -0.04601651430130005, + 0.0020172731019556522, + 0.011575421318411827, + 0.009054235182702541, + -0.023928586393594742, + 0.01875659078359604, + 0.017589975148439407, + -0.004465545993298292, + 0.002642708830535412, + -0.11054333299398422, + -0.043424032628536224, + -0.03030608594417572, + -0.014154938980937004, + -0.010214369744062424, + 0.009929196909070015, + 0.011329135857522488, + -0.004530358128249645, + -0.05042373016476631, + 0.045368392020463943, + -0.036839134991168976, + 0.0005585983162745833, + -0.019599145278334618, + 0.02732473611831665, + -1.1671221727738157e-05, + -0.006857108790427446, + 0.02893207222223282, + 0.015036381781101227, + -0.026326630264520645, + 0.0038336291909217834, + -0.008989423513412476, + 0.0010094468016177416, + -0.014777134172618389, + 0.04656093567609787, + -0.023552676662802696, + -0.005246530752629042, + 0.00975420419126749, + 0.022515686228871346, + 0.03238007053732872, + -0.009507918730378151, + -0.020843535661697388, + -0.009987527504563332, + 0.05475316941738129, + 0.05485687032341957, + -0.0021323144901543856, + -0.03201712295413017, + -0.021258333697915077, + 0.003334576962515712, + 0.006147417239844799, + 0.040727853775024414, + -0.03222452104091644, + 0.0010839805472642183, + -0.007945950143039227, + -0.023539714515209198, + 0.026754390448331833, + -0.04969783499836922, + -0.04534246772527695, + -0.005288658197969198, + -0.04656093567609787, + 0.014193826355040073, + -0.0027383065316826105, + -0.009209783747792244, + 0.018795477226376534, + 0.019949130713939667, + -0.050138555467128754, + 0.03777242824435234, + 0.009948640130460262, + -0.018834363669157028, + 0.01376606710255146, + 0.012651300989091396, + 0.013467931188642979, + 0.0034155920147895813, + -0.006283522583544254, + -0.0035905842669308186, + 0.012223541736602783, + -0.06056032329797745, + 0.002673494629561901, + 0.011964293196797371, + -0.04552394151687622, + -0.03855017200112343, + -0.01806958205997944, + -0.012832773849368095, + 0.05796784535050392, + 0.016138184815645218, + 0.02096019685268402, + 0.016786305233836174, + 0.016565944999456406, + -0.03722800686955452, + -0.007777438964694738, + -0.029217245057225227, + 0.0083088967949152, + 0.013312382623553276, + -0.05978257954120636, + -0.0124503830447793, + -0.05114962160587311, + -0.029632041230797768, + -0.02401932328939438, + -0.028361726552248, + -0.03785020112991333, + -0.03619101643562317, + 0.011659677140414715, + -0.008457965217530727, + 0.008658882230520248, + 0.042516667395830154, + 0.01832883059978485, + 0.006682116072624922, + -0.025847021490335464, + -0.008224641904234886, + 0.010253257118165493, + -0.009170896373689175, + -0.017239989712834358, + -0.007472822442650795, + 0.025354450568556786, + 0.010940263979136944, + 0.01834179274737835, + -0.0595233328640461, + 0.03378000855445862, + 0.005444207228720188, + -0.026274781674146652, + -0.011769857257604599, + 0.004578967113047838, + 0.014478998258709908, + -0.027998780831694603, + 0.027091411873698235, + 0.006740447133779526, + 0.05480501800775528, + 0.04096117988228798, + -0.07637444883584976, + 0.00541504193097353, + 0.004601651336997747, + 0.010693978518247604, + -0.0008579487330280244, + -0.021919414401054382, + 0.036709509789943695, + 0.033805932849645615, + 0.017188139259815216, + 0.04329441115260124, + 0.03510217368602753, + -0.022100888192653656, + -0.013299420475959778, + 0.015308592468500137, + 0.005249771289527416, + -0.009281077422201633, + 0.03637249022722244, + -0.018289944157004356, + -0.012307796627283096, + -0.01910657435655594, + -0.02158239297568798, + -0.0023704986087977886, + -0.0040831551887094975, + -0.04067600518465042, + -0.03126530349254608, + -0.005236808676272631, + -0.04005381092429161, + -0.03139492869377136, + -0.032768942415714264, + 0.017382575199007988, + 0.038290925323963165, + -0.021063897758722305, + 0.032509695738554, + 0.04269814118742943, + 0.022437911480665207, + -0.0670933723449707, + 0.012599450536072254, + -0.05042373016476631, + -0.036502111703157425, + 0.0470275804400444, + -0.004523877054452896, + 0.01708444021642208, + -0.018238093703985214, + -0.05895298719406128, + -0.026884013786911964, + -0.043346259742975235, + 0.012385571375489235, + -0.010454174131155014, + 0.01958618313074112, + -0.008937573060393333, + 0.04129819944500923, + 0.048194196075201035, + 0.04135005176067352, + 0.006980251520872116, + -0.02040281519293785, + -0.005593274720013142, + -0.0034512383863329887, + -0.007375604473054409, + 0.0345836766064167, + -0.01784922182559967, + -0.04969783499836922, + 0.0025697953533381224, + -0.0017110365442931652, + -0.006714522372931242, + 0.01708444021642208, + -0.007446897681802511, + -0.006312687881290913, + 0.006251116283237934, + -0.006811740342527628, + -0.00685062725096941, + 0.03416888043284416, + 0.005551146809011698, + 0.014388262294232845, + 0.01674741879105568, + 0.015269705094397068, + -0.0003929226950276643, + -0.021569430828094482, + 0.03422073274850845, + 0.010739346966147423, + -0.020584288984537125, + 0.02081761136651039, + -0.005402079317718744, + -0.010382880456745625, + -0.048323821276426315, + 0.029632041230797768, + -0.019002875313162804, + 0.02649514190852642, + -0.02166016772389412, + 0.010752309113740921, + 0.0352836474776268, + -0.015619689598679543, + 0.0739893689751625, + -0.002009171759709716, + -0.050890374928712845, + 0.007647814694792032, + -0.07466341555118561, + 0.007096913177520037, + 0.030461635440587997, + 0.031083831563591957, + 0.0006059920997358859, + -0.047909025102853775, + -0.05057927593588829, + -0.011666158214211464, + -0.0007408820674754679, + 0.010940263979136944, + -0.04132412374019623, + -0.03300226479768753, + -0.006108530331403017, + -0.004313237965106964, + -0.014803058467805386, + 0.01860104128718376, + -0.02794693037867546, + -0.005009966902434826, + -0.011154143139719963, + 0.014103089459240437, + -0.02532852627336979, + 0.05423467233777046, + -0.020441701635718346, + -0.009935677982866764, + -0.015749312937259674, + 0.005888169165700674, + 0.01965099573135376, + 0.013312382623553276, + -0.05032002925872803, + 0.022930482402443886, + -0.06278985738754272, + -0.014323449693620205, + 0.005820116959512234, + 0.07528560608625412, + -0.03541327267885208, + -0.031161604449152946, + 0.008030205965042114, + -0.004190095234662294, + -0.018730664625763893, + -0.06538233906030655, + -0.05042373016476631, + -0.023850811645388603, + -0.03984641283750534, + -0.053923577070236206, + 2.351966395508498e-05, + -0.021880527958273888, + -0.020700950175523758, + -0.0581233948469162, + -0.004400734324008226, + 0.007628371473401785, + -0.01183466985821724, + 0.0560494102537632, + 0.054701320827007294, + -0.013390157371759415, + 0.038783494383096695, + -0.03715023398399353, + -0.0615973174571991, + -0.003979456145316362, + 0.023086031898856163, + 0.022256437689065933, + 0.014958607032895088, + 0.0022279121913015842, + 0.05265326052904129, + 0.01006530225276947, + 0.0005602186429314315, + -0.021258333697915077, + 0.0162678100168705, + 0.023980436846613884, + 0.0001158514351118356, + -0.0014461175305768847, + -0.009494956582784653, + 0.03541327267885208, + 0.015749312937259674, + -0.024161910638213158, + -0.017032591626048088, + -0.06616008281707764, + -0.008626475930213928, + 0.03839462250471115, + 0.008464446291327477, + 0.035750292241573334, + 0.016799267381429672, + 0.020662061870098114, + -0.04744237661361694, + -0.020467625930905342, + -0.007518190890550613, + -0.039327915757894516, + -0.003093152306973934, + -0.024576706811785698, + 0.01328645832836628, + 0.06045662611722946, + -0.00019686641462612897, + 0.00784873217344284, + -0.01374014187604189, + 0.05423467233777046, + -0.012612413614988327, + -0.022787895053625107, + 0.04816827178001404, + 0.01978061906993389, + 0.015412291511893272, + 0.019054725766181946, + -0.004118802025914192, + 0.11977256089448929, + 0.017615899443626404, + 0.03051348589360714, + -0.006484439596533775, + -0.03678728640079498, + -0.020636137574911118, + 0.00337994541041553, + -0.012029105797410011, + 0.005000245291739702, + -0.037616878747940063, + -0.03569844365119934, + -0.04510914534330368, + 0.015075269155204296, + -0.030954206362366676, + -0.03611323982477188, + 0.010959707200527191, + 0.00854870118200779, + 0.03987233713269234, + -0.012443901970982552, + -0.05993812903761864, + -0.00553170358762145, + -0.006358056329190731, + -0.004744237754493952, + 0.018030695617198944, + 0.07554485648870468, + 0.013649404980242252, + -0.02609330788254738, + 0.005227087065577507, + -0.016786305233836174, + -0.00040507494122721255, + 0.0028663103003054857, + 0.058849286288022995, + -0.029865365475416183, + 0.039613090455532074, + -0.013416081666946411, + -0.05630865693092346, + -0.030409786850214005, + -0.0005095842643640935, + -0.03657988831400871, + 0.05485687032341957, + 0.014816020615398884, + -0.0047053503803908825, + 0.017006665468215942, + -0.034765150398015976, + -0.017525162547826767, + -0.011212474666535854, + -0.03238007053732872, + -0.010577316395938396, + 0.032276369631290436, + -0.007239499129354954, + -0.021154632791876793, + -0.04036490619182587, + -0.05817524343729019, + -0.016164110973477364, + 0.03489477559924126, + 0.003021859098225832, + 0.005094222258776426, + -0.011692083440721035, + 0.04007973521947861, + -0.04523877054452896, + 0.05817524343729019, + 0.008723693899810314, + 0.028180252760648727, + -0.04720905423164368, + -0.05776044726371765, + -0.05138294771313667, + 0.03409110754728317, + -0.019910244271159172, + 0.024887803941965103, + 0.056982703506946564, + 0.027091411873698235, + 0.022463835775852203, + 0.03689098358154297, + 0.06688597053289413, + -0.0032065731938928366, + -0.032198596745729446, + -0.0043586064130067825, + 0.02020837925374508, + -0.0595233328640461, + -0.0009567870292812586, + 0.011439315974712372, + 0.011393947526812553, + 0.03883534297347069, + -0.0058460417203605175, + -0.03302818909287453, + 0.010752309113740921, + 0.005534944124519825, + 0.03471330180764198, + -0.0052756960503757, + -0.024615593254566193, + 0.005210883915424347, + -0.006153898313641548, + -0.02552296221256256, + 0.0052724555134773254, + -0.04697573184967041, + 0.002205227967351675, + 0.024110060185194016, + 0.05506426841020584, + 0.0032324979547411203, + -0.02484891749918461, + -0.02573036029934883, + -0.06289355456829071, + 0.004961357917636633, + -0.0019232957856729627, + -0.02815432846546173, + 0.060508474707603455, + -0.0152178555727005, + -0.05340507999062538, + 0.0290616974234581, + -0.010331030935049057, + -0.01079767756164074, + -0.022152738645672798, + -0.05869373679161072, + -0.018523266538977623, + 0.04954228550195694, + 0.05687900260090828, + -0.02960611693561077, + -0.03030608594417572, + -0.07077469676733017, + -0.024304496124386787, + -0.0016867320518940687, + -0.011815225705504417, + 0.004695628769695759, + -0.013908653520047665, + 0.010194926522672176, + 0.0768410935997963, + -0.011951331049203873, + 0.03657988831400871, + -0.017771447077393532, + -0.03424665704369545, + 0.03238007053732872, + 0.03886127099394798, + 0.011199511587619781, + -0.05008670687675476, + 0.004306756891310215, + 0.03800575062632561, + 0.042101867496967316, + 0.03308004140853882, + 0.0009276216151192784, + -0.02360452711582184, + -0.03100605681538582, + -0.04648315906524658, + -0.008522776886820793, + -0.0006104479543864727, + -0.02504335343837738, + 0.00662702601402998, + -0.007745032664388418, + 0.028206178918480873, + 0.03196527436375618, + -0.0012257567141205072, + 0.019676920026540756, + 0.0018827883759513497, + 0.04609428718686104, + -0.02185460366308689, + -0.013960503041744232, + -0.003943809773772955, + -0.006471477448940277, + 0.004008621443063021, + 0.014025314711034298, + -0.0028014983981847763, + -0.017602937296032906, + 0.020519476383924484, + -0.020091716200113297, + 0.06315280497074127, + 0.009054235182702541, + 0.03927606716752052, + -0.024239685386419296, + 0.052627336233854294, + -0.03105790540575981, + 0.013442006893455982, + -0.04308701306581497, + -0.021971264854073524, + -0.01778441108763218, + 0.018302906304597855, + 0.02166016772389412, + 0.01546414103358984, + -0.032068971544504166, + -0.03295041620731354, + -0.010959707200527191, + -0.02588590979576111, + -0.08487778156995773, + 0.04523877054452896, + 0.038705721497535706, + 0.014790096320211887, + 0.030150538310408592, + -0.010713421739637852, + 0.00788761954754591, + 0.020117642357945442, + -0.03730578348040581, + 0.04324255883693695, + 0.03790205344557762, + -0.00079354178160429, + 0.037124309688806534, + -0.025134090334177017, + 0.03914644196629524, + -0.04197224602103233, + 0.06963400542736053, + 0.012476308271288872, + 0.030150538310408592, + 0.01819920726120472, + -0.0016535159666091204, + 0.03976863622665405, + 0.03673543781042099, + -0.011432834900915623, + -0.02601553313434124, + 0.04474619776010513, + -0.03748725354671478, + 0.03831684961915016, + 0.038446471095085144, + 0.001637312932871282, + 0.026248855516314507, + -0.05527166649699211, + 0.03473922610282898, + 0.045575790107250214, + -0.011342098005115986, + -0.0048673804849386215, + 0.003295689821243286, + -0.0021549987141042948, + 0.019806545227766037, + -0.03085050731897354, + 0.01207447424530983, + 0.006792296655476093, + -0.031446777284145355, + -0.046120211482048035, + 0.02236013673245907, + 0.052342165261507034, + -0.06325650215148926 + ], + "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\RimWorld\\LayoutRoomDef.txt\n\npublic class LayoutRoomDef : Def\n{\n\tpublic SketchResolverDef sketchResolverDef;\n\n\tpublic IntRange areaSizeRange = new IntRange(25, int.MaxValue);\n\n\tpublic bool requiresSingleRectRoom;\n\n\tpublic List floorTypes;\n\n\tpublic TerrainDef edgeTerrain;\n\n\tpublic int minSingleRectWidth;\n\n\tpublic int minSingleRectHeight;\n\n\tpublic Type roomContentsWorkerType = typeof(RoomContentsWorker);\n\n\tpublic bool canBeInMixedRoom;\n\n\tpublic bool dontPlaceRandomly;\n\n\tpublic bool isValidPlayerSpawnRoom = true;\n\n\tpublic bool dontDestroyWallsDoors;\n\n\tpublic SimpleCurve threatPointsScaleCurve;\n\n\tpublic int minConnectedRooms;\n\n\tpublic int minAdjRooms;\n\n\tpublic bool spawnJunk = true;\n\n\tpublic bool canMergeWithAdjacentRoom;\n\n\tpublic bool canRemoveBorderDoors;\n\n\tpublic bool canRemoveBorderWalls;\n\n\tpublic RoofDef roofDef;\n\n\tpublic bool noRoof;\n\n\tpublic FloatRange? itemsPer100CellsRange;\n\n\tpublic ThingSetMakerDef thingSetMakerDef;\n\n\tpublic List scatter = new List();\n\n\tpublic List scatterTerrain = new List();\n\n\tpublic List fillEdges = new List();\n\n\tpublic List fillInterior = new List();\n\n\tpublic List wallAttachments = new List();\n\n\tpublic List prefabs = new List();\n\n\tpublic List parts = new List();\n\n\t[Unsaved(false)]\n\tprivate RoomContentsWorker workerInt;\n\n\tpublic RoomContentsWorker ContentsWorker => GetWorker(ref workerInt);\n\n\tpublic bool CanResolve(LayoutRoom room)\n\t{\n\t\tint area = room.Area;\n\t\tif (room.requiredDef != this && dontPlaceRandomly)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif ((minSingleRectHeight > 0 || minSingleRectWidth > 0) && !room.TryGetRectOfSize(minSingleRectWidth, minSingleRectHeight, out var _))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (!SatisfiesMinAdjRooms(room))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (area >= areaSizeRange.min && area <= areaSizeRange.max && room.connections.Count >= minConnectedRooms)\n\t\t{\n\t\t\tif (requiresSingleRectRoom)\n\t\t\t{\n\t\t\t\treturn room.rects.Count == 1;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate bool SatisfiesMinAdjRooms(LayoutRoom room)\n\t{\n\t\tif (minAdjRooms <= 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (room.connections.Count < minAdjRooms)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tint num = 0;\n\t\tforeach (LayoutRoom connection in room.connections)\n\t\t{\n\t\t\tint num2 = num;\n\t\t\tforeach (CellRect rect in connection.rects)\n\t\t\t{\n\t\t\t\tforeach (CellRect rect2 in room.rects)\n\t\t\t\t{\n\t\t\t\t\tif (rect.OverlapsCardinal(rect2))\n\t\t\t\t\t{\n\t\t\t\t\t\tnum++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (num != num2)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (num >= minAdjRooms)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (num < minAdjRooms)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic void ResolveSketch(LayoutRoomParams parms)\n\t{\n\t\tSketchResolveParams parms2 = default(SketchResolveParams);\n\t\tforeach (CellRect rect in parms.room.rects)\n\t\t{\n\t\t\tif (!floorTypes.NullOrEmpty())\n\t\t\t{\n\t\t\t\tTerrainDef def = floorTypes.RandomElement();\n\t\t\t\tforeach (IntVec3 item in rect)\n\t\t\t\t{\n\t\t\t\t\tparms.sketch.AddTerrain(def, item);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (edgeTerrain != null)\n\t\t\t{\n\t\t\t\tforeach (IntVec3 edgeCell in rect.ContractedBy(1).EdgeCells)\n\t\t\t\t{\n\t\t\t\t\tbool flag = true;\n\t\t\t\t\tforeach (CellRect rect2 in parms.room.rects)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!(rect2 == rect) && rect2.ContractedBy(1).Contains(edgeCell))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (flag)\n\t\t\t\t\t{\n\t\t\t\t\t\tparms.sketch.AddTerrain(edgeTerrain, edgeCell);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tparms2.rect = rect;\n\t\t\tparms2.sketch = parms.sketch;\n\t\t\tif (sketchResolverDef != null)\n\t\t\t{\n\t\t\t\tsketchResolverDef.Resolve(parms2);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic void PreResolveContents(Map map, LayoutRoom room, Faction faction, float? threatPoints = null)\n\t{\n\t\tContentsWorker?.PreFillRooms(map, room, faction, threatPoints);\n\t}\n\n\tpublic void PostResolveContents(Map map, LayoutRoom room, Faction faction, float? threatPoints = null)\n\t{\n\t\tContentsWorker?.PostFillRooms(map, room, faction, threatPoints);\n\t}\n\n\tpublic void ResolveContents(Map map, LayoutRoom room, float? threatPoints = null, Faction faction = null)\n\t{\n\t\tContentsWorker?.FillRoom(map, room, faction, threatPoints);\n\t}\n\n\tprivate RoomContentsWorker GetWorker(ref RoomContentsWorker worker)\n\t{\n\t\tif (roomContentsWorkerType == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tif (worker != null)\n\t\t{\n\t\t\treturn worker;\n\t\t}\n\t\tworker = (RoomContentsWorker)Activator.CreateInstance(roomContentsWorkerType);\n\t\tworker.Initialize(this);\n\t\treturn worker;\n\t}\n}\n\n", + "timestamp": "2025-08-25 18:18:04,672" + }, + "PrefabDef": { + "keywords": [ + "PrefabDef" + ], + "question": "PrefabDef", + "embedding": [ + -0.00308246910572052, + 0.03501245379447937, + 0.01863211765885353, + -0.009116968140006065, + 0.052450031042099, + -0.0035767625086009502, + -0.015460401773452759, + 0.009727969765663147, + -0.03630311042070389, + 0.15707547962665558, + 0.031415097415447235, + -0.06821250170469284, + -0.03509483486413956, + -0.06837726384401321, + 0.0692560076713562, + 0.04454133287072182, + -0.0008787439437583089, + -0.11116111278533936, + 0.01993650384247303, + -0.0346280038356781, + 0.0041568707674741745, + 0.03935125097632408, + 0.0007071142899803817, + -0.017506226897239685, + -0.00046640363871119916, + 0.0011233162367716432, + -0.04432164877653122, + -0.015446671284735203, + -0.0014923200942575932, + -0.0020818680059164762, + -0.00777139188721776, + 0.002893676282837987, + -0.03157985955476761, + 0.00682399608194828, + -0.030783498659729958, + 0.044788479804992676, + 0.036907244473695755, + 0.018330048769712448, + 0.017780834808945656, + -0.08073460310697556, + -0.03698962926864624, + -0.023314176127314568, + -0.008114650845527649, + -0.04852314293384552, + -0.028888707980513573, + 0.02188621647655964, + 0.007723335642367601, + -0.0446237176656723, + -0.031167950481176376, + 0.0626654252409935, + -0.001646786811761558, + 0.006003606133162975, + -0.0031356741674244404, + 0.021350732073187828, + 0.02059556171298027, + 0.0165176410228014, + 0.03212907537817955, + 0.026527082547545433, + 0.007235907018184662, + 0.005392604507505894, + 0.030975723639130592, + 0.03147001937031746, + -0.044404029846191406, + -0.005087103694677353, + 0.0028009964153170586, + -0.03424355387687683, + -0.03852742910385132, + 0.01167768333107233, + 0.020128728821873665, + -0.04393719881772995, + -0.028229650110006332, + -0.008869822137057781, + -0.016833439469337463, + -0.019826659932732582, + -0.03083842061460018, + 0.07601135224103928, + -0.009274867363274097, + -0.0015764186391606927, + -0.031167950481176376, + -0.04473355785012245, + -0.006515062414109707, + 0.032348763197660446, + -0.050692543387413025, + -0.018316319212317467, + -0.029987137764692307, + 0.05242256820201874, + -0.0236162431538105, + -0.03163478150963783, + 0.0008976231911219656, + 0.025003012269735336, + -0.05247749015688896, + 0.030618734657764435, + 0.018467353656888008, + -0.019579512998461723, + 0.0514339804649353, + 0.019579512998461723, + -0.015172063373029232, + 0.01476015243679285, + 0.009144429117441177, + 0.028696483001112938, + -0.02202351950109005, + -0.05991935357451439, + 0.008354933001101017, + 0.06579595059156418, + -0.029163315892219543, + 0.04632628336548805, + 0.01370291318744421, + -0.01966189593076706, + -0.015323097817599773, + 0.00672445073723793, + -0.0774393081665039, + 0.015954695641994476, + -0.010448814369738102, + 0.07238653302192688, + -0.03734661638736725, + 0.024206649512052536, + -0.02254527434706688, + -0.0022637953516095877, + 0.001814125687815249, + 0.018700769171118736, + 0.024453796446323395, + -0.021048663184046745, + 0.0040710559114813805, + -0.03460054472088814, + 0.04212478920817375, + 0.004740411881357431, + 0.0194147489964962, + 0.03108556754887104, + -0.025771912187337875, + 0.016682405024766922, + -0.02806488424539566, + -0.026032790541648865, + -0.00157384411431849, + 0.02858663909137249, + 0.022627657279372215, + -0.06343433260917664, + 0.039021722972393036, + 0.028943628072738647, + 0.004047027789056301, + 0.027199871838092804, + -0.05203811824321747, + 0.003796448465436697, + 0.01809663325548172, + 0.020375875756144524, + 0.11983870714902878, + -0.041108742356300354, + -0.0071260640397667885, + -0.024975551292300224, + -0.0430309921503067, + 0.006920108571648598, + -0.022119633853435516, + -0.031003184616565704, + -0.05008840560913086, + 0.017382653430104256, + 0.026774229481816292, + -0.038609813898801804, + 0.019236253574490547, + -0.03957093879580498, + 0.014252128079533577, + -0.03473784774541855, + -0.0013764699688181281, + -0.04418434575200081, + 0.020636752247810364, + -0.00043508122325874865, + 0.014128555543720722, + -0.04736979305744171, + -0.052916862070560455, + 0.028366953134536743, + -0.028421875089406967, + -0.03594611957669258, + -0.03465546295046806, + -0.01746503636240959, + -0.036797404289245605, + -0.000994593952782452, + -0.0008452761685475707, + -0.016572561115026474, + -0.014018712565302849, + 0.0190165676176548, + 0.013064451515674591, + 0.017094315961003304, + 0.00970050971955061, + -0.0008740241173654795, + 0.06239081919193268, + -0.023520130664110184, + 0.04130096733570099, + -0.040834132581949234, + 0.008512832224369049, + 0.006309106945991516, + -0.04036730155348778, + 0.006721018347889185, + -0.005581397097557783, + 0.02913585491478443, + 0.03322750702500343, + 0.03789583221077919, + -0.04536515846848488, + -0.019304906949400902, + -0.011059816926717758, + 0.06519182026386261, + 0.02976745180785656, + 0.002219171728938818, + -0.009659318253397942, + -0.043717510998249054, + 0.02504420280456543, + 0.04959411174058914, + 0.025469845160841942, + 0.004925771616399288, + 0.05969966575503349, + 0.0037346617318689823, + 0.020279763266444206, + 0.0011464862618595362, + 0.029657607898116112, + -0.020224841311573982, + -0.006312539801001549, + -0.0013361370656639338, + -0.016297955065965652, + 0.008615809492766857, + -0.07551705837249756, + -0.03188192844390869, + -0.010242858901619911, + 0.02820218913257122, + -0.008128381334245205, + 0.0356440506875515, + -0.014348241500556469, + 0.035726435482501984, + 0.040339838713407516, + 0.004047027789056301, + -0.0019376990385353565, + -0.04418434575200081, + -0.007791987620294094, + 0.0011902517871931195, + 0.047150105237960815, + 0.0022140229120850563, + -0.06859695166349411, + 0.05310908704996109, + -0.012103324756026268, + -0.001893075299449265, + -0.011107873171567917, + -0.06255558878183365, + 0.0004264997551217675, + 0.004088218789547682, + 0.031415097415447235, + 0.0328155942261219, + -0.007764526642858982, + -0.007894964888691902, + -0.038637273013591766, + -0.05288940295577049, + -0.1062730997800827, + -0.03119540959596634, + 0.04179525747895241, + 0.0010083243250846863, + -0.013421440497040749, + -0.003992106299847364, + -0.035589128732681274, + 0.008650136180222034, + 0.04418434575200081, + -0.021748913452029228, + -0.005464688874781132, + -0.02398696355521679, + -0.004634001292288303, + 0.01048314105719328, + -0.013153698295354843, + 0.018151555210351944, + -0.014416893012821674, + 0.04091651365160942, + 0.045172929763793945, + 0.020938821136951447, + -0.004342230968177319, + 0.030756037682294846, + 0.0020200812723487616, + -0.010084959678351879, + -0.020417066290974617, + -0.005368576385080814, + 0.021199697628617287, + -0.04132842645049095, + 0.006240454968065023, + 0.011046086438000202, + 0.04978633671998978, + 0.0007689009653404355, + -0.052642256021499634, + -0.038884419947862625, + -0.02320433221757412, + 0.02150176651775837, + 0.032843057066202164, + -0.009515149518847466, + -0.015707548707723618, + -0.005269031040370464, + 0.048715367913246155, + 0.010730287060141563, + 0.020677942782640457, + 0.026279935613274574, + -0.017094315961003304, + -0.006611175369471312, + 0.02152922749519348, + 0.023959502577781677, + -0.0002546555479057133, + -0.016682405024766922, + 0.045172929763793945, + 0.027776546776294708, + -0.037703607231378555, + 0.004455506335943937, + -0.009110103361308575, + 0.00806659460067749, + -0.019249984994530678, + 0.01134815439581871, + 0.03514975681900978, + 0.034957531839609146, + -0.03083842061460018, + -0.03855489194393158, + 0.03726423531770706, + -0.0690363198518753, + 0.030481431633234024, + 0.004558484070003033, + 0.0071466597728431225, + -0.003029263811185956, + 0.023163141682744026, + -0.008801169693470001, + -0.028257111087441444, + 0.009769161231815815, + 0.005330817773938179, + 0.04022999480366707, + -0.10297780483961105, + -0.004434911068528891, + -0.041493192315101624, + -0.00355616700835526, + 0.024165458977222443, + -0.04863298684358597, + 0.07293574512004852, + -0.0047919005155563354, + 0.004397152457386255, + -0.02505793236196041, + -0.023561323061585426, + -0.000760748574975878, + -0.0073457504622638226, + 0.06683946400880814, + -0.0020681375171989202, + -0.020142458379268646, + 0.037181854248046875, + 0.05088476836681366, + 0.00646014092490077, + -0.0364404134452343, + 0.009007125161588192, + -0.06398354470729828, + 0.032074153423309326, + 0.005262165796011686, + 0.03446323797106743, + 0.008759979158639908, + 0.055662937462329865, + 0.08930235356092453, + -0.06167684122920036, + -0.006271348334848881, + -0.02886124700307846, + 8.763840742176399e-05, + -0.03262336924672127, + -0.0007963617099449039, + 0.013435170985758305, + -0.009549475274980068, + 0.013277271762490273, + 0.007215311750769615, + -0.020224841311573982, + 0.019249984994530678, + -0.006954434793442488, + 0.0354243665933609, + -0.0642581507563591, + -0.03698962926864624, + 0.038499969989061356, + -0.00904831662774086, + 0.016050808131694794, + 0.048468220978975296, + -0.014705230481922626, + 0.007469323463737965, + -0.018041711300611496, + -0.05827170982956886, + 0.006645501125603914, + 0.024302762001752853, + -0.011897369287908077, + 0.01938728801906109, + 0.004345663357526064, + 0.008602079935371876, + -0.01731400191783905, + -0.0011962588177993894, + 0.003974943421781063, + 0.042564161121845245, + 0.025112854316830635, + 0.013510688208043575, + -0.012075863778591156, + -0.01676478609442711, + -0.014128555543720722, + 0.029273157939314842, + 0.019977694377303123, + -0.02990475483238697, + 0.08864329755306244, + 0.017670990899205208, + 0.0398455448448658, + -0.0016287656035274267, + 0.03254098817706108, + 0.01784948632121086, + 0.06837726384401321, + 0.014856264926493168, + 0.021845025941729546, + -0.03806059807538986, + -0.00298292376101017, + 0.013064451515674591, + -0.023272983729839325, + 0.0030910505447536707, + 0.0007551705930382013, + 0.02004634588956833, + -0.02949284389615059, + 0.02623874507844448, + -0.0049051763489842415, + -0.027735356241464615, + -0.04978633671998978, + 0.0009628424886614084, + 0.020417066290974617, + 0.02702137641608715, + -0.029300618916749954, + -0.0009199350606650114, + -0.019854120910167694, + 0.017519958317279816, + 0.005979578010737896, + 0.02752939984202385, + -0.022586464881896973, + -0.02807861566543579, + -0.059095531702041626, + 0.02386339008808136, + -0.020897628739476204, + 0.04179525747895241, + -0.055827703326940536, + -0.05176351219415665, + -0.008602079935371876, + 0.020279763266444206, + -0.054756730794906616, + -0.03347465395927429, + -0.06354416906833649, + 0.07414402067661285, + 0.012178841978311539, + -0.023108219727873802, + 0.02659573405981064, + -0.022119633853435516, + -0.035726435482501984, + 0.012165111489593983, + -0.037950754165649414, + -0.006370893679559231, + 0.04591437056660652, + -0.00022183136024978012, + -0.02740582637488842, + -0.01598215475678444, + 0.057502806186676025, + -0.022984646260738373, + -0.023918312042951584, + -0.019977694377303123, + -0.029657607898116112, + 0.00505277793854475, + 0.045420076698064804, + 0.0067828050814569, + -0.014375701546669006, + 0.005529908463358879, + 0.04001031070947647, + -0.04470609873533249, + 0.03696216642856598, + -0.04377243295311928, + -0.0030876179225742817, + -8.855018677422777e-05, + -0.030481431633234024, + 0.05286194011569023, + 0.008876686915755272, + -0.0011104439618065953, + -0.010455680079758167, + 0.016600022092461586, + 0.005169485695660114, + -0.01574873924255371, + 0.0057255662977695465, + -0.010462544858455658, + 0.03951601684093475, + -0.025936676189303398, + 0.0165176410228014, + -0.019881581887602806, + -0.0014459800440818071, + 0.030316665768623352, + 0.007019653916358948, + 0.0131674287840724, + 0.011533514596521854, + 0.017670990899205208, + -0.037950754165649414, + 0.025483574718236923, + -0.10934869945049286, + -0.026032790541648865, + -0.021693991497159004, + 0.006285078823566437, + 0.010249724611639977, + 0.0005470695905387402, + -0.020430797711014748, + -0.006223292089998722, + -0.007785122375935316, + 0.05179097130894661, + -0.02519523724913597, + -0.0025246725417673588, + -0.027460748329758644, + 0.055937543511390686, + 0.013153698295354843, + -0.036138344556093216, + -0.017739644274115562, + -0.004232387989759445, + 0.027337174862623215, + -0.014540466479957104, + -0.04940188676118851, + 0.0026293667033314705, + -0.04495324566960335, + -0.006171803455799818, + -0.044101960957050323, + 0.0033004386350512505, + 0.010675366036593914, + -0.039790622889995575, + 0.04094397649168968, + 0.027460748329758644, + -0.060523491352796555, + -0.005313654895871878, + 0.04001031070947647, + 0.02268257923424244, + -0.004362826235592365, + 0.008883551694452763, + 0.011581570841372013, + 0.00859521422535181, + 0.04088905453681946, + -0.019991425797343254, + -0.019867852330207825, + 0.036660097539424896, + -0.00613061198964715, + -0.006092853378504515, + 0.06749852001667023, + -0.02899855002760887, + -0.0016716730315238237, + -0.002516091102734208, + 0.028614100068807602, + 0.03199177235364914, + 0.051598746329545975, + 0.022462891414761543, + 0.05313654989004135, + -0.0041637360118329525, + 0.052367646247148514, + 0.02467348240315914, + 0.04533769562840462, + 0.006408652290701866, + 0.017808295786380768, + -0.011162794195115566, + 0.016490180045366287, + 0.009343519806861877, + 0.043717510998249054, + -0.021062394604086876, + 0.014320780523121357, + -0.017904408276081085, + 0.014718960970640182, + 0.007956751622259617, + -0.012041538022458553, + -0.01127263717353344, + 0.007908695377409458, + 0.00583540927618742, + 0.047562018036842346, + 0.059095531702041626, + 0.009219946339726448, + 0.009151294827461243, + 0.013723509386181831, + 0.00777139188721776, + 0.015913503244519234, + -0.030783498659729958, + -0.008382393047213554, + 0.012165111489593983, + -0.05755772814154625, + 0.010352701880037785, + 0.007105468772351742, + -0.022050980478525162, + -0.07194716483354568, + 0.02384966053068638, + -0.03292543813586235, + -0.02806488424539566, + 0.05442720279097557, + -0.034957531839609146, + -0.011554109863936901, + 0.020211111754179, + 0.01730027236044407, + 0.037566304206848145, + 0.0027941311709582806, + 0.011025490239262581, + -0.0022363346070051193, + -0.009405306540429592, + -0.005186649039387703, + 0.015158332884311676, + 0.03157985955476761, + -0.009522014297544956, + -0.03525960072875023, + 0.012288684956729412, + 0.025991598144173622, + -0.01574873924255371, + -0.026952724903821945, + -0.03177208453416824, + -0.012631944380700588, + 0.028888707980513573, + 0.024220380932092667, + 0.02634858898818493, + 0.011821852065622807, + 0.019606973975896835, + -0.008526562713086605, + -0.0638187825679779, + -0.011945425532758236, + -0.013950060121715069, + 0.00892474316060543, + -0.02555222623050213, + -0.05689867213368416, + -0.0009765728609636426, + 0.03476530686020851, + -0.022353049367666245, + 0.07408910244703293, + -0.012631944380700588, + 0.012954608537256718, + 0.020828977227211, + 0.008224493823945522, + 0.01588604226708412, + -0.008828630670905113, + 0.04574960842728615, + 0.017080586403608322, + 0.0023736385628581047, + -0.04239939525723457, + -0.005615722853690386, + -0.0027701030485332012, + -0.06596072018146515, + -0.007819448597729206, + -0.011306962929666042, + 0.030481431633234024, + 0.0014674337580800056, + -0.07617611438035965, + 0.0048708501271903515, + -0.0006101435283198953, + 0.04841329902410507, + -0.02740582637488842, + 0.0007813441334292293, + -9.76143783191219e-05, + -0.03655025735497475, + -0.022366778925061226, + -0.0013610234018415213, + -0.030069518834352493, + 0.019071489572525024, + -0.00662490539252758, + 0.01889299415051937, + 0.012899686582386494, + -0.014265858568251133, + -0.019854120910167694, + -0.03081095963716507, + -0.04209732636809349, + -0.031387634575366974, + -0.029080932959914207, + -0.010304645635187626, + -0.011355019174516201, + 0.0021642502397298813, + 0.012542696669697762, + 0.04613405838608742, + -0.0023530428297817707, + 0.012419123202562332, + 0.012240628711879253, + 0.02268257923424244, + -0.011046086438000202, + -0.005687807686626911, + -0.0015266459668055177, + 0.01835750974714756, + 0.02715867944061756, + 0.010840130038559437, + 0.029163315892219543, + -0.03817044198513031, + -0.0012443151790648699, + -0.023973233997821808, + 0.03185446932911873, + -0.0009885869221761823, + -0.04077921062707901, + 0.0024319924414157867, + -0.018522275611758232, + 0.0005384880932979286, + 0.026073981076478958, + 0.00950141903012991, + -0.00616493821144104, + 0.01614692062139511, + 0.05511372163891792, + 0.02044452726840973, + -0.036934707313776016, + -0.024316493421792984, + -0.047781702131032944, + -0.04511801153421402, + -0.026005329564213753, + 0.021337002515792847, + 0.03498499467968941, + 0.03352957218885422, + -0.02571699023246765, + 0.02479705587029457, + 0.050967149436473846, + -0.09660691022872925, + 0.047232486307621, + 0.008808035403490067, + -0.01650390960276127, + 0.0027906985487788916, + -0.030481431633234024, + -0.008567753247916698, + 0.00924740731716156, + 0.0207191351801157, + 0.05190081521868706, + -0.021419383585453033, + 0.047287408262491226, + -0.014416893012821674, + 0.002129924250766635, + 0.013030124828219414, + -0.00015993740817066282, + -0.013792160898447037, + -0.006007038522511721, + 0.017780834808945656, + 0.0022140229120850563, + -0.010421354323625565, + 0.001313825137913227, + 0.017876947298645973, + -0.016860900446772575, + 0.008313741534948349, + 0.010345837101340294, + 0.021968599408864975, + -0.06178668513894081, + 0.012117055244743824, + -0.02765297330915928, + 0.051351599395275116, + 0.010469410568475723, + -0.02229812741279602, + -0.07881234586238861, + 0.006796535104513168, + -0.02309449017047882, + -0.01443062350153923, + 0.028119806200265884, + 0.07299067080020905, + -0.05733804404735565, + -0.02700764685869217, + 0.015680087730288506, + 0.0036660099867731333, + -0.04522785171866417, + -0.05124175548553467, + -0.015172063373029232, + -0.0032026097178459167, + -0.018687039613723755, + -0.018330048769712448, + 0.02165280096232891, + -0.007510514929890633, + 0.027447018772363663, + 0.0314425565302372, + 0.05401529371738434, + -0.0438273549079895, + -0.025483574718236923, + 0.009137564338743687, + 0.061566997319459915, + -0.010002577677369118, + 0.015968425199389458, + -0.03243114426732063, + -0.016448987647891045, + -0.017135506495833397, + -0.021845025941729546, + -0.008409854024648666, + 0.05494895949959755, + 0.004009269177913666, + 0.020897628739476204, + 0.029190775007009506, + 0.0003134387079626322, + -0.01035956759005785, + 0.018920455127954483, + 0.017904408276081085, + 0.008004807867109776, + 0.01677851751446724, + -0.0005200379528105259, + 0.03726423531770706, + 0.007483053952455521, + -0.021474305540323257, + -0.04423926770687103, + -0.01874196156859398, + -0.03580881655216217, + 0.005934954155236483, + 0.015707548707723618, + 0.015021029859781265, + 0.04690295830368996, + -0.009103238582611084, + -0.0448434017598629, + -0.02700764685869217, + 0.00924740731716156, + -0.0374564602971077, + 0.03125033155083656, + -0.034051328897476196, + 0.011746334843337536, + 0.021982328966259956, + 0.02976745180785656, + -0.002304986584931612, + -0.023025836795568466, + 0.007750796154141426, + -0.027900120243430138, + 0.04599675536155701, + 0.027639243751764297, + 0.031524937599897385, + 0.012075863778591156, + -0.0037552574649453163, + -0.014334511011838913, + 0.039406172931194305, + 0.01324981078505516, + 0.028614100068807602, + 0.00217969692312181, + -0.009940790943801403, + 0.009350384585559368, + -0.0028027126099914312, + 0.023369096219539642, + -0.0048708501271903515, + -0.026856612414121628, + -0.06645501405000687, + -0.010641040280461311, + -0.03196430951356888, + -0.029218235984444618, + -0.01938728801906109, + 0.0374564602971077, + 0.03465546295046806, + 0.06920108944177628, + -0.034957531839609146, + -0.004280444234609604, + 0.0019497130997478962, + 0.046491045504808426, + 0.020032616332173347, + -0.0001243242440978065, + 0.033914025872945786, + 0.004417747724801302, + 0.018453622236847878, + 0.019085220992565155, + -0.018824342638254166, + -0.036797404289245605, + -0.02139192260801792, + -0.022462891414761543, + 0.011375615373253822, + -0.02309449017047882, + 0.011560975573956966, + 0.022229475900530815, + 0.02255900576710701, + 0.007805717643350363, + -0.017904408276081085, + 4.435554365045391e-05, + 0.019730547443032265, + -0.030371587723493576, + 0.05689867213368416, + -0.021611608564853668, + 0.03627564758062363, + 0.0001499614299973473, + -0.007249637506902218, + -0.0019256849773228168, + -0.02346521057188511, + 0.012412258423864841, + -0.02478332631289959, + -0.019991425797343254, + 0.0013061017962172627, + -0.022888533771038055, + 0.02831203117966652, + -0.022188285365700722, + 0.001659658970311284, + 0.054619427770376205, + 0.05794217810034752, + -0.025373730808496475, + 0.06255558878183365, + 0.009913329966366291, + 0.032870516180992126, + -0.0106135793030262, + -0.005104266572743654, + 0.024302762001752853, + -0.014842534437775612, + 0.018069172278046608, + 0.024563640356063843, + 0.02280615083873272, + 0.023973233997821808, + -0.02006007730960846, + -0.01666867360472679, + 0.11269891262054443, + 0.03668756037950516, + -0.007359480485320091, + 0.0157212782651186, + 0.05319146811962128, + -0.011869908310472965, + 0.006679826881736517, + 0.02913585491478443, + -0.013345924206078053, + -0.006614607758820057, + -0.0005685233045369387, + -0.005121429450809956, + 0.008883551694452763, + 0.008080325089395046, + 0.05154382437467575, + 0.012377932667732239, + 0.007180985528975725, + -0.015803661197423935, + -0.002416545758023858, + -0.005135159939527512, + 0.014773882925510406, + -0.055553093552589417, + 0.022984646260738373, + 0.04088905453681946, + 0.049758877605199814, + -0.0029691935051232576, + -0.05991935357451439, + 0.03070111759006977, + -0.09473958611488342, + 0.018687039613723755, + 0.026444701477885246, + -0.03778598830103874, + 0.03190939128398895, + -0.008897282183170319, + -0.04849568381905556, + -0.01875569112598896, + -0.01003003865480423, + -0.008348067291080952, + -0.0530267059803009, + -0.040449682623147964, + 0.019098950549960136, + 0.0028988253325223923, + 0.03278813511133194, + 0.017808295786380768, + -0.017121776938438416, + -0.049621570855379105, + -0.000780485977884382, + 0.060907941311597824, + 0.023904582485556602, + 0.02373981662094593, + 0.015515322797000408, + 0.0057976506650447845, + 0.023904582485556602, + 0.03188192844390869, + 0.01953832246363163, + 0.040834132581949234, + -0.0240144245326519, + 0.042811308056116104, + -3.6605393688660115e-05, + 0.0660705640912056, + 0.004757574759423733, + 0.03385910391807556, + 0.055278487503528595, + 0.021845025941729546, + 0.008272550068795681, + 0.000852999510243535, + 0.004331932868808508, + -0.023657435551285744, + -0.01874196156859398, + 0.004678625147789717, + 0.0022843910846859217, + -0.06035872548818588, + 0.008499101735651493, + 0.008306876756250858, + 0.04769932106137276, + -0.015432940796017647, + 0.021597879007458687, + -0.025895485654473305, + 0.050802383571863174, + 0.01476015243679285, + -0.00930232834070921, + -0.023396557196974754, + -0.0020887332502752542, + 0.01049000583589077, + 0.0165176410228014, + 0.00963185727596283, + 0.004266713745892048, + -0.011121602728962898, + 0.010181072168052197, + -0.04094397649168968, + 0.024494986981153488, + 0.010641040280461311, + -0.021295810118317604, + -0.0508573055267334, + 0.02608771063387394, + -0.015281906351447105, + -0.04066937044262886, + -0.03424355387687683, + 0.026073981076478958, + 0.019112680107355118, + -0.024179188534617424, + -0.005523043219000101, + 0.01665494404733181, + -0.07205700129270554, + -0.0500609427690506, + 0.10841503739356995, + -0.03163478150963783, + -0.03171716630458832, + -0.02831203117966652, + 0.03168970346450806, + 0.0028198757208883762, + 0.0165176410228014, + 0.02781773917376995, + -0.006120314355939627, + 0.032074153423309326, + -0.02507166378200054, + 0.045310236513614655, + -0.018014250323176384, + 0.00039002843550406396, + 0.030481431633234024, + 0.014265858568251133, + -0.010805804282426834, + 0.010270319879055023, + -0.040339838713407516, + 0.0398455448448658, + -0.01716296747326851, + -0.0049532325938344, + -0.022215746343135834, + 0.057118356227874756, + 0.008162707090377808, + 0.011746334843337536, + -0.002739209681749344, + 0.03525960072875023, + -0.02297091670334339, + 0.03951601684093475, + -0.007716470398008823, + -0.057228200137615204, + 0.009412171319127083, + -0.04992363974452019, + 0.0017574878875166178, + -0.005093968939036131, + 0.007888100109994411, + 0.036797404289245605, + -0.00655968626961112, + 0.0049051763489842415, + 0.0002503647992853075, + -0.02660946547985077, + 0.014979838393628597, + -0.0021213428117334843, + -0.03449070081114769, + -0.042152248322963715, + 0.005564234219491482, + -0.03786837309598923, + -0.03671501949429512 + ], + "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\RimWorld\\PrefabDef.txt\n\npublic class PrefabDef : Def\n{\n\tinternal List things = new List();\n\n\tinternal List prefabs = new List();\n\n\tinternal List terrain = new List();\n\n\tpublic IntVec2 size;\n\n\tpublic RotEnum rotations = RotEnum.All;\n\n\tpublic bool edgeOnly;\n\n\tpublic IEnumerable<(PrefabThingData data, IntVec3 cell)> GetThings()\n\t{\n\t\tforeach (PrefabThingData data in things)\n\t\t{\n\t\t\tbool flag = false;\n\t\t\tif (!data.rects.NullOrEmpty())\n\t\t\t{\n\t\t\t\tforeach (CellRect rect in data.rects)\n\t\t\t\t{\n\t\t\t\t\tforeach (IntVec3 cell in rect.Cells)\n\t\t\t\t\t{\n\t\t\t\t\t\tyield return (data: data, cell: cell);\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!data.positions.NullOrEmpty())\n\t\t\t{\n\t\t\t\tforeach (IntVec3 position in data.positions)\n\t\t\t\t{\n\t\t\t\t\tyield return (data: data, cell: position);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!flag)\n\t\t\t{\n\t\t\t\tyield return (data: data, cell: data.position);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic IEnumerable<(SubPrefabData data, IntVec3 cell)> GetPrefabs()\n\t{\n\t\tforeach (SubPrefabData data in prefabs)\n\t\t{\n\t\t\tif (!data.positions.NullOrEmpty())\n\t\t\t{\n\t\t\t\tforeach (IntVec3 position in data.positions)\n\t\t\t\t{\n\t\t\t\t\tyield return (data: data, cell: position);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tyield return (data: data, cell: data.position);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic IEnumerable<(PrefabTerrainData data, IntVec3 cell)> GetTerrain()\n\t{\n\t\tforeach (PrefabTerrainData data in terrain)\n\t\t{\n\t\t\tif (data.rects.NullOrEmpty())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tforeach (CellRect rect in data.rects)\n\t\t\t{\n\t\t\t\tforeach (IntVec3 cell in rect.Cells)\n\t\t\t\t{\n\t\t\t\t\tyield return (data: data, cell: cell);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n", + "timestamp": "2025-08-25 18:25:35,112" } } \ No newline at end of file diff --git a/Source/WulaFallenEmpire/WULA_Shuttle/GenStep_WulaPocketSpaceSmall.cs b/Source/WulaFallenEmpire/WULA_Shuttle/GenStep_WulaPocketSpaceSmall.cs index d2c2702b..36548404 100644 --- a/Source/WulaFallenEmpire/WULA_Shuttle/GenStep_WulaPocketSpaceSmall.cs +++ b/Source/WulaFallenEmpire/WULA_Shuttle/GenStep_WulaPocketSpaceSmall.cs @@ -29,10 +29,21 @@ namespace WulaFallenEmpire // 生成内部地板 GenerateFloor(map); - // 生成一些基础设施(照明等) - GenerateBasicInfrastructure(map); - Log.Message("[WULA] WULA pocket space generation completed"); + + // 添加预制件生成 + // 注意:这里需要根据实际的PrefabDef名称进行加载 + // 暂时使用一个示例PrefabDef名称,实际使用时应替换 + PrefabDef customPrefabDef = DefDatabase.GetNamed("YourCustomPrefabDefName", false); + if (customPrefabDef != null) + { + GeneratePrefab(map, customPrefabDef); + Log.Message($"[WULA] Generated custom prefab: {customPrefabDef.defName}"); + } + else + { + Log.Warning("[WULA] Custom prefab 'YourCustomPrefabDefName' not found. Skipping prefab generation."); + } } catch (Exception ex) { @@ -208,46 +219,53 @@ namespace WulaFallenEmpire } /// - /// 生成基础设施 + /// 生成预制件 /// - private void GenerateBasicInfrastructure(Map map) + private void GeneratePrefab(Map map, PrefabDef prefabDef) { - IntVec3 mapSize = map.Size; - IntVec3 center = map.Center; - - // 获取灯具定义 - ThingDef lampDef = DefDatabase.GetNamed("StandingLamp", false) ?? - DefDatabase.GetNamed("TorchLamp", false) ?? - DefDatabase.GetNamed("Campfire", false); - - if (lampDef == null) + if (prefabDef == null) { - Log.Warning("[WULA] No lamp definition found, skipping lighting generation"); + Log.Error("[WULA] PrefabDef is null, cannot generate prefab."); return; } - - // 在四个角落放置照明设备 - var lightPositions = new List - { - new IntVec3(2, 0, 2), // 左下角 - new IntVec3(mapSize.x - 3, 0, 2), // 右下角 - new IntVec3(2, 0, mapSize.z - 3), // 左上角 - new IntVec3(mapSize.x - 3, 0, mapSize.z - 3) // 右上角 - }; - foreach (IntVec3 pos in lightPositions) + // 获取预制件的中心点,将其放置在口袋空间的中心 + IntVec3 mapCenter = map.Center; + IntVec3 prefabOrigin = mapCenter - new IntVec3(prefabDef.size.x / 2, 0, prefabDef.size.z / 2); + + // 生成物品 + foreach (var thingData in prefabDef.GetThings()) { - if (pos.InBounds(map) && pos.Standable(map)) + IntVec3 thingPos = prefabOrigin + thingData.cell; + if (thingPos.InBounds(map)) { - // 放置立式灯 - Thing lamp = ThingMaker.MakeThing(lampDef); - lamp.SetFaction(null); - GenPlace.TryPlaceThing(lamp, pos, map, ThingPlaceMode.Direct); + Thing thing = ThingMaker.MakeThing(thingData.data.def, thingData.data.stuff); + if (thing != null) + { + // PrefabThingData 不包含 factionDef,派系通常在生成时由上下文决定 + // thing.SetFaction(thingData.data.factionDef != null ? Faction.OfPlayerSilentFail : null); + GenPlace.TryPlaceThing(thing, thingPos, map, ThingPlaceMode.Direct); + } } } - // 在中心区域留出空间,这里将放置退出点 - // 不在这里放置退出点,因为这会由Building_ArmedShuttleWithPocket来处理 + // 生成地形 + foreach (var terrainData in prefabDef.GetTerrain()) + { + IntVec3 terrainPos = prefabOrigin + terrainData.cell; + if (terrainPos.InBounds(map)) + { + map.terrainGrid.SetTerrain(terrainPos, terrainData.data.def); + } + } + + // 递归生成子预制件(如果存在) + foreach (var subPrefabData in prefabDef.GetPrefabs()) + { + // 这里需要递归调用GeneratePrefab,但为了简化,暂时只处理顶层 + // 实际项目中,可能需要更复杂的逻辑来处理子预制件的位置和旋转 + Log.Warning($"[WULA] Sub-prefabs are not fully supported in this simple generator: {subPrefabData.data.def.defName}"); + } } } } \ No newline at end of file