{ "ThingDef": { "keywords": [ "ThingDef" ], "question": "What is a ThingDef?", "embedding": [ -0.019440101459622383, 0.0362212248146534, 0.00969050731509924, 0.03294181451201439, -0.04809800535440445, -0.0006195055320858955, -0.016131149604916573, 0.06724266707897186, 0.04210052639245987, 0.11746785044670105, -0.053061433136463165, -0.06990164518356323, -0.038112055510282516, -0.0914689302444458, 0.029056748375296593, -0.017874257639050484, 0.00430237827822566, -0.07279697805643082, 0.01387840136885643, -0.013413080014288425, 0.027978384867310524, 0.022675195708870888, -0.029115837067365646, 0.06281103193759918, 0.019454874098300934, -0.05279553681612015, 0.01324320025742054, 0.06245649978518486, -0.03876202926039696, 0.011958026327192783, -0.0014559765113517642, 0.04142100736498833, 0.012238696217536926, 0.007696271408349276, 0.002598045626655221, 0.03973698616027832, 0.0067877862602472305, -0.014247704297304153, 0.020001443102955818, -0.037107549607753754, 0.036191679537296295, -0.01231255754828453, -0.02537849172949791, -0.0331190787255764, -0.04130282998085022, -0.007703657727688551, 0.03693028539419174, -0.06446550786495209, -0.05066835135221481, 0.03394631668925285, -0.012002342380583286, 0.02050369419157505, -0.03636894375085831, -0.017726536840200424, 0.012777878902852535, 0.03282363712787628, 0.03970744460821152, -0.028569268062710762, -0.004054945427924395, 0.008715547621250153, 0.009764367714524269, 0.032557740807533264, -0.07220609486103058, -0.023133130744099617, 0.07108341157436371, -0.06594271957874298, -0.011529634706676006, -0.02477283589541912, 0.04839344695210457, -0.016278870403766632, -0.03831886500120163, 0.04836390167474747, -0.07622411102056503, -0.021818412467837334, -0.07356512546539307, 0.026102324947714806, -0.023133130744099617, -0.00922518502920866, -0.02286723256111145, -0.022305892780423164, 0.020400289446115494, -0.004095568787306547, -0.03264637291431427, -0.005713114980608225, 0.03678256273269653, 0.025629617273807526, -0.009904702194035053, -0.03595532476902008, -0.028968116268515587, 0.09383247047662735, -0.05932481214404106, 0.046620793640613556, 0.0299430750310421, -0.01830264925956726, 0.04546856880187988, 0.07474689930677414, -0.04446406289935112, 0.03958926722407341, 0.016603855416178703, 0.02034120075404644, -0.03291226923465729, -0.040948301553726196, -0.010340480133891106, 0.06812898814678192, 0.015244822017848492, 0.07126067578792572, -0.028569268062710762, -0.040593769401311874, -0.016485679894685745, -0.0028251667972654104, -0.006086111068725586, 0.04210052639245987, -0.00900360383093357, 0.01716519705951214, -0.008021257817745209, 0.06121564283967018, -0.030312377959489822, -0.027815891429781914, 0.05264781415462494, -0.005343812517821789, 0.032557740807533264, -0.051170602440834045, 0.013029004447162151, -0.027092058211565018, -0.002982120495289564, 0.013989192433655262, 0.040977843105793, 0.03595532476902008, -0.01024446077644825, -0.04797982797026634, -0.05250009521842003, -0.012260855175554752, 0.013582958839833736, -0.007312196306884289, -0.020562782883644104, -0.0457049198448658, 0.04269140958786011, 0.03261682763695717, -0.04682760313153267, 0.027092058211565018, -0.037934787571430206, -0.0015778464730829, -0.05031381919980049, 0.009993335232138634, 0.11398163437843323, -0.0022195102646946907, -0.0013165646232664585, -0.055277250707149506, -0.02901243232190609, 0.020385516807436943, 0.018169701099395752, -0.029381735250353813, -0.010340480133891106, 0.015422087162733078, -0.001591695356182754, 0.016278870403766632, -0.009845614433288574, -0.04452315345406532, 0.0022878311574459076, -0.012186993844807148, 0.039973340928554535, 0.006987209897488356, -0.04331183806061745, 0.009158710949122906, 0.004956044256687164, -0.02161160297691822, -0.05725671350955963, 0.03548261895775795, -0.07202883064746857, 0.003549000481143594, 0.026235274970531464, -0.020725276321172714, -0.01087966188788414, -0.0004101569938939065, -0.004114033654332161, -0.03072599694132805, 0.007711043581366539, 0.01349432673305273, 0.048659343272447586, -0.04765484109520912, 0.03820068761706352, 0.009720050729811192, 0.08083301037549973, 0.010606378316879272, 0.012054044753313065, -0.023384256288409233, -0.03196685388684273, 0.03214412182569504, -0.0055986312218010426, 0.0027328410651534796, -0.033975861966609955, 0.041893716901540756, 0.050875160843133926, 0.06133381649851799, -0.05693172663450241, -0.009409836493432522, 0.006270762532949448, 0.02808178961277008, 0.017889030277729034, 0.0015981581527739763, 0.025452353060245514, 0.011175104416906834, 0.022187715396285057, -0.011817690916359425, 0.05282508209347725, -0.027225006371736526, 0.03025328926742077, -0.00884111039340496, 0.013102864846587181, 0.0012353180209174752, 0.027313638478517532, -0.01277049258351326, 0.04018015041947365, -0.01921852119266987, -0.014786886051297188, -0.01118987612426281, -0.04475950449705124, -0.0007441452471539378, -0.028332915157079697, -0.0061267344281077385, 0.0024170870892703533, -0.009956404566764832, 0.02651594579219818, 0.02729886770248413, 0.028510181233286858, -0.006507116369903088, 0.03122824989259243, 0.013834085315465927, 0.02301495335996151, -0.03580760583281517, 0.023413801565766335, 0.03598487004637718, -0.08898721635341644, 0.06759719550609589, 0.039973340928554535, -0.0020311656408011913, -0.028598813340067863, -0.025023961439728737, 0.03663484379649162, 0.03731435909867287, -0.028303369879722595, 0.018494686111807823, -0.0457935556769371, 0.030208973214030266, -0.027239779010415077, 0.0013073320733383298, -0.06399279832839966, -0.06411097198724747, 0.028022700920701027, -0.009653576649725437, -0.017726536840200424, 0.0053548915311694145, -0.055247705429792404, -0.009358134120702744, -0.02068096026778221, 0.0457344651222229, -0.03105098381638527, -0.01474995631724596, 0.005188704933971167, 0.02443307638168335, -0.007866150699555874, -0.0037687355652451515, 0.0005137926200404763, -0.036664389073848724, -0.03447811305522919, 0.017268601804971695, -0.0031132230069488287, -0.05406593903899193, -0.07959215342998505, -0.038112055510282516, 0.004051252268254757, 0.0378757007420063, 0.01720951311290264, -0.029691949486732483, 0.001599081326276064, 0.023768331855535507, 0.007917853072285652, 0.0457344651222229, -0.08059665560722351, -0.0141886156052351, -0.01765267550945282, 0.00536597054451704, -0.011219420470297337, -0.05001837760210037, -0.023871736600995064, 0.019115116447210312, 0.024698974564671516, 0.021980905905365944, 0.039057470858097076, 0.021212756633758545, 0.061865612864494324, 0.015259593725204468, -0.007441452704370022, -0.004904341883957386, -0.026885248720645905, -0.018081067129969597, 0.025319403037428856, 0.03480309993028641, -0.006832102779299021, 0.027963612228631973, 0.0009601874044165015, 0.014159071259200573, -0.0047012255527079105, -0.0204889215528965, 0.0866236761212349, 0.00962403230369091, -0.013435238040983677, -0.07480598986148834, -0.005949468817561865, -0.05060926452279091, 0.025452353060245514, -0.016943614929914474, -0.0016886373050510883, -0.011980184353888035, 0.020592326298356056, 0.025334175676107407, -0.04665033519268036, -0.004435327369719744, -0.028126105666160583, 0.01386362873017788, -0.048009369522333145, -0.012984688393771648, -0.003803819417953491, 0.0181549284607172, -0.03217366337776184, -0.013029004447162151, 0.02588074468076229, -0.001548302243463695, -0.00992686115205288, 0.0012473204405978322, 0.010510358959436417, 0.004715997260063887, 0.02161160297691822, 0.016840210184454918, -0.05489317700266838, 0.008338858373463154, 0.015377771109342575, 0.034596290439367294, 0.007755360100418329, 0.009542785584926605, -0.032557740807533264, 0.018095839768648148, 0.023561522364616394, -0.023694470524787903, 0.04085966944694519, -0.008966673165559769, 0.02348766103386879, 0.056370388716459274, -0.0378166139125824, 0.021966133266687393, -0.006802558433264494, -0.02619095891714096, -0.028273826465010643, 0.024344444274902344, -0.01278526522219181, 0.0014799812342971563, -0.004756620619446039, -0.0165447685867548, -0.024241039529442787, 0.006152585614472628, -0.02065141499042511, 0.054154571145772934, -0.0020145471207797527, 0.006492344196885824, 0.03551216423511505, -0.0017800397472456098, -0.001140222535468638, 0.08130571991205215, 0.007245722226798534, 0.024373987689614296, 0.02963286079466343, -0.03294181451201439, 0.010754099115729332, 0.01638227514922619, -0.0347440131008625, -0.0014605928445234895, 0.01497153751552105, 0.0204889215528965, -0.017076563090085983, -0.0005784205859526992, 0.07628319412469864, 0.016441363841295242, 0.004291299264878035, -0.055572692304849625, -0.021168438717722893, -0.002655287506058812, 0.013272744603455067, 0.010517745278775692, -0.011064313352108002, -0.035718973726034164, 0.05114106088876724, -0.014314178377389908, 0.024004684761166573, -0.01302161905914545, 0.04747757315635681, 0.006001171190291643, -0.015451631508767605, 0.01985372230410576, -0.01874581351876259, -0.0291453804820776, 0.015348226763308048, -0.029248785227537155, -0.03820068761706352, 0.018539004027843475, -0.023000182583928108, -0.021345704793930054, -0.005528463516384363, 0.04325275123119354, -0.0009878851706162095, 0.020769592374563217, -0.03592578321695328, 0.012689245864748955, 0.042336877435445786, -0.020060531795024872, -0.07746496796607971, -0.018184471875429153, -0.009136552922427654, -0.0019111422589048743, 0.06192470341920853, -0.04647307097911835, 0.012733562849462032, 0.03435993939638138, 0.0023506127763539553, -0.015119259245693684, -0.010813187807798386, -0.021552514284849167, -0.017874257639050484, -0.0038444427773356438, -0.015540264546871185, -0.0028897947631776333, -0.06860169768333435, -0.0173572339117527, -0.03344406560063362, 0.05628175660967827, 0.014550532214343548, -0.05063880607485771, 0.027328411117196083, -0.00037230344605632126, -0.006684381514787674, -0.0040290942415595055, -0.07043343782424927, -0.01356818713247776, 0.01458746287971735, -0.037284817546606064, -0.03701891750097275, 0.012002342380583286, 0.047566208988428116, -0.0048009371384978294, 0.004350387491285801, 0.01018537301570177, -0.034448571503162384, 0.024654658511281013, 0.022010449320077896, 0.03329634666442871, -0.016810666769742966, 0.009173482656478882, -0.005048369988799095, 0.0094615388661623, -0.00322955334559083, -0.04936840385198593, 0.006584669928997755, -0.014594849199056625, 0.03858476132154465, 0.03825977444648743, -0.016914071515202522, -0.021065033972263336, -0.02115366794168949, 0.03181913495063782, 0.003914610482752323, -0.03858476132154465, 0.027860207483172417, 0.0038333635311573744, 0.0014116601087152958, 0.00116422725841403, 0.030814630910754204, 0.002893487922847271, 0.017445866018533707, 0.004933886229991913, 0.019513962790369987, 0.016337959095835686, 0.030179429799318314, 0.010155828669667244, 0.02427058294415474, 0.005325347185134888, -0.08461467176675797, -0.015687985345721245, -0.013531256467103958, -0.0315532349050045, 0.015835706144571304, -0.024255812168121338, 0.0007898464682511985, -0.01986849308013916, 0.0013304135063663125, -0.006736083887517452, 0.011950640007853508, -0.05533634126186371, -0.009941632859408855, 0.05598631128668785, 0.0029359576292335987, -0.08810088783502579, -0.015481175854802132, 0.044552695006132126, -0.014218159951269627, 0.027476131916046143, -0.01284435298293829, 0.016057288274168968, -0.034596290439367294, -2.3831575163058005e-05, -0.021330932155251503, 0.012644929811358452, 0.009439380839467049, -0.033680420368909836, 0.020917313173413277, -0.02853972464799881, -0.037609804421663284, 0.0035766982473433018, 0.10653648525476456, -0.004623671527951956, -0.02020825259387493, -0.02175932377576828, -0.029721492901444435, -0.012704018503427505, -0.019838949665427208, -0.03896883875131607, -0.05740443617105484, 0.05264781415462494, 0.01610160432755947, -0.012659701518714428, 0.03864385187625885, -0.032055485993623734, -0.05152513459324837, 0.01104215532541275, 0.0519978404045105, -0.017623132094740868, 0.031464602798223495, 0.027564765885472298, 0.03695983067154884, 0.01409998256713152, -0.02961808815598488, 0.1197132095694542, 0.051318325102329254, 0.039057470858097076, -0.01222392451018095, 0.03923473507165909, 0.03403495252132416, 0.05613403394818306, 0.023399028927087784, -0.022808143869042397, 0.011485318653285503, -0.03294181451201439, -0.012711403891444206, 0.01988326571881771, -0.057315804064273834, -0.02725454978644848, 0.005724194459617138, -0.0006171974237076938, 0.02082868106663227, 0.043282292783260345, 0.007349126972258091, -0.037609804421663284, -0.026560261845588684, -0.009040533564984798, -0.01970599964261055, -0.03560079634189606, 0.005015132948756218, 0.02793406881392002, 0.004287606105208397, 0.014292020350694656, 0.054302290081977844, -0.013125023804605007, -0.02396036870777607, 0.030031709000468254, -0.043134573847055435, 0.01042172685265541, 0.011463160626590252, -0.020237796008586884, 0.007666727062314749, -0.022527474910020828, 0.08408287167549133, 0.007777518127113581, -0.024639885872602463, 0.024713747203350067, 0.0472707636654377, -0.007282652426511049, -0.0029156459495425224, 0.01830264925956726, 0.06476094573736191, -0.0020625563338398933, 0.013782382942736149, 0.010074581950902939, 0.008493965491652489, 0.003914610482752323, -0.0054176729172468185, -0.011618267744779587, -0.01893785037100315, 0.03388722985982895, 0.01970599964261055, 0.009380292147397995, 0.012349487282335758, 0.04930931702256203, -0.008759863674640656, -0.04511403664946556, -0.02743181586265564, 0.016337959095835686, 0.03279409185051918, 0.0013054856099188328, -0.012763106264173985, -0.006108269095420837, 0.0015021393774077296, -0.0029378042090684175, 0.03926428034901619, 0.029204469174146652, -0.029248785227537155, 0.00915132462978363, 0.06375644356012344, -0.0037114936858415604, -0.004487029742449522, 0.014690867625176907, -0.01970599964261055, -0.010946136899292469, -0.053061433136463165, 0.003803819417953491, -0.001126373652368784, -0.049279771745204926, -0.015481175854802132, -0.005269951652735472, -0.0009731129975989461, -0.002095793606713414, -0.05285462364554405, -0.020902542397379875, 0.0094541534781456, 0.05613403394818306, -0.026752298697829247, 0.050520628690719604, -0.022822916507720947, -0.011802919209003448, -0.029041975736618042, -0.013893173076212406, 0.035246264189481735, -0.0048821838572621346, -0.0015732301399111748, 0.019203748553991318, 0.017431095242500305, -0.02979535423219204, 0.01254891138523817, -0.009993335232138634, -0.04608899727463722, 0.011019997298717499, -0.015555036254227161, 0.001864979392848909, -0.026264818385243416, 0.002450324362143874, 0.03503945469856262, 0.0457049198448658, 0.021005947142839432, 0.022808143869042397, -0.03560079634189606, 0.03235093131661415, 0.0058349850587546825, 0.0015039858408272266, -0.0025518827605992556, 0.03173050284385681, 0.008013871498405933, -0.0050631421618163586, 0.01750495471060276, -0.0024097012355923653, -0.0059531619772315025, -0.04608899727463722, 0.010214917361736298, 0.01689929887652397, 0.0023746173828840256, 0.006374167278409004, -0.0029950460884720087, -0.027210233733057976, 0.022305892780423164, 0.012046659365296364, -0.03885066136717796, -0.03802342340350151, 0.017933346331119537, 0.024359216913580894, -0.00309660448692739, 0.026235274970531464, -0.04526175931096077, -0.026131870225071907, -0.015215277671813965, 0.031021440401673317, -0.020754819735884666, 0.01766744814813137, -0.07663773000240326, 0.024994418025016785, 0.05350459739565849, -0.02493532933294773, 0.010347865521907806, 0.02162637561559677, -0.043282292783260345, -0.02193658985197544, -0.03769843652844429, -0.04348910227417946, -0.01040695421397686, 0.04783210530877113, -0.012792650610208511, -0.04670942574739456, 0.07291515916585922, 0.024728519842028618, 0.008538281545042992, 0.02178886905312538, 0.012105747126042843, -0.021360477432608604, -0.005506305489689112, 0.007474689744412899, 0.024388760328292847, 0.02633867971599102, -0.010310935787856579, -0.0009961944306269288, -0.009247343055903912, -0.015584580600261688, 0.014085210859775543, -0.007851378992199898, -0.06919258087873459, -0.020769592374563217, -0.015185733325779438, 0.025156909599900246, 0.026885248720645905, 0.026678437367081642, -0.05610448867082596, -0.025777339935302734, -0.008058188483119011, -0.0362803116440773, 0.027402272447943687, 0.06653360277414322, -0.028126105666160583, -0.029573772102594376, 0.002005314454436302, -0.03341452404856682, -0.011640425771474838, -0.027180690318346024, -0.028820395469665527, -0.009801297448575497, -0.016795894131064415, -0.008612142875790596, 0.02979535423219204, -0.013767610304057598, 0.03601441532373428, -0.01373068057000637, 0.05309097841382027, -0.025319403037428856, 0.004557197447866201, -0.007755360100418329, 0.03028283454477787, -0.01371590793132782, 0.02304449863731861, -0.03347361087799072, -0.051347870379686356, -0.05580904707312584, -0.03580760583281517, 0.017386779189109802, 0.019750317558646202, 0.000533642596565187, -0.012113133445382118, 0.044375430792570114, -0.017948118969798088, 0.049427494406700134, 0.008501351810991764, 0.06806990504264832, 0.050845615565776825, 0.010820573195815086, -0.006448027677834034, 0.0020237795542925596, 0.005532156676054001, -0.04183462634682655, -0.04088921099901199, -0.02961808815598488, -0.020754819735884666, 0.0758104920387268, 0.025452353060245514, -0.003166771959513426, 0.017756082117557526, -0.005735273472964764, -0.02240929752588272, 0.0033218790777027607, 0.0032443255186080933, -0.02462511509656906, -0.03766889125108719, 0.009971177205443382, 0.025511441752314568, 0.021242300048470497, -0.005908845458179712, 0.05057971924543381, 0.014365880750119686, 0.010370024479925632, 5.444332055049017e-05, -0.0009740362875163555, 0.04304594174027443, 0.05347505211830139, 0.01765267550945282, -0.020282112061977386, -0.03249865025281906, 0.0645836815237999, -0.006950279697775841, 0.031139615923166275, 0.01426247600466013, -0.07391966134309769, 0.04930931702256203, -0.012467664666473866, -0.03515763208270073, 0.014033508487045765, -0.01474995631724596, -0.03953017666935921, -0.0033791211899369955, 0.007947397418320179, 0.04387317970395088, 0.012253468856215477, 0.022778600454330444, 0.015407315455377102, 0.018657179549336433, -0.02162637561559677, -0.031021440401673317, -0.005177625920623541, 0.006592055782675743, 0.026707982644438744, 0.027712486684322357, 0.045970819890499115, -0.01018537301570177, 0.01768222078680992, -0.0017283373745158315, -0.017948118969798088, 0.027993155643343925, -0.014676094986498356, -0.007485768757760525, -0.019277609884738922, 0.0024447848554700613, -0.005746352486312389, -0.020592326298356056, -0.018686724826693535, 0.0330895371735096, -0.03229184076189995, -0.009660962969064713, -0.01167735643684864, -0.007459917571395636, -0.019277609884738922, -0.020577555522322655, 0.0314941480755806, 0.0003095219435635954, 0.008058188483119011, 0.0005798054626211524, 0.02446262165904045, 0.019838949665427208, -0.020784365013241768, -0.004933886229991913, -0.08278292417526245, -0.012268240563571453, 0.04159827530384064, 0.011396686546504498, 0.00016584005788899958, 0.021079806610941887, 0.03799387812614441, -0.013560800813138485, -0.004202666692435741, -0.03072599694132805, 0.022601334378123283, -0.02791929617524147, 0.005295802839100361, -0.03108052909374237, 0.0037170331925153732, -0.024831924587488174, 0.04496631398797035, -0.012955144047737122, 0.00020577093528117985, -0.007341740652918816, -0.05223419517278671, 0.040771033614873886, 0.07149703055620193, -0.0063150785863399506, 0.029869215562939644, 0.017298145219683647, 0.023768331855535507, -0.008139435201883316, 0.016795894131064415, -0.010598991997539997, 0.04638443887233734, -0.00047640068805776536, -0.027372727170586586, 0.022985409945249557, 0.01672203280031681, 0.037609804421663284, -0.02430012822151184, 0.01766744814813137, -0.02540803700685501, -0.0005830368609167635, 0.020459378138184547, 0.03134642541408539, -0.038407497107982635, -0.007201405707746744, 0.025201227515935898, -0.030238518491387367, -0.011056927032768726, -0.03920518979430199, -0.017475411295890808, -0.03480309993028641, -0.015702757984399796, 0.003316339571028948, -0.04210052639245987, 0.0010866736993193626, -0.04981156811118126, -0.01938101463019848, 0.02428535558283329, -0.025304632261395454, -0.014018736779689789, -0.025348948314785957, 0.039027925580739975, 0.004974509589374065, 0.018051523715257645, 0.027165917679667473, 0.020223025232553482, -0.03687119856476784, -0.0260432381182909, -0.03911655768752098, 0.04337092861533165, 0.01378976833075285, -0.02650117315351963, 0.0268113873898983, 0.026146642863750458, -0.02697388082742691, -0.007829220965504646, 0.012526752427220345, -7.657263631699607e-05, -0.046768512576818466, 0.09495514631271362, -0.006776707246899605, 0.02096162922680378, 0.01626409776508808, 0.02602846547961235, 0.029839670285582542, 0.0022915243171155453, 0.00834624469280243, -0.01065808068960905, -0.014402811415493488, -0.04032787308096886, 0.006451720837503672, -0.002365384716540575, 0.01340569369494915, -0.00971266534179449, 0.025777339935302734, 0.0029710414819419384, 0.018804902210831642, 0.0006208904087543488, 0.00045470413169823587, -0.0189526230096817, 0.045675378292798996, 0.029041975736618042, -0.0007252185023389757, -0.03187822178006172, 0.0060159433633089066, -0.0033237256575375795, -0.057463523000478745, 0.0038333635311573744, 0.0034382096491754055, -0.020769592374563217, 0.02130138874053955, -0.024713747203350067, 0.06399279832839966, 0.01800720766186714, -0.008641687221825123, -0.05707944929599762, 0.03009079582989216, -0.018391281366348267, -0.030666908249258995, -0.05492272228002548, -0.0013165646232664585, 0.03181913495063782, -0.03090326301753521, 0.034300848841667175, 0.0018585165962576866, -0.017918573692440987, -0.022808143869042397, 0.0027346876449882984, 0.005443524103611708, -0.0315236933529377, -0.04922068491578102, 0.0027623854111880064, -0.0021124123595654964, 0.026427311822772026, -0.01862763613462448, 0.035896237939596176, -0.011212035082280636, -0.0030541345477104187, 0.022187715396285057, -0.000870631483849138, 0.024950100108981133, -0.012415962293744087, -0.02459556981921196, -0.030194200575351715, -0.010104126296937466, -0.00884111039340496, 0.01039956882596016, 0.005731580313295126, 0.025127366185188293, -0.01497153751552105, 0.04242551326751709, -0.0027273015584796667, -0.02697388082742691, 0.05232282727956772, -0.0033569629304111004, -0.025939833372831345, -0.006592055782675743, 0.0189230777323246, -0.08733274042606354, 0.028347687795758247, -0.007441452704370022, -0.008242839947342873, 0.017091335728764534, 0.03456674888730049, 0.018568547442555428, -0.011219420470297337, 0.01732769049704075, 0.02554098516702652, -0.0003939999733120203, -0.0019259144319221377, 0.004298685118556023, -0.002891641343012452, -0.030238518491387367, 0.08709638565778732, -0.015525491908192635, 0.0027273015584796667 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\ThingDef.txt\n\npublic class ThingDef : BuildableDef\n{\n\tpublic Type thingClass;\n\n\tpublic ThingCategory category;\n\n\tpublic TickerType tickerType;\n\n\tpublic int stackLimit = 1;\n\n\tpublic IntVec2 size = IntVec2.One;\n\n\tpublic bool destroyable = true;\n\n\tpublic bool rotatable = true;\n\n\tpublic bool smallVolume;\n\n\tpublic bool useHitPoints = true;\n\n\tpublic bool receivesSignals;\n\n\tpublic List comps = new List();\n\n\tpublic List virtualDefs = new List();\n\n\tpublic ThingDef virtualDefParent;\n\n\t[NoTranslate]\n\tpublic string devNote;\n\n\tpublic List killedLeavingsRanges;\n\n\tpublic List killedLeavings;\n\n\tpublic List killedLeavingsPlayerHostile;\n\n\tpublic float killedLeavingsChance = 1f;\n\n\tpublic bool forceLeavingsAllowed;\n\n\tpublic List butcherProducts;\n\n\tpublic List smeltProducts;\n\n\tpublic bool smeltable;\n\n\tpublic bool burnableByRecipe;\n\n\tpublic bool randomizeRotationOnSpawn;\n\n\tpublic List damageMultipliers;\n\n\tpublic bool isTechHediff;\n\n\tpublic RecipeMakerProperties recipeMaker;\n\n\tpublic ThingDef minifiedDef;\n\n\tpublic bool isUnfinishedThing;\n\n\tpublic bool leaveResourcesWhenKilled;\n\n\tpublic ThingDef slagDef;\n\n\tpublic bool isFrameInt;\n\n\tpublic List multipleInteractionCellOffsets;\n\n\tpublic IntVec3 interactionCellOffset = IntVec3.Zero;\n\n\tpublic bool hasInteractionCell;\n\n\tpublic ThingDef interactionCellIcon;\n\n\tpublic bool interactionCellIconReverse;\n\n\tpublic ThingDef filthLeaving;\n\n\tpublic bool forceDebugSpawnable;\n\n\tpublic bool intricate;\n\n\tpublic bool scatterableOnMapGen = true;\n\n\tpublic float deepCommonality;\n\n\tpublic int deepCountPerCell = 300;\n\n\tpublic int deepCountPerPortion = -1;\n\n\tpublic IntRange deepLumpSizeRange = IntRange.Zero;\n\n\tpublic float generateCommonality = 1f;\n\n\tpublic float generateAllowChance = 1f;\n\n\tprivate bool canOverlapZones = true;\n\n\tpublic FloatRange startingHpRange = FloatRange.One;\n\n\t[NoTranslate]\n\tpublic List thingSetMakerTags;\n\n\tpublic bool alwaysFlee;\n\n\tpublic List recipes;\n\n\tpublic bool messageOnDeteriorateInStorage = true;\n\n\tpublic bool deteriorateFromEnvironmentalEffects = true;\n\n\tpublic bool canDeteriorateUnspawned;\n\n\tpublic bool canLoadIntoCaravan = true;\n\n\tpublic bool isMechClusterThreat;\n\n\tpublic FloatRange displayNumbersBetweenSameDefDistRange = FloatRange.Zero;\n\n\tpublic int minRewardCount = 1;\n\n\tpublic bool preventSkyfallersLandingOn;\n\n\tpublic FactionDef requiresFactionToAcquire;\n\n\tpublic float relicChance;\n\n\tpublic OrderedTakeGroupDef orderedTakeGroup;\n\n\tpublic int allowedArchonexusCount;\n\n\tpublic int possessionCount;\n\n\tpublic bool notifyMapRemoved;\n\n\tpublic bool canScatterOver = true;\n\n\tpublic bool genericMarketSellable = true;\n\n\tpublic bool drawHighlight;\n\n\tpublic Color? highlightColor;\n\n\tpublic bool drawHighlightOnlyForHostile;\n\n\tpublic bool autoTargetNearbyIdenticalThings;\n\n\tpublic bool preventDroppingThingsOn;\n\n\tpublic bool hiddenWhileUndiscovered;\n\n\tpublic bool disableImpassableShotOverConfigError;\n\n\tpublic bool showInSearch = true;\n\n\tpublic bool bringAlongOnGravship = true;\n\n\tpublic ThingDef dropPodFaller;\n\n\tpublic bool preventSpawningInResourcePod;\n\n\tpublic bool pathfinderDangerous;\n\n\tpublic bool noRightClickDraftAttack;\n\n\tpublic int gravshipSpawnPriority = 1;\n\n\tpublic List replaceTags;\n\n\tpublic GraphicData graphicData;\n\n\tpublic DrawerType drawerType = DrawerType.RealtimeOnly;\n\n\tpublic bool drawOffscreen;\n\n\tpublic ColorGenerator colorGenerator;\n\n\tpublic float hideAtSnowOrSandDepth = 99999f;\n\n\tpublic bool drawDamagedOverlay = true;\n\n\tpublic bool castEdgeShadows;\n\n\tpublic float staticSunShadowHeight;\n\n\tpublic bool useSameGraphicForGhost;\n\n\tpublic bool useBlueprintGraphicAsGhost;\n\n\tpublic List randomStyle;\n\n\tpublic float randomStyleChance;\n\n\tpublic bool canEditAnyStyle;\n\n\tpublic bool dontPrint;\n\n\tpublic ThingDef defaultStuff;\n\n\tpublic int killedLeavingsExpandRect;\n\n\tpublic bool minifiedManualDraw;\n\n\tpublic float minifiedDrawScale = 1f;\n\n\tpublic Rot4 overrideMinifiedRot = Rot4.Invalid;\n\n\tpublic Vector3 minifiedDrawOffset = Vector3.zero;\n\n\tpublic float deselectedSelectionBracketFactor = 1f;\n\n\tpublic bool selectable;\n\n\tpublic bool containedPawnsSelectable;\n\n\tpublic bool containedItemsSelectable;\n\n\tpublic bool neverMultiSelect;\n\n\tpublic bool isAutoAttackableMapObject;\n\n\tpublic bool hasTooltip;\n\n\tpublic List inspectorTabs;\n\n\t[Unsaved(false)]\n\tpublic List inspectorTabsResolved;\n\n\tpublic bool seeThroughFog;\n\n\tpublic bool drawGUIOverlay;\n\n\tpublic bool drawGUIOverlayQuality = true;\n\n\tpublic ResourceCountPriority resourceReadoutPriority;\n\n\tpublic bool resourceReadoutAlwaysShow;\n\n\tpublic bool drawPlaceWorkersWhileSelected;\n\n\tpublic bool drawPlaceWorkersWhileInstallBlueprintSelected;\n\n\tpublic ConceptDef storedConceptLearnOpportunity;\n\n\tpublic float uiIconScale = 1f;\n\n\tpublic bool hasCustomRectForSelector;\n\n\tpublic bool hideStats;\n\n\tpublic bool hideInspect;\n\n\tpublic bool onlyShowInspectString;\n\n\tpublic bool hideMainDesc;\n\n\tpublic bool alwaysHaulable;\n\n\tpublic bool designateHaulable;\n\n\tpublic List thingCategories;\n\n\tpublic bool mineable;\n\n\tpublic bool socialPropernessMatters;\n\n\tpublic bool stealable = true;\n\n\tpublic SoundDef soundSpawned;\n\n\tpublic SoundDef soundDrop;\n\n\tpublic SoundDef soundPickup;\n\n\tpublic SoundDef soundInteract;\n\n\tpublic SoundDef soundImpactDefault;\n\n\tpublic SoundDef soundPlayInstrument;\n\n\tpublic SoundDef soundOpen;\n\n\tpublic bool saveCompressible;\n\n\tpublic bool isSaveable = true;\n\n\tpublic bool holdsRoof;\n\n\tpublic float fillPercent;\n\n\tpublic bool coversFloor;\n\n\tpublic bool neverOverlapFloors;\n\n\tpublic SurfaceType surfaceType;\n\n\tpublic bool wipesPlants;\n\n\tpublic bool blockPlants;\n\n\tpublic bool blockLight;\n\n\tpublic bool blockWind;\n\n\tpublic bool blockWeather;\n\n\tpublic Tradeability tradeability = Tradeability.All;\n\n\t[NoTranslate]\n\tpublic List tradeTags;\n\n\tpublic bool tradeNeverStack;\n\n\tpublic bool tradeNeverGenerateStacked;\n\n\tpublic bool healthAffectsPrice = true;\n\n\tpublic ColorGenerator colorGeneratorInTraderStock;\n\n\tprivate List verbs;\n\n\tpublic List tools;\n\n\tpublic float equippedAngleOffset;\n\n\tpublic float equippedDistanceOffset;\n\n\tpublic EquipmentType equipmentType;\n\n\tpublic TechLevel techLevel;\n\n\tpublic List weaponClasses;\n\n\t[NoTranslate]\n\tpublic List weaponTags;\n\n\t[NoTranslate]\n\tpublic List techHediffsTags;\n\n\tpublic bool violentTechHediff;\n\n\tpublic bool destroyOnDrop;\n\n\tpublic List equippedStatOffsets;\n\n\tpublic SoundDef meleeHitSound;\n\n\tpublic float recoilPower = 1f;\n\n\tpublic float recoilRelaxation = 10f;\n\n\tpublic bool rotateInShelves = true;\n\n\tpublic bool mergeVerbGizmos = true;\n\n\tpublic BuildableDef entityDefToBuild;\n\n\tpublic ThingDef projectileWhenLoaded;\n\n\tpublic RulePackDef ideoBuildingNamerBase;\n\n\tpublic EntityCodexEntryDef entityCodexEntry;\n\n\tpublic IngestibleProperties ingestible;\n\n\tpublic FilthProperties filth;\n\n\tpublic GasProperties gas;\n\n\tpublic BuildingProperties building;\n\n\tpublic RaceProperties race;\n\n\tpublic ApparelProperties apparel;\n\n\tpublic MoteProperties mote;\n\n\tpublic PlantProperties plant;\n\n\tpublic ProjectileProperties projectile;\n\n\tpublic StuffProperties stuffProps;\n\n\tpublic SkyfallerProperties skyfaller;\n\n\tpublic PawnFlyerProperties pawnFlyer;\n\n\tpublic RitualFocusProperties ritualFocus;\n\n\tpublic IngredientProperties ingredient;\n\n\tpublic MapPortalProperties portal;\n\n\tpublic bool canBeUsedUnderRoof = true;\n\n\t[Unsaved(false)]\n\tprivate string descriptionDetailedCached;\n\n\t[Unsaved(false)]\n\tpublic Graphic interactionCellGraphic;\n\n\t[Unsaved(false)]\n\tprivate bool? isNaturalOrganCached;\n\n\t[Unsaved(false)]\n\tprivate bool? hasSunShadowsCached;\n\n\t[Unsaved(false)]\n\tprivate List cachedRelevantStyleCategories;\n\n\tpublic const int SmallUnitPerVolume = 10;\n\n\tpublic const float SmallVolumePerUnit = 0.1f;\n\n\tpublic const float ArchonexusMaxItemStackMass = 5f;\n\n\tpublic const int ArchonexusMaxItemStackCount = 25;\n\n\tpublic const float ArchonexusMaxItemStackValue = 2000f;\n\n\tpublic const int ArchonexusAutoCalculateValue = -1;\n\n\tprivate List allRecipesCached;\n\n\tprivate static List EmptyVerbPropertiesList = new List();\n\n\tprivate Dictionary concreteExamplesInt;\n\n\tpublic bool EverHaulable\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!alwaysHaulable)\n\t\t\t{\n\t\t\t\treturn designateHaulable;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool EverPollutable => !building.isNaturalRock;\n\n\tpublic float VolumePerUnit\n\t{\n\t\tget\n\t\t{\n\t\t\tif (smallVolume)\n\t\t\t{\n\t\t\t\treturn 0.1f;\n\t\t\t}\n\t\t\treturn 1f;\n\t\t}\n\t}\n\n\tpublic override IntVec2 Size => size;\n\n\tpublic bool DiscardOnDestroyed => race == null;\n\n\tpublic int BaseMaxHitPoints => Mathf.RoundToInt(this.GetStatValueAbstract(StatDefOf.MaxHitPoints));\n\n\tpublic float BaseFlammability => this.GetStatValueAbstract(StatDefOf.Flammability);\n\n\tpublic float BaseMarketValue\n\t{\n\t\tget\n\t\t{\n\t\t\treturn this.GetStatValueAbstract(StatDefOf.MarketValue);\n\t\t}\n\t\tset\n\t\t{\n\t\t\tthis.SetStatBaseValue(StatDefOf.MarketValue, value);\n\t\t}\n\t}\n\n\tpublic float BaseMass => this.GetStatValueAbstract(StatDefOf.Mass);\n\n\tpublic int ArchonexusMaxAllowedCount\n\t{\n\t\tget\n\t\t{\n\t\t\tif (allowedArchonexusCount == -1)\n\t\t\t{\n\t\t\t\treturn Mathf.Min(stackLimit, 25, (BaseMass > 0f) ? ((int)(5f / BaseMass)) : 0, (BaseMarketValue > 0f) ? ((int)(2000f / BaseMarketValue)) : 0);\n\t\t\t}\n\t\t\treturn allowedArchonexusCount;\n\t\t}\n\t}\n\n\tpublic bool PlayerAcquirable\n\t{\n\t\tget\n\t\t{\n\t\t\tif (destroyOnDrop)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (this == ThingDefOf.ReinforcedBarrel && Find.Storyteller != null && Find.Storyteller.difficulty.classicMortars)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (requiresFactionToAcquire != null && Find.World != null && Find.World.factionManager != null)\n\t\t\t{\n\t\t\t\treturn Find.FactionManager.FirstFactionOfDef(requiresFactionToAcquire) != null;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool EverTransmitsPower\n\t{\n\t\tget\n\t\t{\n\t\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t\t{\n\t\t\t\tif (comps[i] is CompProperties_Power { transmitsPower: not false })\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 bool Minifiable => minifiedDef != null;\n\n\tpublic bool HasThingIDNumber => category != ThingCategory.Mote;\n\n\tpublic List AllRecipes\n\t{\n\t\tget\n\t\t{\n\t\t\tif (allRecipesCached == null)\n\t\t\t{\n\t\t\t\tallRecipesCached = new List();\n\t\t\t\tif (recipes != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 0; i < recipes.Count; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tallRecipesCached.Add(recipes[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList allDefsListForReading = DefDatabase.AllDefsListForReading;\n\t\t\t\tfor (int j = 0; j < allDefsListForReading.Count; j++)\n\t\t\t\t{\n\t\t\t\t\tif (allDefsListForReading[j].recipeUsers != null && allDefsListForReading[j].recipeUsers.Contains(this))\n\t\t\t\t\t{\n\t\t\t\t\t\tallRecipesCached.Add(allDefsListForReading[j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn allRecipesCached;\n\t\t}\n\t}\n\n\tpublic bool ConnectToPower\n\t{\n\t\tget\n\t\t{\n\t\t\tif (EverTransmitsPower)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t\t{\n\t\t\t\tif (comps[i].compClass == typeof(CompPowerBattery))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (comps[i].compClass == typeof(CompPowerTrader))\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 bool CoexistsWithFloors\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!neverOverlapFloors)\n\t\t\t{\n\t\t\t\treturn !coversFloor;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic FillCategory Fillage\n\t{\n\t\tget\n\t\t{\n\t\t\tif (fillPercent < 0.01f)\n\t\t\t{\n\t\t\t\treturn FillCategory.None;\n\t\t\t}\n\t\t\tif (fillPercent > 0.99f)\n\t\t\t{\n\t\t\t\treturn FillCategory.Full;\n\t\t\t}\n\t\t\treturn FillCategory.Partial;\n\t\t}\n\t}\n\n\tpublic bool MakeFog => Fillage == FillCategory.Full;\n\n\tpublic bool CanOverlapZones\n\t{\n\t\tget\n\t\t{\n\t\t\tif (building != null && building.SupportsPlants)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (passability == Traversability.Impassable && category != ThingCategory.Plant && !HasComp(typeof(CompTransporter)))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ((int)surfaceType >= 1)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (typeof(ISlotGroupParent).IsAssignableFrom(thingClass))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!canOverlapZones)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ((IsBlueprint || IsFrame) && entityDefToBuild is ThingDef thingDef)\n\t\t\t{\n\t\t\t\treturn thingDef.CanOverlapZones;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool CountAsResource => resourceReadoutPriority != ResourceCountPriority.Uncounted;\n\n\tpublic List Verbs\n\t{\n\t\tget\n\t\t{\n\t\t\tif (verbs != null)\n\t\t\t{\n\t\t\t\treturn verbs;\n\t\t\t}\n\t\t\treturn EmptyVerbPropertiesList;\n\t\t}\n\t}\n\n\tpublic bool CanHaveFaction\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsBlueprint || IsFrame)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn category switch\n\t\t\t{\n\t\t\t\tThingCategory.Pawn => true, \n\t\t\t\tThingCategory.Building => true, \n\t\t\t\t_ => false, \n\t\t\t};\n\t\t}\n\t}\n\n\tpublic bool Claimable\n\t{\n\t\tget\n\t\t{\n\t\t\tif (building != null && building.claimable)\n\t\t\t{\n\t\t\t\treturn !building.isNaturalRock;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic ThingCategoryDef FirstThingCategory\n\t{\n\t\tget\n\t\t{\n\t\t\tif (thingCategories.NullOrEmpty())\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn thingCategories[0];\n\t\t}\n\t}\n\n\tpublic float MedicineTendXpGainFactor => Mathf.Clamp(this.GetStatValueAbstract(StatDefOf.MedicalPotency) * 0.7f, 0.5f, 1f);\n\n\tpublic bool CanEverDeteriorate\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!useHitPoints)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (category != ThingCategory.Item)\n\t\t\t{\n\t\t\t\tif (plant != null)\n\t\t\t\t{\n\t\t\t\t\treturn plant.canDeteriorate;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool CanInteractThroughCorners\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category != ThingCategory.Building)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!holdsRoof)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (building != null && building.isNaturalRock && !IsSmoothed)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool AffectsRegions\n\t{\n\t\tget\n\t\t{\n\t\t\tif (passability != Traversability.Impassable && !IsDoor)\n\t\t\t{\n\t\t\t\treturn IsFence;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool AffectsReachability\n\t{\n\t\tget\n\t\t{\n\t\t\tif (AffectsRegions)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (passability == Traversability.Impassable || IsDoor)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (TouchPathEndModeUtility.MakesOccupiedCellsAlwaysReachableDiagonally(this))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic string DescriptionDetailed\n\t{\n\t\tget\n\t\t{\n\t\t\tif (descriptionDetailedCached == null)\n\t\t\t{\n\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\tstringBuilder.Append(description);\n\t\t\t\tif (IsApparel)\n\t\t\t\t{\n\t\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\t\tstringBuilder.AppendLine(string.Format(\"{0}: {1}\", \"Layer\".Translate(), apparel.GetLayersString()));\n\t\t\t\t\tstringBuilder.Append(string.Format(\"{0}: {1}\", \"Covers\".Translate(), apparel.GetCoveredOuterPartsString(BodyDefOf.Human)));\n\t\t\t\t\tif (equippedStatOffsets != null && equippedStatOffsets.Count > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\t\t\tfor (int i = 0; i < equippedStatOffsets.Count; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (i > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tStatModifier statModifier = equippedStatOffsets[i];\n\t\t\t\t\t\t\tstringBuilder.Append($\"{statModifier.stat.LabelCap}: {statModifier.ValueToStringAsOffset}\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdescriptionDetailedCached = stringBuilder.ToString();\n\t\t\t}\n\t\t\treturn descriptionDetailedCached;\n\t\t}\n\t}\n\n\tpublic bool CanBenefitFromCover\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Pawn)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (building != null && building.IsTurret)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool PotentiallySmeltable\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!smeltable)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (base.MadeFromStuff)\n\t\t\t{\n\t\t\t\tforeach (ThingDef item in GenStuff.AllowedStuffsFor(this))\n\t\t\t\t{\n\t\t\t\t\tif (item.smeltable)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool HasSingleOrMultipleInteractionCells\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!hasInteractionCell)\n\t\t\t{\n\t\t\t\treturn !multipleInteractionCellOffsets.NullOrEmpty();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool IsApparel => apparel != null;\n\n\tpublic bool IsBed => typeof(Building_Bed).IsAssignableFrom(thingClass);\n\n\tpublic bool IsWall\n\t{\n\t\tget\n\t\t{\n\t\t\tif (building != null)\n\t\t\t{\n\t\t\t\treturn building.isWall;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsCorpse => typeof(Corpse).IsAssignableFrom(thingClass);\n\n\tpublic bool IsFrame => isFrameInt;\n\n\tpublic bool IsBlueprint\n\t{\n\t\tget\n\t\t{\n\t\t\tif (entityDefToBuild != null)\n\t\t\t{\n\t\t\t\treturn category == ThingCategory.Ethereal;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsStuff => stuffProps != null;\n\n\tpublic bool IsMedicine => statBases.StatListContains(StatDefOf.MedicalPotency);\n\n\tpublic bool IsDoor => typeof(Building_Door).IsAssignableFrom(thingClass);\n\n\tpublic bool IsFence\n\t{\n\t\tget\n\t\t{\n\t\t\tif (building != null)\n\t\t\t{\n\t\t\t\treturn building.isFence;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsFilth => filth != null;\n\n\tpublic bool IsIngestible => ingestible != null;\n\n\tpublic bool IsNutritionGivingIngestible\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsIngestible)\n\t\t\t{\n\t\t\t\treturn ingestible.CachedNutrition > 0f;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsNutritionGivingIngestibleForHumanlikeBabies\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsNutritionGivingIngestible && ingestible.HumanEdible)\n\t\t\t{\n\t\t\t\treturn ingestible.babiesCanIngest;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsWeapon\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Item && (!verbs.NullOrEmpty() || !tools.NullOrEmpty()))\n\t\t\t{\n\t\t\t\treturn !IsApparel;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsCommsConsole => typeof(Building_CommsConsole).IsAssignableFrom(thingClass);\n\n\tpublic bool IsOrbitalTradeBeacon => typeof(Building_OrbitalTradeBeacon).IsAssignableFrom(thingClass);\n\n\tpublic bool IsFoodDispenser => typeof(Building_NutrientPasteDispenser).IsAssignableFrom(thingClass);\n\n\tpublic bool IsDrug\n\t{\n\t\tget\n\t\t{\n\t\t\tif (ingestible != null)\n\t\t\t{\n\t\t\t\treturn ingestible.drugCategory != DrugCategory.None;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsPleasureDrug\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsDrug)\n\t\t\t{\n\t\t\t\treturn ingestible.joy > 0f;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsNonMedicalDrug\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsDrug)\n\t\t\t{\n\t\t\t\treturn ingestible.drugCategory != DrugCategory.Medical;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsTable\n\t{\n\t\tget\n\t\t{\n\t\t\tif (surfaceType == SurfaceType.Eat)\n\t\t\t{\n\t\t\t\treturn HasComp(typeof(CompGatherSpot));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsWorkTable => typeof(Building_WorkTable).IsAssignableFrom(thingClass);\n\n\tpublic bool IsShell => projectileWhenLoaded != null;\n\n\tpublic bool IsArt => IsWithinCategory(ThingCategoryDefOf.BuildingsArt);\n\n\tpublic bool IsSmoothable => building?.smoothedThing != null;\n\n\tpublic bool IsSmoothed => building?.unsmoothedThing != null;\n\n\tpublic bool IsMetal\n\t{\n\t\tget\n\t\t{\n\t\t\tif (stuffProps != null)\n\t\t\t{\n\t\t\t\treturn stuffProps.categories.Contains(StuffCategoryDefOf.Metallic);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsCryptosleepCasket => typeof(Building_CryptosleepCasket).IsAssignableFrom(thingClass);\n\n\tpublic bool IsGibbetCage => typeof(Building_GibbetCage).IsAssignableFrom(thingClass);\n\n\tpublic bool IsMechGestator => typeof(Building_MechGestator).IsAssignableFrom(thingClass);\n\n\tpublic bool IsMechRecharger => typeof(Building_MechCharger).IsAssignableFrom(thingClass);\n\n\tpublic bool IsAddictiveDrug\n\t{\n\t\tget\n\t\t{\n\t\t\tCompProperties_Drug compProperties = GetCompProperties();\n\t\t\tif (compProperties != null)\n\t\t\t{\n\t\t\t\treturn compProperties.addictiveness > 0f;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsMeat\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Item && thingCategories != null)\n\t\t\t{\n\t\t\t\treturn thingCategories.Contains(ThingCategoryDefOf.MeatRaw);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsEgg\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Item && thingCategories != null)\n\t\t\t{\n\t\t\t\tif (!thingCategories.Contains(ThingCategoryDefOf.EggsFertilized))\n\t\t\t\t{\n\t\t\t\t\treturn thingCategories.Contains(ThingCategoryDefOf.EggsUnfertilized);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsLeather\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Item && thingCategories != null)\n\t\t\t{\n\t\t\t\treturn thingCategories.Contains(ThingCategoryDefOf.Leathers);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsWool\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Item && thingCategories != null)\n\t\t\t{\n\t\t\t\treturn thingCategories.Contains(ThingCategoryDefOf.Wools);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsRangedWeapon\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!IsWeapon)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!verbs.NullOrEmpty())\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < verbs.Count; i++)\n\t\t\t\t{\n\t\t\t\t\tif (!verbs[i].IsMeleeAttack)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsMeleeWeapon\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsWeapon)\n\t\t\t{\n\t\t\t\treturn !IsRangedWeapon;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsWeaponUsingProjectiles\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!IsWeapon)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!verbs.NullOrEmpty())\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < verbs.Count; i++)\n\t\t\t\t{\n\t\t\t\t\tif (verbs[i].LaunchesProjectile)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsShieldThatBlocksRanged\n\t{\n\t\tget\n\t\t{\n\t\t\tif (HasComp(typeof(CompShield)))\n\t\t\t{\n\t\t\t\treturn GetCompProperties().blocksRangedWeapons;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsBuildingArtificial\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Building || IsFrame)\n\t\t\t{\n\t\t\t\tif (building != null)\n\t\t\t\t{\n\t\t\t\t\tif (!building.isNaturalRock)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn !building.isResourceRock;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsNonResourceNaturalRock\n\t{\n\t\tget\n\t\t{\n\t\t\tif (category == ThingCategory.Building && building.isNaturalRock && !building.isResourceRock && !building.mineablePreventNaturalRockOnSurface)\n\t\t\t{\n\t\t\t\treturn !IsSmoothed;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool HasSunShadows\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!hasSunShadowsCached.HasValue)\n\t\t\t{\n\t\t\t\thasSunShadowsCached = typeof(Pawn).IsAssignableFrom(thingClass);\n\t\t\t}\n\t\t\treturn hasSunShadowsCached.Value;\n\t\t}\n\t}\n\n\tpublic bool IsNaturalOrgan\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!isNaturalOrganCached.HasValue)\n\t\t\t{\n\t\t\t\tif (category != ThingCategory.Item)\n\t\t\t\t{\n\t\t\t\t\tisNaturalOrganCached = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList allDefsListForReading = DefDatabase.AllDefsListForReading;\n\t\t\t\t\tisNaturalOrganCached = false;\n\t\t\t\t\tfor (int i = 0; i < allDefsListForReading.Count; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (allDefsListForReading[i].spawnThingOnRemoved == this)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisNaturalOrganCached = true;\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}\n\t\t\t}\n\t\t\treturn isNaturalOrganCached.Value;\n\t\t}\n\t}\n\n\tpublic bool IsFungus\n\t{\n\t\tget\n\t\t{\n\t\t\tif (ingestible != null)\n\t\t\t{\n\t\t\t\treturn ingestible.foodType.HasFlag(FoodTypeFlags.Fungus);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsAnimalProduct\n\t{\n\t\tget\n\t\t{\n\t\t\tif (ingestible != null)\n\t\t\t{\n\t\t\t\treturn ingestible.foodType.HasFlag(FoodTypeFlags.AnimalProduct);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsProcessedFood\n\t{\n\t\tget\n\t\t{\n\t\t\tif (ingestible != null)\n\t\t\t{\n\t\t\t\treturn ingestible.foodType.HasFlag(FoodTypeFlags.Processed);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool CanAffectLinker\n\t{\n\t\tget\n\t\t{\n\t\t\tif (graphicData == null || !graphicData.Linked)\n\t\t\t{\n\t\t\t\treturn IsDoor;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic bool IsNonDeconstructibleAttackableBuilding\n\t{\n\t\tget\n\t\t{\n\t\t\tif (IsBuildingArtificial && !building.IsDeconstructible && destroyable && !mineable && building.isTargetable)\n\t\t\t{\n\t\t\t\treturn building.draftAttackNonDeconstructable;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic bool IsPlant => typeof(Plant).IsAssignableFrom(thingClass);\n\n\tpublic bool IsDeadPlant => typeof(DeadPlant).IsAssignableFrom(thingClass);\n\n\tpublic bool IsStudiable => HasAssignableCompFrom(typeof(CompStudiable));\n\n\tpublic List RelevantStyleCategories\n\t{\n\t\tget\n\t\t{\n\t\t\tif (cachedRelevantStyleCategories == null)\n\t\t\t{\n\t\t\t\tcachedRelevantStyleCategories = new List();\n\t\t\t\tforeach (StyleCategoryDef allDef in DefDatabase.AllDefs)\n\t\t\t\t{\n\t\t\t\t\tif (allDef.thingDefStyles.NullOrEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tforeach (ThingDefStyle thingDefStyle in allDef.thingDefStyles)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (thingDefStyle.ThingDef == this)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcachedRelevantStyleCategories.Add(allDef);\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}\n\t\t\t}\n\t\t\treturn cachedRelevantStyleCategories;\n\t\t}\n\t}\n\n\tpublic string LabelAsStuff\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!stuffProps.stuffAdjective.NullOrEmpty())\n\t\t\t{\n\t\t\t\treturn stuffProps.stuffAdjective;\n\t\t\t}\n\t\t\treturn label;\n\t\t}\n\t}\n\n\tpublic bool BlocksPlanting(bool canWipePlants = false)\n\t{\n\t\tif (building != null && building.SupportsPlants)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (building != null && building.isAttachment)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (blockPlants)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (!canWipePlants && category == ThingCategory.Plant)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif ((int)Fillage > 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (this.IsEdifice())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic virtual bool CanSpawnAt(IntVec3 pos, Rot4 rot, Map map)\n\t{\n\t\treturn true;\n\t}\n\n\tpublic bool EverStorable(bool willMinifyIfPossible)\n\t{\n\t\tif (typeof(MinifiedThing).IsAssignableFrom(thingClass))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (!thingCategories.NullOrEmpty())\n\t\t{\n\t\t\tif (category == ThingCategory.Item)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (willMinifyIfPossible && Minifiable)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic Thing GetConcreteExample(ThingDef stuff = null)\n\t{\n\t\tif (concreteExamplesInt == null)\n\t\t{\n\t\t\tconcreteExamplesInt = new Dictionary();\n\t\t}\n\t\tif (stuff == null)\n\t\t{\n\t\t\tstuff = ThingDefOf.Steel;\n\t\t}\n\t\tif (!concreteExamplesInt.ContainsKey(stuff))\n\t\t{\n\t\t\tif (race == null)\n\t\t\t{\n\t\t\t\tconcreteExamplesInt[stuff] = ThingMaker.MakeThing(this, base.MadeFromStuff ? stuff : null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconcreteExamplesInt[stuff] = PawnGenerator.GeneratePawn(DefDatabase.AllDefsListForReading.FirstOrDefault((PawnKindDef pkd) => pkd.race == this));\n\t\t\t}\n\t\t}\n\t\treturn concreteExamplesInt[stuff];\n\t}\n\n\tpublic CompProperties CompDefFor() where T : ThingComp\n\t{\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tif (comps[i].compClass == typeof(T))\n\t\t\t{\n\t\t\t\treturn comps[i];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic CompProperties CompDefForAssignableFrom() where T : ThingComp\n\t{\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tif (typeof(T).IsAssignableFrom(comps[i].compClass))\n\t\t\t{\n\t\t\t\treturn comps[i];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic bool HasComp(Type compType)\n\t{\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tif (comps[i].compClass == compType)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic bool HasComp() where T : ThingComp\n\t{\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tif (comps[i].compClass == typeof(T) || typeof(T).IsAssignableFrom(comps[i].compClass))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic bool HasAssignableCompFrom(Type compType)\n\t{\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tif (compType.IsAssignableFrom(comps[i].compClass))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic T GetCompProperties() where T : CompProperties\n\t{\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tif (comps[i] is T result)\n\t\t\t{\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic override void PostLoad()\n\t{\n\t\tif (graphicData != null)\n\t\t{\n\t\t\tLongEventHandler.ExecuteWhenFinished(delegate\n\t\t\t{\n\t\t\t\tGraphicData graphicData = this.graphicData;\n\t\t\t\tif (graphicData.shaderType == null)\n\t\t\t\t{\n\t\t\t\t\tgraphicData.shaderType = ShaderTypeDefOf.Cutout;\n\t\t\t\t}\n\t\t\t\tContentFinderRequester.requester = this;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgraphic = this.graphicData.Graphic;\n\t\t\t\t\tif (drawerType != DrawerType.RealtimeOnly)\n\t\t\t\t\t{\n\t\t\t\t\t\tTextureAtlasGroup textureAtlasGroup = category.ToAtlasGroup();\n\t\t\t\t\t\tgraphic.TryInsertIntoAtlas(textureAtlasGroup);\n\t\t\t\t\t\tif (textureAtlasGroup == TextureAtlasGroup.Building && Minifiable)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tgraphic.TryInsertIntoAtlas(TextureAtlasGroup.Item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tContentFinderRequester.requester = null;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tif (tools != null)\n\t\t{\n\t\t\tfor (int i = 0; i < tools.Count; i++)\n\t\t\t{\n\t\t\t\ttools[i].id = i.ToString();\n\t\t\t}\n\t\t}\n\t\tif (verbs != null && verbs.Count == 1 && verbs[0].label.NullOrEmpty())\n\t\t{\n\t\t\tverbs[0].label = label;\n\t\t}\n\t\tbase.PostLoad();\n\t\tif (category == ThingCategory.Building && building == null)\n\t\t{\n\t\t\tbuilding = new BuildingProperties();\n\t\t}\n\t\tbuilding?.PostLoadSpecial(this);\n\t\tapparel?.PostLoadSpecial(this);\n\t\tplant?.PostLoadSpecial(this);\n\t\tif (comps == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tforeach (CompProperties comp in comps)\n\t\t{\n\t\t\tcomp.PostLoadSpecial(this);\n\t\t}\n\t}\n\n\tprotected override void ResolveIcon()\n\t{\n\t\tbase.ResolveIcon();\n\t\tif (category == ThingCategory.Pawn)\n\t\t{\n\t\t\tif (!uiIconPath.NullOrEmpty())\n\t\t\t{\n\t\t\t\tuiIcon = ContentFinder.Get(uiIconPath);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (race.Humanlike)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tPawnKindDef anyPawnKind = race.AnyPawnKind;\n\t\t\t\tif (anyPawnKind != null)\n\t\t\t\t{\n\t\t\t\t\tMaterial material = ((ModsConfig.BiotechActive && anyPawnKind.RaceProps.IsMechanoid) ? anyPawnKind.lifeStages.First() : anyPawnKind.lifeStages.Last()).bodyGraphicData.Graphic.MatAt(Rot4.East);\n\t\t\t\t\tuiIcon = (Texture2D)material.mainTexture;\n\t\t\t\t\tuiIconColor = material.color;\n\t\t\t\t\tif (ShaderDatabase.TryGetUIShader(material.shader, out var uiShader) && MaterialPool.TryGetRequestForMat(material, out var request))\n\t\t\t\t\t{\n\t\t\t\t\t\trequest.shader = uiShader;\n\t\t\t\t\t\tuiIconMaterial = MaterialPool.MatFrom(request);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tThingDef thingDef = GenStuff.DefaultStuffFor(this);\n\t\t\tif (colorGenerator != null && (thingDef == null || thingDef.stuffProps.allowColorGenerators))\n\t\t\t{\n\t\t\t\tuiIconColor = colorGenerator.ExemplaryColor;\n\t\t\t}\n\t\t\telse if (thingDef != null)\n\t\t\t{\n\t\t\t\tuiIconColor = GetColorForStuff(thingDef);\n\t\t\t}\n\t\t\telse if (graphicData != null)\n\t\t\t{\n\t\t\t\tuiIconColor = graphicData.color;\n\t\t\t}\n\t\t\tif (rotatable && graphic != null && graphic != BaseContent.BadGraphic && graphic.ShouldDrawRotated && defaultPlacingRot == Rot4.South)\n\t\t\t{\n\t\t\t\tuiIconAngle = 180f + graphic.DrawRotatedExtraAngleOffset;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override void ResolveReferences()\n\t{\n\t\tbase.ResolveReferences();\n\t\tif (ingestible != null)\n\t\t{\n\t\t\tingestible.parent = this;\n\t\t}\n\t\tif (stuffProps != null)\n\t\t{\n\t\t\tstuffProps.parent = this;\n\t\t}\n\t\tbuilding?.ResolveReferencesSpecial();\n\t\tgraphicData?.ResolveReferencesSpecial();\n\t\trace?.ResolveReferencesSpecial();\n\t\tstuffProps?.ResolveReferencesSpecial();\n\t\tapparel?.ResolveReferencesSpecial();\n\t\tif (soundImpactDefault == null)\n\t\t{\n\t\t\tsoundImpactDefault = SoundDefOf.BulletImpact_Ground;\n\t\t}\n\t\tif (soundDrop == null)\n\t\t{\n\t\t\tsoundDrop = SoundDefOf.Standard_Drop;\n\t\t}\n\t\tif (soundPickup == null)\n\t\t{\n\t\t\tsoundPickup = SoundDefOf.Standard_Pickup;\n\t\t}\n\t\tif (soundInteract == null)\n\t\t{\n\t\t\tsoundInteract = SoundDefOf.Standard_Pickup;\n\t\t}\n\t\tif (inspectorTabs != null && inspectorTabs.Any())\n\t\t{\n\t\t\tinspectorTabsResolved = new List();\n\t\t\tfor (int i = 0; i < inspectorTabs.Count; i++)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tinspectorTabsResolved.Add(InspectTabManager.GetSharedInstance(inspectorTabs[i]));\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex)\n\t\t\t\t{\n\t\t\t\t\tLog.Error(\"Could not instantiate inspector tab of type \" + inspectorTabs[i]?.ToString() + \": \" + ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (comps != null)\n\t\t{\n\t\t\tfor (int j = 0; j < comps.Count; j++)\n\t\t\t{\n\t\t\t\tcomps[j].ResolveReferences(this);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override IEnumerable ConfigErrors()\n\t{\n\t\tforeach (string item in base.ConfigErrors())\n\t\t{\n\t\t\tyield return item;\n\t\t}\n\t\tif (category != ThingCategory.Ethereal && label.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"no label\";\n\t\t}\n\t\tif (category == ThingCategory.Building && !IsFrame && building.IsDeconstructible && thingClass != null && typeof(Building).IsSubclassOf(thingClass))\n\t\t{\n\t\t\tyield return \"has building category and is marked as deconstructible, but thing class is not a subclass of building (\" + thingClass.Name + \")\";\n\t\t}\n\t\tif (graphicData != null)\n\t\t{\n\t\t\tforeach (string item2 in graphicData.ConfigErrors(this))\n\t\t\t{\n\t\t\t\tyield return item2;\n\t\t\t}\n\t\t}\n\t\tif (projectile != null)\n\t\t{\n\t\t\tforeach (string item3 in projectile.ConfigErrors(this))\n\t\t\t{\n\t\t\t\tyield return item3;\n\t\t\t}\n\t\t}\n\t\tif (statBases != null)\n\t\t{\n\t\t\tforeach (StatModifier statBase in statBases)\n\t\t\t{\n\t\t\t\tif (statBases.Count((StatModifier st) => st.stat == statBase.stat) > 1)\n\t\t\t\t{\n\t\t\t\t\tyield return \"defines the stat base \" + statBase.stat?.ToString() + \" more than once.\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!BeautyUtility.BeautyRelevant(category) && this.StatBaseDefined(StatDefOf.Beauty))\n\t\t{\n\t\t\tyield return \"Beauty stat base is defined, but Things of category \" + category.ToString() + \" cannot have beauty.\";\n\t\t}\n\t\tif (!BeautyUtility.BeautyRelevant(category) && this.StatBaseDefined(StatDefOf.BeautyOutdoors))\n\t\t{\n\t\t\tyield return \"BeautyOutdoors stat base is defined, but Things of category \" + category.ToString() + \" cannot have beauty.\";\n\t\t}\n\t\tif (char.IsNumber(defName[defName.Length - 1]))\n\t\t{\n\t\t\tyield return \"ends with a numerical digit, which is not allowed on ThingDefs.\";\n\t\t}\n\t\tif (thingClass == null)\n\t\t{\n\t\t\tyield return \"has null thingClass.\";\n\t\t}\n\t\tif (comps.Count > 0 && !typeof(ThingWithComps).IsAssignableFrom(thingClass))\n\t\t{\n\t\t\tyield return \"has components but it's thingClass is not a ThingWithComps\";\n\t\t}\n\t\tif (ConnectToPower && drawerType == DrawerType.RealtimeOnly && IsFrame)\n\t\t{\n\t\t\tyield return \"connects to power but does not add to map mesh. Will not create wire meshes.\";\n\t\t}\n\t\tif (costList != null)\n\t\t{\n\t\t\tforeach (ThingDefCountClass cost in costList)\n\t\t\t{\n\t\t\t\tif (cost.count == 0)\n\t\t\t\t{\n\t\t\t\t\tyield return \"cost in \" + cost.thingDef?.ToString() + \" is zero.\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tThingCategoryDef thingCategoryDef = thingCategories?.FirstOrDefault((ThingCategoryDef cat) => thingCategories.Count((ThingCategoryDef c) => c == cat) > 1);\n\t\tif (thingCategoryDef != null)\n\t\t{\n\t\t\tyield return \"has duplicate thingCategory \" + thingCategoryDef?.ToString() + \".\";\n\t\t}\n\t\tif (Fillage == FillCategory.Full && category != ThingCategory.Building)\n\t\t{\n\t\t\tyield return \"gives full cover but is not a building.\";\n\t\t}\n\t\tif (equipmentType != 0)\n\t\t{\n\t\t\tif (techLevel == TechLevel.Undefined && !destroyOnDrop)\n\t\t\t{\n\t\t\t\tyield return \"is equipment but has no tech level.\";\n\t\t\t}\n\t\t\tif (!comps.Any((CompProperties c) => typeof(CompEquippable).IsAssignableFrom(c.compClass)))\n\t\t\t{\n\t\t\t\tyield return \"is equipment but has no CompEquippable\";\n\t\t\t}\n\t\t}\n\t\tif (thingClass == typeof(Bullet) && projectile.damageDef == null)\n\t\t{\n\t\t\tyield return \" is a bullet but has no damageDef.\";\n\t\t}\n\t\tif (destroyOnDrop && tradeability != 0)\n\t\t{\n\t\t\tyield return \"destroyOnDrop but tradeability is \" + tradeability;\n\t\t}\n\t\tif (stackLimit > 1 && !drawGUIOverlay)\n\t\t{\n\t\t\tyield return \"has stackLimit > 1 but also has drawGUIOverlay = false.\";\n\t\t}\n\t\tif (damageMultipliers != null)\n\t\t{\n\t\t\tforeach (DamageMultiplier mult in damageMultipliers)\n\t\t\t{\n\t\t\t\tif (damageMultipliers.Count((DamageMultiplier m) => m.damageDef == mult.damageDef) > 1)\n\t\t\t\t{\n\t\t\t\t\tyield return \"has multiple damage multipliers for damageDef \" + mult.damageDef;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Fillage == FillCategory.Full && !this.IsEdifice())\n\t\t{\n\t\t\tyield return \"fillPercent is 1.00 but is not edifice\";\n\t\t}\n\t\tif (base.MadeFromStuff && constructEffect != null)\n\t\t{\n\t\t\tyield return \"madeFromStuff but has a defined constructEffect (which will always be overridden by stuff's construct animation).\";\n\t\t}\n\t\tif (base.MadeFromStuff && stuffCategories.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"madeFromStuff but has no stuffCategories.\";\n\t\t}\n\t\tif (costList.NullOrEmpty() && costStuffCount <= 0 && recipeMaker != null)\n\t\t{\n\t\t\tyield return \"has a recipeMaker but no costList or costStuffCount.\";\n\t\t}\n\t\tif (costStuffCount > 0 && stuffCategories.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"has costStuffCount but no stuffCategories.\";\n\t\t}\n\t\tif (this.GetStatValueAbstract(StatDefOf.DeteriorationRate) > 1E-05f && !CanEverDeteriorate && !destroyOnDrop)\n\t\t{\n\t\t\tyield return \"has >0 DeteriorationRate but can't deteriorate.\";\n\t\t}\n\t\tif (smeltProducts != null && !smeltable)\n\t\t{\n\t\t\tyield return \"has smeltProducts but has smeltable=false\";\n\t\t}\n\t\tif (smeltable && smeltProducts.NullOrEmpty() && base.CostList.NullOrEmpty() && !IsStuff && !base.MadeFromStuff && !destroyOnDrop)\n\t\t{\n\t\t\tyield return \"is smeltable but does not give anything for smelting.\";\n\t\t}\n\t\tif (equipmentType != 0 && verbs.NullOrEmpty() && tools.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"is equipment but has no verbs or tools\";\n\t\t}\n\t\tif (Minifiable && thingCategories.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"is minifiable but not in any thing category\";\n\t\t}\n\t\tif (category == ThingCategory.Building && !Minifiable && !thingCategories.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"is not minifiable yet has thing categories (could be confusing in thing filters because it can't be moved/stored anyway)\";\n\t\t}\n\t\tif (!destroyOnDrop && !typeof(MinifiedThing).IsAssignableFrom(thingClass) && (EverHaulable || Minifiable) && (statBases.NullOrEmpty() || !statBases.Any((StatModifier s) => s.stat == StatDefOf.Mass)))\n\t\t{\n\t\t\tyield return \"is haulable, but does not have an authored mass value\";\n\t\t}\n\t\tif (ingestible == null && this.GetStatValueAbstract(StatDefOf.Nutrition) != 0f)\n\t\t{\n\t\t\tyield return \"has nutrition but ingestible properties are null\";\n\t\t}\n\t\tif (BaseFlammability != 0f && !useHitPoints && category != ThingCategory.Pawn && !destroyOnDrop)\n\t\t{\n\t\t\tyield return \"flammable but has no hitpoints (will burn indefinitely)\";\n\t\t}\n\t\tif (graphicData?.shadowData != null && staticSunShadowHeight > 0f)\n\t\t{\n\t\t\tyield return \"graphicData defines a shadowInfo but staticSunShadowHeight > 0\";\n\t\t}\n\t\tif (saveCompressible && Claimable)\n\t\t{\n\t\t\tyield return \"claimable item is compressible; faction will be unset after load\";\n\t\t}\n\t\tif (deepCommonality > 0f != deepLumpSizeRange.TrueMax > 0)\n\t\t{\n\t\t\tyield return \"if deepCommonality or deepLumpSizeRange is set, the other also must be set\";\n\t\t}\n\t\tif (deepCommonality > 0f && deepCountPerPortion <= 0)\n\t\t{\n\t\t\tyield return \"deepCommonality > 0 but deepCountPerPortion is not set\";\n\t\t}\n\t\tif (verbs != null)\n\t\t{\n\t\t\tfor (int i = 0; i < verbs.Count; i++)\n\t\t\t{\n\t\t\t\tforeach (string item4 in verbs[i].ConfigErrors(this))\n\t\t\t\t{\n\t\t\t\t\tyield return $\"verb {i}: {item4}\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (building != null)\n\t\t{\n\t\t\tforeach (string item5 in building.ConfigErrors(this))\n\t\t\t{\n\t\t\t\tyield return item5;\n\t\t\t}\n\t\t\tif ((building.isAirtight || building.isStuffableAirtight) && Fillage != FillCategory.Full)\n\t\t\t{\n\t\t\t\tyield return \"is airtight but Fillage is not Full\";\n\t\t\t}\n\t\t}\n\t\tif (apparel != null)\n\t\t{\n\t\t\tforeach (string item6 in apparel.ConfigErrors(this))\n\t\t\t{\n\t\t\t\tyield return item6;\n\t\t\t}\n\t\t}\n\t\tif (comps != null)\n\t\t{\n\t\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t\t{\n\t\t\t\tforeach (string item7 in comps[i].ConfigErrors(this))\n\t\t\t\t{\n\t\t\t\t\tyield return item7;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (race != null)\n\t\t{\n\t\t\tforeach (string item8 in race.ConfigErrors(this))\n\t\t\t{\n\t\t\t\tyield return item8;\n\t\t\t}\n\t\t\tif (race.body != null && race != null && tools != null)\n\t\t\t{\n\t\t\t\tint i;\n\t\t\t\tfor (i = 0; i < tools.Count; i++)\n\t\t\t\t{\n\t\t\t\t\tif (tools[i].linkedBodyPartsGroup != null && !race.body.AllParts.Any((BodyPartRecord part) => part.groups.Contains(tools[i].linkedBodyPartsGroup)))\n\t\t\t\t\t{\n\t\t\t\t\t\tyield return \"has tool with linkedBodyPartsGroup \" + tools[i].linkedBodyPartsGroup?.ToString() + \" but body \" + race.body?.ToString() + \" has no parts with that group.\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (race.Animal && this.GetStatValueAbstract(StatDefOf.Wildness) < 0f)\n\t\t\t{\n\t\t\t\tyield return \"is animal but wildness is not defined\";\n\t\t\t}\n\t\t}\n\t\tif (ingestible != null)\n\t\t{\n\t\t\tforeach (string item9 in ingestible.ConfigErrors())\n\t\t\t{\n\t\t\t\tyield return item9;\n\t\t\t}\n\t\t}\n\t\tif (plant != null)\n\t\t{\n\t\t\tforeach (string item10 in plant.ConfigErrors())\n\t\t\t{\n\t\t\t\tyield return item10;\n\t\t\t}\n\t\t}\n\t\tif (tools != null)\n\t\t{\n\t\t\tTool tool = tools.SelectMany((Tool lhs) => tools.Where((Tool rhs) => lhs != rhs && lhs.id == rhs.id)).FirstOrDefault();\n\t\t\tif (tool != null)\n\t\t\t{\n\t\t\t\tyield return \"duplicate thingdef tool id \" + tool.id;\n\t\t\t}\n\t\t\tforeach (Tool tool2 in tools)\n\t\t\t{\n\t\t\t\tforeach (string item11 in tool2.ConfigErrors())\n\t\t\t\t{\n\t\t\t\t\tyield return item11;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!randomStyle.NullOrEmpty())\n\t\t{\n\t\t\tforeach (ThingStyleChance item12 in randomStyle)\n\t\t\t{\n\t\t\t\tif (item12.Chance <= 0f)\n\t\t\t\t{\n\t\t\t\t\tyield return \"style chance <= 0.\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!comps.Any((CompProperties c) => c.compClass == typeof(CompStyleable)))\n\t\t\t{\n\t\t\t\tyield return \"random style assigned, but missing CompStyleable!\";\n\t\t\t}\n\t\t}\n\t\tif (relicChance > 0f && category != ThingCategory.Item)\n\t\t{\n\t\t\tyield return \"relic chance > 0 but category != item\";\n\t\t}\n\t\tif (hasInteractionCell && !multipleInteractionCellOffsets.NullOrEmpty())\n\t\t{\n\t\t\tyield return \"both single and multiple interaction cells are defined, it should be one or the other\";\n\t\t}\n\t\tif (Fillage != FillCategory.Full && passability == Traversability.Impassable && !IsDoor && base.BuildableByPlayer && !disableImpassableShotOverConfigError)\n\t\t{\n\t\t\tyield return \"impassable, player-buildable building that can be shot/seen over.\";\n\t\t}\n\t}\n\n\tpublic static ThingDef Named(string defName)\n\t{\n\t\treturn DefDatabase.GetNamed(defName);\n\t}\n\n\tpublic bool IsWithinCategory(ThingCategoryDef category)\n\t{\n\t\tif (thingCategories == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < thingCategories.Count; i++)\n\t\t{\n\t\t\tfor (ThingCategoryDef thingCategoryDef = thingCategories[i]; thingCategoryDef != null; thingCategoryDef = thingCategoryDef.parent)\n\t\t\t{\n\t\t\t\tif (thingCategoryDef == category)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic void Notify_UnlockedByResearch()\n\t{\n\t\tif (comps != null)\n\t\t{\n\t\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t\t{\n\t\t\t\tcomps[i].Notify_PostUnlockedByResearch(this);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override IEnumerable SpecialDisplayStats(StatRequest req)\n\t{\n\t\tforeach (StatDrawEntry item in base.SpecialDisplayStats(req))\n\t\t{\n\t\t\tyield return item;\n\t\t}\n\t\tif (apparel != null)\n\t\t{\n\t\t\tstring coveredOuterPartsString = apparel.GetCoveredOuterPartsString(BodyDefOf.Human);\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Apparel, \"Covers\".Translate(), coveredOuterPartsString, \"Stat_Thing_Apparel_Covers_Desc\".Translate(), 2750);\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Apparel, \"Layer\".Translate(), apparel.GetLayersString(), \"Stat_Thing_Apparel_Layer_Desc\".Translate(), 2751);\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Apparel, \"Stat_Thing_Apparel_CountsAsClothingNudity_Name\".Translate(), apparel.countsAsClothingForNudity ? \"Yes\".Translate() : \"No\".Translate(), \"Stat_Thing_Apparel_CountsAsClothingNudity_Desc\".Translate(), 2753);\n\t\t\tif (ModsConfig.BiotechActive)\n\t\t\t{\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Apparel, \"Stat_Thing_Apparel_ValidLifestage\".Translate(), apparel.developmentalStageFilter.ToCommaList().CapitalizeFirst(), \"Stat_Thing_Apparel_ValidLifestage_Desc\".Translate(), 2748);\n\t\t\t}\n\t\t\tif (apparel.gender != 0)\n\t\t\t{\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Apparel, \"Stat_Thing_Apparel_Gender\".Translate(), apparel.gender.GetLabel().CapitalizeFirst(), \"Stat_Thing_Apparel_Gender_Desc\".Translate(), 2749);\n\t\t\t}\n\t\t}\n\t\tif (IsMedicine && MedicineTendXpGainFactor != 1f)\n\t\t{\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"MedicineXpGainFactor\".Translate(), MedicineTendXpGainFactor.ToStringPercent(), \"Stat_Thing_Drug_MedicineXpGainFactor_Desc\".Translate(), 1000);\n\t\t}\n\t\tif (fillPercent > 0f && (category == ThingCategory.Item || category == ThingCategory.Building || category == ThingCategory.Plant))\n\t\t{\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"CoverEffectiveness\".Translate(), this.BaseBlockChance().ToStringPercent(), \"CoverEffectivenessExplanation\".Translate(), 2000);\n\t\t}\n\t\tif (constructionSkillPrerequisite > 0)\n\t\t{\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"SkillRequiredToBuild\".Translate(SkillDefOf.Construction.LabelCap), constructionSkillPrerequisite.ToString(), \"SkillRequiredToBuildExplanation\".Translate(SkillDefOf.Construction.LabelCap), 1100);\n\t\t}\n\t\tif (artisticSkillPrerequisite > 0)\n\t\t{\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"SkillRequiredToBuild\".Translate(SkillDefOf.Artistic.LabelCap), artisticSkillPrerequisite.ToString(), \"SkillRequiredToBuildExplanation\".Translate(SkillDefOf.Artistic.LabelCap), 1100);\n\t\t}\n\t\tIEnumerable recipes = DefDatabase.AllDefsListForReading.Where((RecipeDef r) => r.products.Count == 1 && r.products.Any((ThingDefCountClass p) => p.thingDef == this) && !r.IsSurgery);\n\t\tif (recipes.Any())\n\t\t{\n\t\t\tIEnumerable enumerable = (from u in recipes.Where((RecipeDef x) => x.recipeUsers != null).SelectMany((RecipeDef r) => r.recipeUsers)\n\t\t\t\tselect u.label).Concat(from x in DefDatabase.AllDefsListForReading\n\t\t\t\twhere x.recipes != null && x.recipes.Any((RecipeDef y) => y.products.Any((ThingDefCountClass z) => z.thingDef == this))\n\t\t\t\tselect x.label).Distinct();\n\t\t\tif (enumerable.Any())\n\t\t\t{\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"CreatedAt\".Translate(), enumerable.ToCommaList().CapitalizeFirst(), \"Stat_Thing_CreatedAt_Desc\".Translate(), 1103);\n\t\t\t}\n\t\t\tRecipeDef recipeDef = recipes.FirstOrDefault();\n\t\t\tif (recipeDef != null && !recipeDef.ingredients.NullOrEmpty())\n\t\t\t{\n\t\t\t\tBuildableDef.tmpCostList.Clear();\n\t\t\t\tBuildableDef.tmpHyperlinks.Clear();\n\t\t\t\tfor (int j = 0; j < recipeDef.ingredients.Count; j++)\n\t\t\t\t{\n\t\t\t\t\tIngredientCount ingredientCount = recipeDef.ingredients[j];\n\t\t\t\t\tif (ingredientCount.filter.Summary.NullOrEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tIEnumerable allowedThingDefs = ingredientCount.filter.AllowedThingDefs;\n\t\t\t\t\tif (allowedThingDefs.Any())\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach (ThingDef p in allowedThingDefs)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!BuildableDef.tmpHyperlinks.Any((Dialog_InfoCard.Hyperlink x) => x.def == p))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tBuildableDef.tmpHyperlinks.Add(new Dialog_InfoCard.Hyperlink(p));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tBuildableDef.tmpCostList.Add(recipeDef.IngredientValueGetter.BillRequirementsDescription(recipeDef, ingredientCount));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (BuildableDef.tmpCostList.Any())\n\t\t\t{\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"Ingredients\".Translate(), BuildableDef.tmpCostList.ToCommaList(), \"Stat_Thing_Ingredients\".Translate(), 1102, null, BuildableDef.tmpHyperlinks);\n\t\t\t}\n\t\t}\n\t\tif (thingClass != null && typeof(Building_Bed).IsAssignableFrom(thingClass) && !statBases.StatListContains(StatDefOf.BedRestEffectiveness))\n\t\t{\n\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Building, StatDefOf.BedRestEffectiveness, StatDefOf.BedRestEffectiveness.valueIfMissing, StatRequest.ForEmpty());\n\t\t}\n\t\tif (!verbs.NullOrEmpty())\n\t\t{\n\t\t\tVerbProperties verb = verbs.First((VerbProperties x) => x.isPrimary);\n\t\t\tStatCategoryDef verbStatCategory = ((category == ThingCategory.Pawn) ? StatCategoryDefOf.PawnCombat : null);\n\t\t\tfloat num = verb.warmupTime;\n\t\t\tStringBuilder stringBuilder = new StringBuilder(\"Stat_Thing_Weapon_RangedWarmupTime_Desc\".Translate());\n\t\t\tstringBuilder.AppendLine();\n\t\t\tstringBuilder.AppendLine();\n\t\t\tstringBuilder.AppendLine(\"StatsReport_BaseValue\".Translate() + \": \" + num.ToString(\"0.##\") + \" \" + \"LetterSecond\".Translate());\n\t\t\tif (num > 0f)\n\t\t\t{\n\t\t\t\tif (req.HasThing)\n\t\t\t\t{\n\t\t\t\t\tfloat statValue = req.Thing.GetStatValue(StatDefOf.RangedWeapon_WarmupMultiplier);\n\t\t\t\t\tnum *= statValue;\n\t\t\t\t\tif (!Mathf.Approximately(statValue, 1f))\n\t\t\t\t\t{\n\t\t\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\t\t\tstringBuilder.AppendLine(\"Stat_Thing_Weapon_WarmupTime_Multiplier\".Translate() + \": x\" + statValue.ToStringPercent());\n\t\t\t\t\t\tstringBuilder.Append(StatUtility.GetOffsetsAndFactorsFor(StatDefOf.RangedWeapon_WarmupMultiplier, req.Thing));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstringBuilder.AppendLine();\n\t\t\t\tstringBuilder.AppendLine(\"StatsReport_FinalValue\".Translate() + \": \" + num.ToString(\"0.##\") + \" \" + \"LetterSecond\".Translate());\n\t\t\t\tyield return new StatDrawEntry(verbStatCategory ?? StatCategoryDefOf.Weapon_Ranged, \"RangedWarmupTime\".Translate(), num.ToString(\"0.##\") + \" \" + \"LetterSecond\".Translate(), stringBuilder.ToString(), 3555);\n\t\t\t}\n\t\t\tif (verb.defaultProjectile?.projectile.damageDef != null && verb.defaultProjectile.projectile.damageDef.harmsHealth)\n\t\t\t{\n\t\t\t\tStatCategoryDef statCat = verbStatCategory ?? StatCategoryDefOf.Weapon_Ranged;\n\t\t\t\tStringBuilder stringBuilder2 = new StringBuilder();\n\t\t\t\tstringBuilder2.AppendLine(\"Stat_Thing_Damage_Desc\".Translate());\n\t\t\t\tstringBuilder2.AppendLine();\n\t\t\t\tfloat num2 = verb.defaultProjectile.projectile.GetDamageAmount(req.Thing, stringBuilder2);\n\t\t\t\tyield return new StatDrawEntry(statCat, \"Damage\".Translate(), num2.ToString(), stringBuilder2.ToString(), 5500);\n\t\t\t\tif (verb.defaultProjectile.projectile.damageDef.armorCategory != null)\n\t\t\t\t{\n\t\t\t\t\tStringBuilder stringBuilder3 = new StringBuilder();\n\t\t\t\t\tfloat armorPenetration = verb.defaultProjectile.projectile.GetArmorPenetration(req.Thing, stringBuilder3);\n\t\t\t\t\tTaggedString taggedString = \"ArmorPenetrationExplanation\".Translate();\n\t\t\t\t\tif (stringBuilder3.Length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\ttaggedString += \"\\n\\n\" + stringBuilder3;\n\t\t\t\t\t}\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"ArmorPenetration\".Translate(), armorPenetration.ToStringPercent(), taggedString, 5400);\n\t\t\t\t}\n\t\t\t\tfloat buildingDamageFactor = verb.defaultProjectile.projectile.damageDef.buildingDamageFactor;\n\t\t\t\tfloat dmgBuildingsImpassable = verb.defaultProjectile.projectile.damageDef.buildingDamageFactorImpassable;\n\t\t\t\tfloat dmgBuildingsPassable = verb.defaultProjectile.projectile.damageDef.buildingDamageFactorPassable;\n\t\t\t\tif (buildingDamageFactor != 1f)\n\t\t\t\t{\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"BuildingDamageFactor\".Translate(), buildingDamageFactor.ToStringPercent(), \"BuildingDamageFactorExplanation\".Translate(), 5410);\n\t\t\t\t}\n\t\t\t\tif (dmgBuildingsImpassable != 1f)\n\t\t\t\t{\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"BuildingDamageFactorImpassable\".Translate(), dmgBuildingsImpassable.ToStringPercent(), \"BuildingDamageFactorImpassableExplanation\".Translate(), 5420);\n\t\t\t\t}\n\t\t\t\tif (dmgBuildingsPassable != 1f)\n\t\t\t\t{\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"BuildingDamageFactorPassable\".Translate(), dmgBuildingsPassable.ToStringPercent(), \"BuildingDamageFactorPassableExplanation\".Translate(), 5430);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (verb.defaultProjectile == null && verb.beamDamageDef != null)\n\t\t\t{\n\t\t\t\tyield return new StatDrawEntry(verbStatCategory ?? StatCategoryDefOf.Weapon_Ranged, \"ArmorPenetration\".Translate(), verb.beamDamageDef.defaultArmorPenetration.ToStringPercent(), \"ArmorPenetrationExplanation\".Translate(), 5400);\n\t\t\t}\n\t\t\tif (verb.Ranged)\n\t\t\t{\n\t\t\t\tfloat num3 = verb.burstShotCount;\n\t\t\t\tfloat num4 = verb.ticksBetweenBurstShots;\n\t\t\t\tfloat dmgBuildingsPassable = (verb?.defaultProjectile?.projectile?.stoppingPower).GetValueOrDefault();\n\t\t\t\tStringBuilder stringBuilder4 = new StringBuilder(\"Stat_Thing_Weapon_BurstShotFireRate_Desc\".Translate());\n\t\t\t\tstringBuilder4.AppendLine();\n\t\t\t\tstringBuilder4.AppendLine();\n\t\t\t\tstringBuilder4.AppendLine(\"StatsReport_BaseValue\".Translate() + \": \" + verb.burstShotCount.ToString());\n\t\t\t\tstringBuilder4.AppendLine();\n\t\t\t\tStringBuilder ticksBetweenBurstShotsExplanation = new StringBuilder(\"Stat_Thing_Weapon_BurstShotFireRate_Desc\".Translate());\n\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine();\n\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine();\n\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine(\"StatsReport_BaseValue\".Translate() + \": \" + (60f / verb.ticksBetweenBurstShots.TicksToSeconds()).ToString(\"0.##\") + \" rpm\");\n\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine();\n\t\t\t\tStringBuilder stoppingPowerExplanation = new StringBuilder(\"StoppingPowerExplanation\".Translate());\n\t\t\t\tstoppingPowerExplanation.AppendLine();\n\t\t\t\tstoppingPowerExplanation.AppendLine();\n\t\t\t\tstoppingPowerExplanation.AppendLine(\"StatsReport_BaseValue\".Translate() + \": \" + dmgBuildingsPassable.ToString(\"F1\"));\n\t\t\t\tstoppingPowerExplanation.AppendLine();\n\t\t\t\tif (req.HasThing && req.Thing.TryGetComp(out CompUniqueWeapon comp))\n\t\t\t\t{\n\t\t\t\t\tbool flag = false;\n\t\t\t\t\tbool flag2 = false;\n\t\t\t\t\tbool flag3 = false;\n\t\t\t\t\tforeach (WeaponTraitDef item2 in comp.TraitsListForReading)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!Mathf.Approximately(item2.burstShotCountMultiplier, 1f))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!flag)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstringBuilder4.AppendLine(\"StatsReport_WeaponTraits\".Translate() + \":\");\n\t\t\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnum3 *= item2.burstShotCountMultiplier;\n\t\t\t\t\t\t\tstringBuilder4.AppendLine(\" \" + item2.LabelCap + \": \" + item2.burstShotCountMultiplier.ToStringByStyle(ToStringStyle.PercentOne, ToStringNumberSense.Factor));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!Mathf.Approximately(item2.burstShotSpeedMultiplier, 1f))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!flag2)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine(\"StatsReport_WeaponTraits\".Translate() + \":\");\n\t\t\t\t\t\t\t\tflag2 = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnum4 /= item2.burstShotSpeedMultiplier;\n\t\t\t\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine(\" \" + item2.LabelCap + \": \" + item2.burstShotSpeedMultiplier.ToStringByStyle(ToStringStyle.PercentOne, ToStringNumberSense.Factor));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!Mathf.Approximately(item2.additionalStoppingPower, 0f))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!flag3)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstoppingPowerExplanation.AppendLine(\"StatsReport_WeaponTraits\".Translate() + \":\");\n\t\t\t\t\t\t\t\tflag3 = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdmgBuildingsPassable += item2.additionalStoppingPower;\n\t\t\t\t\t\t\tstoppingPowerExplanation.AppendLine(\" \" + item2.LabelCap + \": \" + item2.additionalStoppingPower.ToStringByStyle(ToStringStyle.FloatOne, ToStringNumberSense.Offset));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstringBuilder4.AppendLine();\n\t\t\t\tstringBuilder4.AppendLine(\"StatsReport_FinalValue\".Translate() + \": \" + Mathf.CeilToInt(num3).ToString());\n\t\t\t\tfloat dmgBuildingsImpassable = 60f / ((int)num4).TicksToSeconds();\n\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine();\n\t\t\t\tticksBetweenBurstShotsExplanation.AppendLine(\"StatsReport_FinalValue\".Translate() + \": \" + dmgBuildingsImpassable.ToString(\"0.##\") + \" rpm\");\n\t\t\t\tstoppingPowerExplanation.AppendLine();\n\t\t\t\tstoppingPowerExplanation.AppendLine(\"StatsReport_FinalValue\".Translate() + \": \" + dmgBuildingsPassable.ToString(\"F1\"));\n\t\t\t\tStatCategoryDef statCat = verbStatCategory ?? StatCategoryDefOf.Weapon_Ranged;\n\t\t\t\tif (verb.showBurstShotStats && verb.burstShotCount > 1)\n\t\t\t\t{\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"BurstShotCount\".Translate(), Mathf.CeilToInt(num3).ToString(), stringBuilder4.ToString(), 5391);\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"BurstShotFireRate\".Translate(), dmgBuildingsImpassable.ToString(\"0.##\") + \" rpm\", ticksBetweenBurstShotsExplanation.ToString(), 5395);\n\t\t\t\t}\n\t\t\t\tif (dmgBuildingsPassable > 0f)\n\t\t\t\t{\n\t\t\t\t\tyield return new StatDrawEntry(statCat, \"StoppingPower\".Translate(), dmgBuildingsPassable.ToString(\"F1\"), stoppingPowerExplanation.ToString(), 5402);\n\t\t\t\t}\n\t\t\t\tfloat num5 = verb.range;\n\t\t\t\tStringBuilder stringBuilder5 = new StringBuilder(\"Stat_Thing_Weapon_Range_Desc\".Translate());\n\t\t\t\tstringBuilder5.AppendLine();\n\t\t\t\tstringBuilder5.AppendLine();\n\t\t\t\tstringBuilder5.AppendLine(\"StatsReport_BaseValue\".Translate() + \": \" + num5.ToString(\"F0\"));\n\t\t\t\tif (req.HasThing)\n\t\t\t\t{\n\t\t\t\t\tfloat statValue2 = req.Thing.GetStatValue(StatDefOf.RangedWeapon_RangeMultiplier);\n\t\t\t\t\tnum5 *= statValue2;\n\t\t\t\t\tif (!Mathf.Approximately(statValue2, 1f))\n\t\t\t\t\t{\n\t\t\t\t\t\tstringBuilder5.AppendLine();\n\t\t\t\t\t\tstringBuilder5.AppendLine(\"Stat_Thing_Weapon_Range_Multiplier\".Translate() + \": x\" + statValue2.ToStringPercent());\n\t\t\t\t\t\tstringBuilder5.Append(StatUtility.GetOffsetsAndFactorsFor(StatDefOf.RangedWeapon_RangeMultiplier, req.Thing));\n\t\t\t\t\t}\n\t\t\t\t\tMap obj = req.Thing.Map ?? req.Thing.MapHeld;\n\t\t\t\t\tif (obj != null && obj.weatherManager.CurWeatherMaxRangeCap >= 0f)\n\t\t\t\t\t{\n\t\t\t\t\t\tWeatherManager weatherManager = (req.Thing.Map ?? req.Thing.MapHeld).weatherManager;\n\t\t\t\t\t\tbool num6 = num5 > weatherManager.CurWeatherMaxRangeCap;\n\t\t\t\t\t\tfloat num7 = num5;\n\t\t\t\t\t\tnum5 = Mathf.Min(num5, weatherManager.CurWeatherMaxRangeCap);\n\t\t\t\t\t\tif (num6)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstringBuilder5.AppendLine();\n\t\t\t\t\t\t\tstringBuilder5.AppendLine(\" \" + \"Stat_Thing_Weapon_Range_Clamped\".Translate(num5.ToString(\"F0\").Named(\"CAP\"), num7.ToString(\"F0\").Named(\"ORIGINAL\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstringBuilder5.AppendLine();\n\t\t\t\tstringBuilder5.AppendLine(\"StatsReport_FinalValue\".Translate() + \": \" + num5.ToString(\"F0\"));\n\t\t\t\tyield return new StatDrawEntry(statCat, \"Range\".Translate(), num5.ToString(\"F0\"), stringBuilder5.ToString(), 5390);\n\t\t\t}\n\t\t\tif (verb.ForcedMissRadius > 0f)\n\t\t\t{\n\t\t\t\tStatCategoryDef statCat = verbStatCategory ?? StatCategoryDefOf.Weapon_Ranged;\n\t\t\t\tyield return new StatDrawEntry(statCat, \"MissRadius\".Translate(), verb.ForcedMissRadius.ToString(\"0.#\"), \"Stat_Thing_Weapon_MissRadius_Desc\".Translate(), 3557);\n\t\t\t\tyield return new StatDrawEntry(statCat, \"DirectHitChance\".Translate(), (1f / (float)GenRadial.NumCellsInRadius(verb.ForcedMissRadius)).ToStringPercent(), \"Stat_Thing_Weapon_DirectHitChance_Desc\".Translate(), 3560);\n\t\t\t}\n\t\t}\n\t\tif (plant != null)\n\t\t{\n\t\t\tforeach (StatDrawEntry item3 in plant.SpecialDisplayStats())\n\t\t\t{\n\t\t\t\tyield return item3;\n\t\t\t}\n\t\t}\n\t\tif (ingestible != null)\n\t\t{\n\t\t\tforeach (StatDrawEntry item4 in ingestible.SpecialDisplayStats())\n\t\t\t{\n\t\t\t\tyield return item4;\n\t\t\t}\n\t\t}\n\t\tif (race != null)\n\t\t{\n\t\t\tforeach (StatDrawEntry item5 in race.SpecialDisplayStats(this, req))\n\t\t\t{\n\t\t\t\tyield return item5;\n\t\t\t}\n\t\t}\n\t\tif (building != null)\n\t\t{\n\t\t\tforeach (StatDrawEntry item6 in building.SpecialDisplayStats(this, req))\n\t\t\t{\n\t\t\t\tyield return item6;\n\t\t\t}\n\t\t}\n\t\tif (isTechHediff)\n\t\t{\n\t\t\tIEnumerable enumerable2 = DefDatabase.AllDefs.Where((RecipeDef x) => x.addsHediff != null && x.IsIngredient(this));\n\t\t\tforeach (StatDrawEntry medicalStatsFromRecipeDef in MedicalRecipesUtility.GetMedicalStatsFromRecipeDefs(enumerable2))\n\t\t\t{\n\t\t\t\tyield return medicalStatsFromRecipeDef;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < comps.Count; i++)\n\t\t{\n\t\t\tforeach (StatDrawEntry item7 in comps[i].SpecialDisplayStats(req))\n\t\t\t{\n\t\t\t\tyield return item7;\n\t\t\t}\n\t\t}\n\t\tif (building != null)\n\t\t{\n\t\t\tif (building.mineableThing != null)\n\t\t\t{\n\t\t\t\tDialog_InfoCard.Hyperlink[] hyperlinks = new Dialog_InfoCard.Hyperlink[1]\n\t\t\t\t{\n\t\t\t\t\tnew Dialog_InfoCard.Hyperlink(building.mineableThing)\n\t\t\t\t};\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.BasicsImportant, \"Stat_MineableThing_Name\".Translate(), building.mineableThing.LabelCap, \"Stat_MineableThing_Desc\".Translate(), 2200, null, hyperlinks);\n\t\t\t\tStringBuilder stringBuilder6 = new StringBuilder();\n\t\t\t\tstringBuilder6.AppendLine(\"Stat_MiningYield_Desc\".Translate());\n\t\t\t\tstringBuilder6.AppendLine();\n\t\t\t\tstringBuilder6.AppendLine(\"StatsReport_DifficultyMultiplier\".Translate(Find.Storyteller.difficultyDef.label) + \": \" + Find.Storyteller.difficulty.mineYieldFactor.ToStringByStyle(ToStringStyle.PercentZero, ToStringNumberSense.Factor));\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Basics, \"Stat_MiningYield_Name\".Translate(), Mathf.CeilToInt(building.EffectiveMineableYield).ToString(\"F0\"), stringBuilder6.ToString(), 2200, null, hyperlinks);\n\t\t\t}\n\t\t\tif (building.IsTurret)\n\t\t\t{\n\t\t\t\tThingDef turret = building.turretGunDef;\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.BasicsImportant, \"Stat_Weapon_Name\".Translate(), turret.LabelCap, \"Stat_Weapon_Desc\".Translate(), 5389, null, new Dialog_InfoCard.Hyperlink[1]\n\t\t\t\t{\n\t\t\t\t\tnew Dialog_InfoCard.Hyperlink(turret)\n\t\t\t\t});\n\t\t\t\tStatRequest request = StatRequest.For(turret, null);\n\t\t\t\tforeach (StatDrawEntry item8 in turret.SpecialDisplayStats(request))\n\t\t\t\t{\n\t\t\t\t\tif (item8.category == StatCategoryDefOf.Weapon_Ranged)\n\t\t\t\t\t{\n\t\t\t\t\t\tyield return item8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < turret.statBases.Count; i++)\n\t\t\t\t{\n\t\t\t\t\tStatModifier statModifier = turret.statBases[i];\n\t\t\t\t\tif (statModifier.stat.category == StatCategoryDefOf.Weapon_Ranged)\n\t\t\t\t\t{\n\t\t\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Weapon_Ranged, statModifier.stat, statModifier.value, request);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ModsConfig.OdysseyActive && Fillage == FillCategory.Full)\n\t\t\t{\n\t\t\t\tbool b = building.isAirtight || (building.isStuffableAirtight && req.StuffDef.stuffProps.isAirtight);\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.Building, \"Stat_Airtight\".Translate(), b.ToStringYesNo(), \"Stat_Airtight_Desc\".Translate(), 6100);\n\t\t\t}\n\t\t}\n\t\tif (IsMeat)\n\t\t{\n\t\t\tList list = new List();\n\t\t\tbool flag4 = false;\n\t\t\tforeach (ThingDef allDef in DefDatabase.AllDefs)\n\t\t\t{\n\t\t\t\tif (allDef.race != null && allDef.race.meatDef == this && !allDef.IsCorpse)\n\t\t\t\t{\n\t\t\t\t\tif (!Find.HiddenItemsManager.Hidden(allDef))\n\t\t\t\t\t{\n\t\t\t\t\t\tflag4 = true;\n\t\t\t\t\t}\n\t\t\t\t\tlist.Add(allDef);\n\t\t\t\t}\n\t\t\t}\n\t\t\tyield return new StatDrawEntry(valueString: (!flag4) ? string.Format(\"({0})\", \"NotYetDiscovered\".Translate()) : string.Join(\", \", (from x in list\n\t\t\t\twhere !Find.HiddenItemsManager.Hidden(x)\n\t\t\t\tselect x into p\n\t\t\t\tselect p.label).ToArray()).CapitalizeFirst(), category: StatCategoryDefOf.BasicsPawn, label: \"Stat_SourceSpecies_Name\".Translate(), reportText: \"Stat_SourceSpecies_Desc\".Translate(), displayPriorityWithinCategory: 1200, overrideReportTitle: null, hyperlinks: Dialog_InfoCard.DefsToHyperlinks(list));\n\t\t}\n\t\tif (IsLeather)\n\t\t{\n\t\t\tList list2 = new List();\n\t\t\tbool flag5 = false;\n\t\t\tforeach (ThingDef allDef2 in DefDatabase.AllDefs)\n\t\t\t{\n\t\t\t\tif (allDef2.race != null && allDef2.race.leatherDef == this && !allDef2.IsCorpse)\n\t\t\t\t{\n\t\t\t\t\tif (!Find.HiddenItemsManager.Hidden(allDef2))\n\t\t\t\t\t{\n\t\t\t\t\t\tflag5 = true;\n\t\t\t\t\t}\n\t\t\t\t\tlist2.Add(allDef2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tyield return new StatDrawEntry(valueString: (!flag5) ? string.Format(\"({0})\", \"NotYetDiscovered\".Translate()) : string.Join(\", \", (from x in list2\n\t\t\t\twhere !Find.HiddenItemsManager.Hidden(x)\n\t\t\t\tselect x into p\n\t\t\t\tselect p.label).ToArray()).CapitalizeFirst(), category: StatCategoryDefOf.BasicsPawn, label: \"Stat_SourceSpecies_Name\".Translate(), reportText: \"Stat_SourceSpecies_Desc\".Translate(), displayPriorityWithinCategory: 1200, overrideReportTitle: null, hyperlinks: Dialog_InfoCard.DefsToHyperlinks(list2));\n\t\t}\n\t\tif (!equippedStatOffsets.NullOrEmpty())\n\t\t{\n\t\t\tfor (int i = 0; i < equippedStatOffsets.Count; i++)\n\t\t\t{\n\t\t\t\tStatDef stat = equippedStatOffsets[i].stat;\n\t\t\t\tfloat num8 = equippedStatOffsets[i].value;\n\t\t\t\tStringBuilder stringBuilder7 = new StringBuilder(stat.description);\n\t\t\t\tif (req.HasThing && stat.Worker != null)\n\t\t\t\t{\n\t\t\t\t\tstringBuilder7.AppendLine();\n\t\t\t\t\tstringBuilder7.AppendLine();\n\t\t\t\t\tstringBuilder7.AppendLine(\"StatsReport_BaseValue\".Translate() + \": \" + stat.ValueToString(num8, ToStringNumberSense.Offset, stat.finalizeEquippedStatOffset));\n\t\t\t\t\tnum8 = StatWorker.StatOffsetFromGear(req.Thing, stat);\n\t\t\t\t\tif (!stat.parts.NullOrEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tstringBuilder7.AppendLine();\n\t\t\t\t\t\tfor (int k = 0; k < stat.parts.Count; k++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstring text = stat.parts[k].ExplanationPart(req);\n\t\t\t\t\t\t\tif (!text.NullOrEmpty())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstringBuilder7.AppendLine(text);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tstringBuilder7.AppendLine();\n\t\t\t\t\tstringBuilder7.AppendLine(\"StatsReport_FinalValue\".Translate() + \": \" + stat.ValueToString(num8, ToStringNumberSense.Offset, !stat.formatString.NullOrEmpty()));\n\t\t\t\t}\n\t\t\t\tyield return new StatDrawEntry(StatCategoryDefOf.EquippedStatOffsets, equippedStatOffsets[i].stat, num8, StatRequest.ForEmpty(), ToStringNumberSense.Offset, null, forceUnfinalizedMode: true).SetReportText(stringBuilder7.ToString());\n\t\t\t}\n\t\t}\n\t\tif (!IsDrug)\n\t\t{\n\t\t\tyield break;\n\t\t}\n\t\tforeach (StatDrawEntry item9 in DrugStatsUtility.SpecialDisplayStats(this))\n\t\t{\n\t\t\tyield return item9;\n\t\t}\n\t}\n}\n\n", "timestamp": "2025-08-22 16:02:42,858" }, "Verb": { "keywords": [ "Verb" ], "question": "RimWorld Verb class", "embedding": [ 0.012549128383398056, 0.016916820779442787, 0.039827682077884674, -0.02038256824016571, -0.001290777581743896, -0.029686110094189644, 0.012442599050700665, 0.04221393167972565, -0.019828617572784424, 0.13590273261070251, 0.002286824630573392, -0.06681505590677261, -0.029203178361058235, 0.007662993390113115, 0.07187163084745407, 0.024743160232901573, 0.03704372048377991, -0.07857586443424225, 0.0009427825571037829, 0.012641453184187412, -0.019530335441231728, 0.045026302337646484, 0.0015970488311722875, 0.046048980206251144, -0.03443020582199097, -0.0618152879178524, 0.016604335978627205, -0.025538576766848564, 0.005994037259370089, 2.4773564291535877e-05, -0.060849424451589584, 0.04832160100340843, 0.0074996487237513065, -0.023819906637072563, -0.021731937304139137, 0.036731235682964325, -0.03573696315288544, 0.006693578790873289, -0.035708554089069366, -0.023422198370099068, -0.014601589180529118, 0.010944089852273464, -0.004520385060459375, -0.047128476202487946, -0.03193032369017601, 0.03687327355146408, 0.01205909438431263, -0.06715594232082367, -0.02813788689672947, 0.02934521622955799, -0.010603196918964386, -0.008380289189517498, -0.06130394712090492, -0.017058860510587692, -0.023152325302362442, 0.025879470631480217, -0.004435161594301462, 0.05613373592495918, -0.04545241594314575, -0.0027413489297032356, 0.02025473304092884, -0.01712987944483757, -0.009374560788273811, -0.030169041827321053, -0.021490471437573433, -0.012911327183246613, 0.024643732234835625, 0.06380382925271988, -0.0018944424809888005, -0.07289431244134903, -0.0180815402418375, 0.03664601221680641, 0.027072595432400703, 0.008302167989313602, -0.012904224917292595, 0.03650397062301636, -0.03156102076172829, 0.022910859435796738, -0.05780979245901108, 0.04354909807443619, 0.010837560519576073, -0.043463874608278275, 0.006473418325185776, -0.004420957528054714, 0.022356906905770302, 0.056957561522722244, 0.03397568315267563, -0.019445111975073814, 0.009466886520385742, 0.10488145053386688, -0.031191721558570862, -0.0038101908285170794, 0.03576537221670151, -0.041106030344963074, 0.0009223644738085568, 0.0022530904971063137, -0.05863361805677414, -0.0010990252485498786, 0.0008038508240133524, -0.023166527971625328, 0.04315138980746269, -0.09329108893871307, -0.05834953859448433, 0.059258587658405304, -0.014353021048009396, 0.014587384648621082, -0.02749871276319027, -0.011533550918102264, -0.0008256005239672959, 0.0008424676489084959, 0.03582218661904335, -0.03190191462635994, -0.035935815423727036, 0.047355737537145615, 0.0354812927544117, 0.02514086849987507, -0.013657030649483204, 0.019516130909323692, -0.00015357945812866092, -0.014999297447502613, 0.04070832207798958, 0.0036131120286881924, -0.04150373861193657, -0.036702826619148254, 0.019516130909323692, -0.048122745007276535, 0.013323239982128143, 0.026206159964203835, 0.03133375942707062, 0.011668487451970577, -0.00816723145544529, 0.00759197399020195, 0.034685876220464706, -0.0006884442991577089, -0.019544539973139763, 0.03923111781477928, -0.035964224487543106, 0.003160363296046853, -0.05144645273685455, -0.017939500510692596, -0.018394025042653084, 0.013884292915463448, 0.024601120501756668, 0.019800208508968353, 0.022981878370046616, -0.010375934652984142, -0.06363338232040405, 0.033890459686517715, 0.019090015441179276, 0.01840822957456112, -0.0374414287507534, -0.02038256824016571, -0.012066196650266647, 0.0507078543305397, -0.002214029897004366, -0.028350945562124252, 0.015098724514245987, 0.008465512655675411, 0.03244166076183319, -0.008018090389668941, -0.022016014903783798, 0.037725504487752914, -0.01531178317964077, -0.01904740370810032, 0.005994037259370089, -0.047071658074855804, -0.010042143054306507, 0.03886181488633156, -0.025368129834532738, -0.05897451192140579, 0.0066509670577943325, 0.02552437223494053, -0.006974105257540941, -0.01649070531129837, 0.03269733116030693, -0.008330576121807098, -0.03374841809272766, 0.03403249755501747, 0.08760953694581985, 0.01057478878647089, 0.012016482651233673, 0.004499079193919897, 0.03326548635959625, 0.03579377755522728, 0.005397474393248558, -0.03934474661946297, 0.013642827048897743, 0.023720480501651764, 0.006672272924333811, 0.034344982355833054, -0.008046498522162437, 0.08613233268260956, -0.030027002096176147, 0.014828851446509361, -0.023677868768572807, -0.02271200530230999, -0.04352068901062012, 0.047867078334093094, -0.023677868768572807, -0.015468025580048561, -0.039060670882463455, -0.029629293829202652, -0.04729892313480377, -0.017499180510640144, 0.014942482113838196, 0.014196778647601604, -0.041674185544252396, -0.032043952494859695, 0.03482791408896446, -0.005156008526682854, 0.03707212582230568, -0.0037640281952917576, -0.03894703835248947, -0.015070317313075066, 0.03479950502514839, 0.017499180510640144, 0.018734918907284737, 0.006146728992462158, 0.015354394912719727, -0.0023986801970750093, -0.05758253112435341, 0.012108808383345604, -0.00415463512763381, 0.04744096100330353, 0.02580844983458519, 0.01712987944483757, 0.003478175261989236, -0.00925382785499096, -0.01025520171970129, 0.02391933463513851, -0.006189340725541115, 0.014139962382614613, -0.05610532686114311, -0.026745906099677086, 0.047923892736434937, -0.03996971994638443, -0.04434451460838318, -0.012627249583601952, -0.025155071169137955, 0.04724210500717163, -0.02207282930612564, 0.03758346661925316, -0.007670095190405846, 0.02988496422767639, 0.003057385329157114, -0.007151653524488211, -0.014530569314956665, 0.0024732507299631834, 0.029771333560347557, -0.026262974366545677, 0.005855549592524767, -0.03735620528459549, -0.022129645571112633, -0.002796388929709792, -0.01007765345275402, 0.03965723514556885, -0.024956217035651207, -0.006498275324702263, -0.020524606108665466, 0.00700251292437315, -0.042696863412857056, 0.011846035718917847, 0.014615792781114578, 0.022527353838086128, -0.030936051160097122, 0.021220596507191658, -0.006427255924791098, -0.022087033838033676, -0.009367459453642368, 0.02734247036278248, -0.014239390380680561, 0.06522421538829803, 0.04042424261569977, -0.04121965914964676, -0.026007303968071938, -0.0199990626424551, 0.005535962525755167, -0.02373468317091465, -0.013053365983068943, 0.010276507586240768, 0.006398848257958889, 0.01738554984331131, -0.018891161307692528, -0.022229071706533432, 0.016675354912877083, 0.012641453184187412, 0.02734247036278248, 0.012627249583601952, 0.016888413578271866, 0.026518644765019417, -0.005404576659202576, -0.011512245051562786, 0.01585153117775917, 0.03820843622088432, -0.024515897035598755, 0.0015659778146073222, -0.004523935727775097, 0.05891769379377365, -0.04437292367219925, 0.01311018131673336, 0.045821718871593475, -0.002782185096293688, -0.024544304236769676, 0.007662993390113115, 0.03326548635959625, -0.014161268249154091, -0.004570098593831062, -0.055622395128011703, 0.006675823591649532, -0.06198573485016823, -0.016220830380916595, -0.026589663699269295, 0.05445767566561699, -0.020169509574770927, -0.03553810715675354, 0.02714361436665058, -0.04246960207819939, -0.009324847720563412, 0.002819470129907131, 0.052298687398433685, -0.06119031459093094, -0.018550267443060875, -0.047355737537145615, 0.0032011994626373053, 0.016348665580153465, -0.00980777945369482, 0.021902384236454964, -0.03863455355167389, 0.007020267657935619, 0.022513151168823242, -0.029913371428847313, 0.0020844193641096354, 0.03210077062249184, 0.060565344989299774, 0.01651911251246929, 0.022527353838086128, 0.011185555718839169, -0.0004367693327367306, 0.016448093578219414, -0.027981644496321678, -0.0365607887506485, -0.05519627779722214, -0.047128476202487946, -0.04178781434893608, 0.07130347937345505, -0.0137351518496871, 0.03008381836116314, 0.017683830112218857, 0.04067991301417351, 0.001658302964642644, 0.0023454157635569572, 0.018962180241942406, -0.009516599588096142, -0.003746273461729288, -0.00037817831616848707, 0.020297344774007797, 0.015837326645851135, 0.03110649809241295, -0.048179563134908676, 0.008728284388780594, 0.0031745671294629574, 0.015254967845976353, -0.0016236810479313135, 0.04229915514588356, 0.007691401056945324, -0.004935848526656628, -0.04261163994669914, 0.04229915514588356, -0.02816629409790039, 0.018763326108455658, 0.010915681719779968, -0.06414472311735153, 0.021490471437573433, 0.02414659596979618, -0.03471428155899048, 0.035964224487543106, 0.0068107605911791325, -0.01958715170621872, -0.01401922944933176, 0.02140524797141552, 0.09812040627002716, -0.01843663677573204, 0.02178875170648098, -0.020041674375534058, 0.015368598513305187, 0.024672139436006546, 0.08016669750213623, 0.002002747030928731, 0.05235550180077553, -0.028748653829097748, 0.05246913433074951, -0.013635724782943726, -0.014253593981266022, -0.006693578790873289, 0.029430439695715904, 0.02156149037182331, -0.020553015172481537, 0.023677868768572807, 0.0014088473981246352, -0.014203879982233047, -0.023720480501651764, 0.007840542122721672, -0.07522375136613846, -0.022285887971520424, -0.007691401056945324, -0.0071694087237119675, 0.0045807515271008015, -0.02391933463513851, -0.020979130640625954, 0.009417172521352768, -0.06817862391471863, 0.029742924496531487, 0.03110649809241295, -0.003096445929259062, -0.020425179973244667, -0.012314763851463795, 0.032782554626464844, -0.010070551186800003, 0.03210077062249184, 0.006462765391916037, -0.014139962382614613, 0.06596282124519348, -0.0071694087237119675, -0.00925382785499096, -0.02721463516354561, 0.004009045194834471, 0.00993561465293169, 0.024799974635243416, 0.03664601221680641, 0.03874818608164787, -0.040339019149541855, -0.04170259088277817, -0.03039630316197872, 0.0572984516620636, 0.030424712225794792, -0.03496995195746422, -0.014644200913608074, 0.031191721558570862, -0.01613560877740383, 0.0011585039319470525, -0.02829412929713726, -0.0273708775639534, 0.004477773327380419, 0.01943090744316578, -0.049202241003513336, -0.008373187854886055, 0.024459082633256912, -0.025226091966032982, 0.013323239982128143, -0.008259556256234646, -0.008380289189517498, 0.004513282794505358, 0.03769709914922714, 0.017840074375271797, -0.017442364245653152, 0.027967439964413643, 0.0044422633945941925, 0.0013431544648483396, -0.023138120770454407, 0.000963200640399009, 0.03329389542341232, -0.018649695441126823, -0.03403249755501747, 0.04181622341275215, 0.019757596775889397, 0.008060702122747898, -0.01030491478741169, -0.006846270523965359, 0.019090015441179276, -0.05786660686135292, -0.005106294993311167, 0.05545194819569588, -0.04096399247646332, -0.011249473318457603, 0.017328733578324318, -0.06619007885456085, -0.004783156793564558, 0.066246896982193, 0.02660386823117733, 0.02350742183625698, -0.017328733578324318, 0.03843570128083229, -0.022016014903783798, -0.01789688877761364, -0.09783633053302765, -0.08124619722366333, -0.03582218661904335, 0.02785380929708481, 0.039287932217121124, -0.04593534767627716, 0.005425882060080767, -0.008351881988346577, -0.022285887971520424, 0.03352115675806999, -0.0053193531930446625, 0.017598608508706093, 0.012321866117417812, 0.022030217573046684, -0.00882060918956995, -0.03604944795370102, -0.027981644496321678, 0.04261163994669914, -0.04923065006732941, -0.010780745185911655, -0.014502162113785744, -0.008351881988346577, -0.005596328992396593, 0.00016467623936478049, -0.06687186658382416, -0.0027715321630239487, 0.008231149055063725, -0.013301934115588665, 0.048747718334198, -0.021547285839915276, -0.02896171249449253, 0.0035332152619957924, -0.012584637850522995, -0.022087033838033676, 0.027868013828992844, 0.03556651622056961, 0.019018996506929398, -0.01207329798489809, 0.04306616634130478, 0.00848681852221489, -0.008089110255241394, 0.005571471992880106, 0.028308333829045296, -0.0037817831616848707, 0.02389092743396759, -0.02245633490383625, -0.061417579650878906, -0.006647415924817324, 0.056417811661958694, 0.00835898332297802, 0.042412787675857544, 0.0014399184146896005, 0.008792201988399029, 0.017627015709877014, -0.002150112297385931, 0.09834766387939453, 0.028975915163755417, 0.03198713809251785, 0.01846504397690296, 0.02012689784169197, 0.05633258819580078, 0.06346293538808823, 0.03522562235593796, -0.026390809565782547, 0.018337208777666092, -0.0632924884557724, 0.017967907711863518, 0.04158896207809448, -0.016916820779442787, -0.03707212582230568, -0.001284563448280096, 0.008344779722392559, -0.03113490529358387, 0.051474861800670624, -0.008905832655727863, 0.009417172521352768, 0.009495293721556664, 0.01532598678022623, 0.024956217035651207, -0.020837092772126198, -0.01825198531150818, -0.0038243946619331837, -0.0034692976623773575, 0.0071552046574652195, -0.0011727078817784786, -0.0008420237572863698, 0.029970187693834305, -0.004864829126745462, -0.04289571940898895, -0.035964224487543106, 0.03889022395014763, -0.015411210246384144, 0.025084052234888077, 0.040395837277173996, 0.006246156524866819, -5.6815522839315236e-05, -0.011377308517694473, -2.5328403353341855e-05, -0.004101370461285114, 0.015496433712542057, -0.013479482382535934, 0.02232849970459938, -0.006895984057337046, -0.013117283582687378, 0.07590553909540176, 0.03218599408864975, 0.027427691966295242, 0.006171585991978645, -0.053577035665512085, -0.017016248777508736, -0.043691135942935944, 0.03661760315299034, 0.007961275056004524, 0.004236307460814714, 0.0669286847114563, 0.03340752795338631, -0.0023294363636523485, -0.07278068363666534, -0.03318026289343834, -0.002489230129867792, 0.052497539669275284, -0.011441225185990334, 0.0072794887237250805, 0.034373391419649124, 0.0034000538289546967, 0.0013396034482866526, -0.017172491177916527, 0.07658731937408447, 0.039060670882463455, -0.0006959901074878871, 0.039799273014068604, -0.05610532686114311, -0.016391277313232422, 0.028052663430571556, 0.0028301230631768703, -0.046844396740198135, -0.06198573485016823, -0.007201367523521185, 0.012911327183246613, -0.03766869008541107, -0.046560321003198624, -0.012897123582661152, -0.025467557832598686, -0.00048115645768120885, -0.07249660789966583, -0.043435465544462204, 0.014871462248265743, 0.017428161576390266, -0.02153308317065239, 0.03195872902870178, 0.057752978056669235, -0.012009380385279655, -0.002327660797163844, 0.019146829843521118, -0.06920130550861359, 0.01751338504254818, -0.0027342468965798616, 0.02826572209596634, -0.004392549861222506, 0.0017310979310423136, -0.0030786909628659487, -0.04468540847301483, -0.005763224326074123, -0.050736259669065475, 0.002107500797137618, -0.005908814258873463, -0.016888413578271866, 0.0029384277295321226, 0.025126663967967033, 0.003043181262910366, -0.025155071169137955, 0.021320024505257607, -0.0010928109986707568, 0.005500452592968941, -0.007187163457274437, -0.023649461567401886, 0.003432012628763914, -0.06817862391471863, -0.037782322615385056, 0.029458846896886826, 0.0071552046574652195, 0.05394633859395981, 0.013443972915410995, 0.003220729762688279, -0.0035847043618559837, 0.005638940259814262, -0.05604851245880127, -0.047895483672618866, 0.012691167183220387, -0.013294831849634647, 0.02535392716526985, 0.035140398889780045, -0.010134468786418438, -0.04391839727759361, 0.013408462516963482, -0.003735620528459549, -0.024189207702875137, 0.01569528691470623, -0.042725272476673126, -0.0329245962202549, -0.003739171428605914, 0.016391277313232422, -0.006274564191699028, 0.010106060653924942, -0.044486552476882935, 0.007329202257096767, 0.0365607887506485, -0.08130300790071487, 0.0169026181101799, 0.04360591247677803, -0.014388530515134335, -0.015567452646791935, -0.05869043245911598, -0.027285654097795486, 0.04437292367219925, 0.02634819783270359, -0.015155539847910404, -0.03170306235551834, -0.08783679455518723, 0.001508274581283331, 0.0035900308284908533, 0.0005526196910068393, 0.006036648992449045, -0.03795276954770088, 0.006370440125465393, -0.04136170074343681, -0.022356906905770302, 0.04121965914964676, 0.009516599588096142, -0.010823356918990612, -0.008706978522241116, 0.011142943985760212, 0.008550736121833324, 0.002150112297385931, -0.05065103620290756, 0.007854745723307133, -0.04099239781498909, 0.006544437725096941, -0.03792436048388481, -0.015397006645798683, -0.053065694868564606, 0.014395632781088352, -0.010148672387003899, 0.01071682758629322, -0.030424712225794792, 0.03394727408885956, -0.043435465544462204, -0.04752618446946144, 0.011270779184997082, -0.03158942982554436, 0.018323006108403206, -0.00024768017465248704, -0.0061822389252483845, -0.007854745723307133, 0.03525403141975403, -0.007183612324297428, -0.019516130909323692, -0.00853653158992529, -0.01997065544128418, -0.07141710817813873, 0.08942762762308121, 0.007847643457353115, -0.002357844030484557, -0.006615457125008106, 0.05295206606388092, 0.016419686377048492, -0.010084754787385464, 0.013720948249101639, 0.03960041701793671, -0.030481526628136635, -0.04420247673988342, 0.05502583086490631, -0.003835047595202923, 0.014218084514141083, 0.017627015709877014, 0.018351413309574127, -0.06312204152345657, 0.007148102857172489, 0.027285654097795486, 0.007471241056919098, -0.010645808652043343, 0.03377682715654373, -0.007670095190405846, -0.018422432243824005, -0.052043016999959946, 0.0011425246484577656, -0.022697800770401955, 0.004584302194416523, -0.03718575835227966, 0.0485488623380661, 0.04158896207809448, -0.014345918782055378, -0.0021110516972839832, -0.008103313855826855, -0.024444878101348877, -0.006317175924777985, 0.014956685714423656, -0.01840822957456112, 0.023592645302414894, -0.00686757592484355, 0.01815255917608738, 0.032299622893333435, -0.04479903727769852, 0.022882450371980667, -0.011100332252681255, -0.019786005839705467, 0.002501658396795392, 0.031191721558570862, 0.040566280484199524, 0.006619008257985115, 0.015084520913660526, -0.008877425454556942, 0.017271919175982475, 0.022953471168875694, 0.029458846896886826, 0.0350835844874382, -0.005986935459077358, -0.07721229642629623, -0.07959854602813721, -0.022513151168823242, 0.013266423717141151, -0.0058839572593569756, -0.004942950326949358, 0.012556229718029499, -0.015752103179693222, -0.0342029444873333, 0.00535131199285388, 0.004065860528498888, 0.014871462248265743, 0.0012321865651756525, 0.032526884227991104, -0.033350709825754166, -0.0290895476937294, -0.008941343054175377, 0.011561958119273186, 0.03863455355167389, -0.01728612184524536, 0.04335024207830429, 0.010354628786444664, -0.0018713612807914615, 0.011412817984819412, -0.017783258110284805, -0.005862651392817497, -0.040140166878700256, -0.009736759588122368, 0.01651911251246929, 0.032328031957149506, -0.003980637528002262, -0.0021447858307510614, 0.030225858092308044, 0.0021998260635882616, -0.009701250120997429, 0.016277646645903587, 0.008841915056109428, -0.012421293184161186, 0.02504144050180912, -0.0399981252849102, 0.015539045445621014, 0.02957247942686081, -0.007975478656589985, 0.035396069288253784, 0.0026135139632970095, -0.022981878370046616, -0.010212589986622334, -0.029657702893018723, -0.026262974366545677, -0.014701016247272491, 0.02424602396786213, -0.024544304236769676, -0.011618774384260178, 0.04417406767606735, 0.003739171428605914, 0.04357750341296196, 0.04667394980788231, -0.010063448920845985, 0.0485488623380661, -0.02578004263341427, -0.04028220474720001, -0.022498946636915207, 0.033890459686517715, -0.035651739686727524, 0.012499414384365082, 0.013337443582713604, 0.00909048318862915, 0.01643388904631138, -0.014558977447450161, 0.035708554089069366, 0.11169931292533875, 0.025510169565677643, 0.05445767566561699, 0.035197217017412186, -0.0014905197313055396, -0.014828851446509361, 0.02345060557126999, -0.022626781836152077, 0.0436343215405941, 0.03496995195746422, -0.002812368329614401, -0.002892265096306801, -0.02194499410688877, -0.015240763314068317, -0.0029153465293347836, -0.005880406592041254, -0.000893068965524435, -0.04070832207798958, -0.0009951593820005655, 0.06698550283908844, 0.013131487183272839, 0.037270981818437576, 0.07971217483282089, 0.03996971994638443, 0.03471428155899048, -0.050736259669065475, 0.019501928240060806, 0.034629061818122864, 0.017399752512574196, 0.01409735158085823, -0.03110649809241295, 0.049486320465803146, 0.006409501191228628, -0.0463898740708828, -0.009147298522293568, 0.022825635969638824, -0.018095742911100388, -0.05471334606409073, 0.00032646729960106313, -0.007854745723307133, 0.011696895584464073, 0.020055878907442093, -0.03693008795380592, -0.03917430341243744, 0.007662993390113115, -0.02176034450531006, 0.11084707826375961, 0.044770631939172745, 0.0018766876310110092, -0.004758299794048071, -0.04252641648054123, 0.01735714077949524, -0.02670329436659813, -0.005315802060067654, -0.00786184798926115, -0.02386251837015152, 0.037526652216911316, -0.029203178361058235, 1.5299687220249325e-05, 0.031191721558570862, 0.03158942982554436, 0.031248535960912704, 0.006001139525324106, -0.02281143143773079, -0.0059336707927286625, -0.020695053040981293, -0.0211779847741127, -0.04312298074364662, -0.015539045445621014, -0.010787847451865673, -0.04286731034517288, 0.0181809663772583, 0.016575928777456284, 0.05323614180088043, -0.012534924782812595, 0.02519768290221691, -0.006249707192182541, 0.0340040884912014, 0.019828617572784424, -0.016405481845140457, 0.018479248508810997, -0.017811665311455727, -0.006207095459103584, 0.0019406051142141223, -0.0425548255443573, 0.014118657447397709, -0.04124806821346283, 0.005024622660130262, -0.028109479695558548, 0.05840635672211647, -0.01387719064950943, -0.043463874608278275, -0.028095275163650513, -0.011952565051615238, -0.007101939991116524, -0.017016248777508736, 0.011391512118279934, -0.004847073927521706, -0.0012277478817850351, -0.010319119319319725, 0.017328733578324318, -0.008870323188602924, -0.03343593329191208, -0.0014834176981821656, -0.00727238692343235, -0.037555061280727386, -0.05209983140230179, -0.11493779718875885, 0.005848447792232037, -0.0027999398298561573, 0.019146829843521118, -0.016959432512521744, -0.0026774313300848007, -0.010709725320339203, 0.010773642919957638, 0.034089311957359314, 0.004612710326910019, 0.00848681852221489, -0.00311775179579854, -0.008302167989313602, -0.028379352763295174, 0.001398194464854896, 0.03377682715654373, 0.019899636507034302, -0.016249239444732666, -0.009381663054227829, 0.0016414358979091048, 0.012961041182279587, 0.03366319462656975, -0.041901446878910065, 0.012577535584568977, -0.01738554984331131, -0.017527587711811066, -0.009722555987536907, -0.00877089612185955, -0.06744002550840378, 0.03684486448764801, -0.015482229180634022, -0.012016482651233673, 0.05886087939143181, -0.03786754608154297, 0.053804297000169754, -0.021220596507191658, 0.02239951863884926, -0.0018323005642741919, -0.006082811858505011, 0.012179827317595482, 0.04752618446946144, -0.02176034450531006, -0.0007803256739862263, -0.0024732507299631834, -0.004612710326910019, -0.0033183814957737923 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\Verb.txt\n\npublic abstract class Verb : ITargetingSource, IExposable, ILoadReferenceable\n{\n\tpublic VerbProperties verbProps;\n\n\tpublic VerbTracker verbTracker;\n\n\tpublic ManeuverDef maneuver;\n\n\tpublic Tool tool;\n\n\tpublic Thing caster;\n\n\tpublic MechanitorControlGroup controlGroup;\n\n\tpublic string loadID;\n\n\tpublic VerbState state;\n\n\tprotected LocalTargetInfo currentTarget;\n\n\tprotected LocalTargetInfo currentDestination;\n\n\tprotected int burstShotsLeft;\n\n\tprotected int ticksToNextBurstShot;\n\n\tprotected int lastShotTick = -999999;\n\n\tprotected bool surpriseAttack;\n\n\tprotected bool canHitNonTargetPawnsNow = true;\n\n\tpublic bool preventFriendlyFire;\n\n\tprotected bool nonInterruptingSelfCast;\n\n\tpublic Action castCompleteCallback;\n\n\tprivate Texture2D commandIconCached;\n\n\tprivate readonly List> maintainedEffecters = new List>();\n\n\tprivate int? cachedTicksBetweenBurstShots;\n\n\tprivate int? cachedBurstShotCount;\n\n\tprivate static readonly List tempLeanShootSources = new List();\n\n\tprivate static readonly List tempDestList = new List();\n\n\tpublic IVerbOwner DirectOwner => verbTracker.directOwner;\n\n\tpublic ImplementOwnerTypeDef ImplementOwnerType => verbTracker.directOwner.ImplementOwnerTypeDef;\n\n\tpublic CompEquippable EquipmentCompSource => DirectOwner as CompEquippable;\n\n\tpublic CompApparelReloadable ReloadableCompSource => DirectOwner as CompApparelReloadable;\n\n\tpublic CompApparelVerbOwner_Charged VerbOwner_ChargedCompSource => DirectOwner as CompApparelVerbOwner_Charged;\n\n\tpublic ThingWithComps EquipmentSource\n\t{\n\t\tget\n\t\t{\n\t\t\tif (EquipmentCompSource != null)\n\t\t\t{\n\t\t\t\treturn EquipmentCompSource.parent;\n\t\t\t}\n\t\t\tif (ReloadableCompSource != null)\n\t\t\t{\n\t\t\t\treturn ReloadableCompSource.parent;\n\t\t\t}\n\t\t\tif (VerbOwner_ChargedCompSource != null)\n\t\t\t{\n\t\t\t\treturn VerbOwner_ChargedCompSource.parent;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tpublic HediffComp_VerbGiver HediffCompSource => DirectOwner as HediffComp_VerbGiver;\n\n\tpublic Hediff HediffSource\n\t{\n\t\tget\n\t\t{\n\t\t\tif (HediffCompSource == null)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn HediffCompSource.parent;\n\t\t}\n\t}\n\n\tpublic Pawn_MeleeVerbs_TerrainSource TerrainSource => DirectOwner as Pawn_MeleeVerbs_TerrainSource;\n\n\tpublic TerrainDef TerrainDefSource\n\t{\n\t\tget\n\t\t{\n\t\t\tif (TerrainSource == null)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn TerrainSource.def;\n\t\t}\n\t}\n\n\tpublic virtual Thing Caster => caster;\n\n\tpublic virtual Pawn CasterPawn => caster as Pawn;\n\n\tpublic virtual Verb GetVerb => this;\n\n\tpublic virtual bool CasterIsPawn => caster is Pawn;\n\n\tpublic virtual bool Targetable => verbProps.targetable;\n\n\tpublic virtual bool MultiSelect => false;\n\n\tpublic virtual bool HidePawnTooltips => false;\n\n\tpublic LocalTargetInfo CurrentTarget => currentTarget;\n\n\tpublic LocalTargetInfo CurrentDestination => currentDestination;\n\n\tpublic int LastShotTick => lastShotTick;\n\n\tpublic virtual TargetingParameters targetParams => verbProps.targetParams;\n\n\tpublic virtual ITargetingSource DestinationSelector => null;\n\n\tprotected virtual int ShotsPerBurst => 1;\n\n\tpublic virtual Texture2D UIIcon\n\t{\n\t\tget\n\t\t{\n\t\t\tif (verbProps.commandIcon != null)\n\t\t\t{\n\t\t\t\tif (commandIconCached == null)\n\t\t\t\t{\n\t\t\t\t\tcommandIconCached = ContentFinder.Get(verbProps.commandIcon);\n\t\t\t\t}\n\t\t\t\treturn commandIconCached;\n\t\t\t}\n\t\t\tif (EquipmentSource != null)\n\t\t\t{\n\t\t\t\treturn EquipmentSource.def.uiIcon;\n\t\t\t}\n\t\t\treturn BaseContent.BadTex;\n\t\t}\n\t}\n\n\tpublic bool Bursting => burstShotsLeft > 0;\n\n\tpublic virtual bool IsMeleeAttack => verbProps.IsMeleeAttack;\n\n\tpublic bool BuggedAfterLoading => verbProps == null;\n\n\tpublic bool WarmingUp => WarmupStance != null;\n\n\tpublic Stance_Warmup WarmupStance\n\t{\n\t\tget\n\t\t{\n\t\t\tif (CasterPawn == null || !CasterPawn.Spawned)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tif (!(CasterPawn.stances.curStance is Stance_Warmup stance_Warmup) || stance_Warmup.verb != this)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn stance_Warmup;\n\t\t}\n\t}\n\n\tpublic int WarmupTicksLeft\n\t{\n\t\tget\n\t\t{\n\t\t\tif (WarmupStance == null)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn WarmupStance.ticksLeft;\n\t\t}\n\t}\n\n\tpublic float WarmupProgress => 1f - WarmupTicksLeft.TicksToSeconds() / verbProps.warmupTime;\n\n\tpublic virtual string ReportLabel => verbProps.label;\n\n\tpublic virtual float EffectiveRange => verbProps.AdjustedRange(this, Caster);\n\n\tpublic virtual float? AimAngleOverride => null;\n\n\tpublic bool NonInterruptingSelfCast\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!verbProps.nonInterruptingSelfCast)\n\t\t\t{\n\t\t\t\treturn nonInterruptingSelfCast;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tpublic int TicksBetweenBurstShots\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!cachedTicksBetweenBurstShots.HasValue)\n\t\t\t{\n\t\t\t\tfloat num = verbProps.ticksBetweenBurstShots;\n\t\t\t\tif (EquipmentSource != null && EquipmentSource.TryGetComp(out var comp))\n\t\t\t\t{\n\t\t\t\t\tforeach (WeaponTraitDef item in comp.TraitsListForReading)\n\t\t\t\t\t{\n\t\t\t\t\t\tnum /= item.burstShotSpeedMultiplier;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcachedTicksBetweenBurstShots = Mathf.RoundToInt(num);\n\t\t\t}\n\t\t\treturn cachedTicksBetweenBurstShots.Value;\n\t\t}\n\t}\n\n\tpublic int BurstShotCount\n\t{\n\t\tget\n\t\t{\n\t\t\tif (!cachedBurstShotCount.HasValue)\n\t\t\t{\n\t\t\t\tfloat num = verbProps.burstShotCount;\n\t\t\t\tif (EquipmentSource != null && EquipmentSource.TryGetComp(out var comp))\n\t\t\t\t{\n\t\t\t\t\tforeach (WeaponTraitDef item in comp.TraitsListForReading)\n\t\t\t\t\t{\n\t\t\t\t\t\tnum *= item.burstShotCountMultiplier;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcachedBurstShotCount = Mathf.CeilToInt(num);\n\t\t\t}\n\t\t\treturn cachedBurstShotCount.Value;\n\t\t}\n\t}\n\n\tpublic bool IsStillUsableBy(Pawn pawn)\n\t{\n\t\tif (!Available())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (!DirectOwner.VerbsStillUsableBy(pawn))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (verbProps.GetDamageFactorFor(this, pawn) == 0f)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (pawn.IsSubhuman && verbProps.category == VerbCategory.Ignite)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic virtual bool IsUsableOn(Thing target)\n\t{\n\t\treturn true;\n\t}\n\n\tpublic virtual void ExposeData()\n\t{\n\t\tScribe_Values.Look(ref loadID, \"loadID\");\n\t\tScribe_Values.Look(ref state, \"state\", VerbState.Idle);\n\t\tScribe_TargetInfo.Look(ref currentTarget, \"currentTarget\");\n\t\tScribe_TargetInfo.Look(ref currentDestination, \"currentDestination\");\n\t\tScribe_Values.Look(ref burstShotsLeft, \"burstShotsLeft\", 0);\n\t\tScribe_Values.Look(ref ticksToNextBurstShot, \"ticksToNextBurstShot\", 0);\n\t\tScribe_Values.Look(ref lastShotTick, \"lastShotTick\", 0);\n\t\tScribe_Values.Look(ref surpriseAttack, \"surpriseAttack\", defaultValue: false);\n\t\tScribe_Values.Look(ref canHitNonTargetPawnsNow, \"canHitNonTargetPawnsNow\", defaultValue: false);\n\t\tScribe_Values.Look(ref preventFriendlyFire, \"preventFriendlyFire\", defaultValue: false);\n\t\tScribe_Values.Look(ref nonInterruptingSelfCast, \"nonInterruptingSelfCast\", defaultValue: false);\n\t}\n\n\tpublic string GetUniqueLoadID()\n\t{\n\t\treturn \"Verb_\" + loadID;\n\t}\n\n\tpublic static string CalculateUniqueLoadID(IVerbOwner owner, Tool tool, ManeuverDef maneuver)\n\t{\n\t\treturn string.Format(\"{0}_{1}_{2}\", owner.UniqueVerbOwnerID(), (tool != null) ? tool.id : \"NT\", (maneuver != null) ? maneuver.defName : \"NM\");\n\t}\n\n\tpublic static string CalculateUniqueLoadID(IVerbOwner owner, int index)\n\t{\n\t\treturn $\"{owner.UniqueVerbOwnerID()}_{index}\";\n\t}\n\n\tpublic bool TryStartCastOn(LocalTargetInfo castTarg, bool surpriseAttack = false, bool canHitNonTargetPawns = true, bool preventFriendlyFire = false, bool nonInterruptingSelfCast = false)\n\t{\n\t\treturn TryStartCastOn(castTarg, LocalTargetInfo.Invalid, surpriseAttack, canHitNonTargetPawns, preventFriendlyFire, nonInterruptingSelfCast);\n\t}\n\n\tpublic virtual bool TryStartCastOn(LocalTargetInfo castTarg, LocalTargetInfo destTarg, bool surpriseAttack = false, bool canHitNonTargetPawns = true, bool preventFriendlyFire = false, bool nonInterruptingSelfCast = false)\n\t{\n\t\tif (caster == null)\n\t\t{\n\t\t\tLog.Error(\"Verb \" + GetUniqueLoadID() + \" needs caster to work (possibly lost during saving/loading).\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!caster.Spawned)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (state == VerbState.Bursting || !CanHitTarget(castTarg))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (CausesTimeSlowdown(castTarg))\n\t\t{\n\t\t\tFind.TickManager.slower.SignalForceNormalSpeed();\n\t\t}\n\t\tthis.surpriseAttack = surpriseAttack;\n\t\tcanHitNonTargetPawnsNow = canHitNonTargetPawns;\n\t\tthis.preventFriendlyFire = preventFriendlyFire;\n\t\tthis.nonInterruptingSelfCast = nonInterruptingSelfCast;\n\t\tcurrentTarget = castTarg;\n\t\tcurrentDestination = destTarg;\n\t\tif (CasterIsPawn && verbProps.warmupTime > 0f)\n\t\t{\n\t\t\tif (!TryFindShootLineFromTo(caster.Position, castTarg, out var resultingLine))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tCasterPawn.Drawer.Notify_WarmingCastAlongLine(resultingLine, caster.Position);\n\t\t\tfloat statValue = CasterPawn.GetStatValue(StatDefOf.AimingDelayFactor);\n\t\t\tint ticks = (verbProps.warmupTime * statValue).SecondsToTicks();\n\t\t\tCasterPawn.stances.SetStance(new Stance_Warmup(ticks, castTarg, this));\n\t\t\tif (verbProps.stunTargetOnCastStart && castTarg.Pawn != null)\n\t\t\t{\n\t\t\t\tcastTarg.Pawn.stances.stunner.StunFor(ticks, null, addBattleLog: false);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (verbTracker.directOwner is Ability ability)\n\t\t\t{\n\t\t\t\tability.lastCastTick = Find.TickManager.TicksGame;\n\t\t\t}\n\t\t\tWarmupComplete();\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic virtual void WarmupComplete()\n\t{\n\t\tburstShotsLeft = ShotsPerBurst;\n\t\tstate = VerbState.Bursting;\n\t\tTryCastNextBurstShot();\n\t}\n\n\tpublic void VerbTick()\n\t{\n\t\tif (state == VerbState.Bursting)\n\t\t{\n\t\t\tif (!caster.Spawned || (caster is Pawn pawn && pawn.stances.stunner.Stunned))\n\t\t\t{\n\t\t\t\tReset();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tticksToNextBurstShot--;\n\t\t\t\tif (ticksToNextBurstShot <= 0)\n\t\t\t\t{\n\t\t\t\t\tTryCastNextBurstShot();\n\t\t\t\t}\n\t\t\t\tBurstingTick();\n\t\t\t}\n\t\t}\n\t\tfor (int num = maintainedEffecters.Count - 1; num >= 0; num--)\n\t\t{\n\t\t\tEffecter item = maintainedEffecters[num].Item1;\n\t\t\tif (item.ticksLeft > 0)\n\t\t\t{\n\t\t\t\tTargetInfo item2 = maintainedEffecters[num].Item2;\n\t\t\t\tTargetInfo item3 = maintainedEffecters[num].Item3;\n\t\t\t\titem.EffectTick(item2, item3);\n\t\t\t\titem.ticksLeft--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\titem.Cleanup();\n\t\t\t\tmaintainedEffecters.RemoveAt(num);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic virtual void BurstingTick()\n\t{\n\t}\n\n\tpublic void AddEffecterToMaintain(Effecter eff, IntVec3 pos, int ticks, Map map = null)\n\t{\n\t\teff.ticksLeft = ticks;\n\t\tTargetInfo targetInfo = new TargetInfo(pos, map ?? caster.Map);\n\t\tmaintainedEffecters.Add(new Tuple(eff, targetInfo, targetInfo));\n\t}\n\n\tpublic void AddEffecterToMaintain(Effecter eff, IntVec3 posA, IntVec3 posB, int ticks, Map map = null)\n\t{\n\t\teff.ticksLeft = ticks;\n\t\tTargetInfo item = new TargetInfo(posA, map ?? caster.Map);\n\t\tTargetInfo item2 = new TargetInfo(posB, map ?? caster.Map);\n\t\tmaintainedEffecters.Add(new Tuple(eff, item, item2));\n\t}\n\n\tpublic virtual bool Available()\n\t{\n\t\tif (verbProps.consumeFuelPerShot > 0f)\n\t\t{\n\t\t\tCompRefuelable compRefuelable = caster.TryGetComp();\n\t\t\tif (compRefuelable != null && compRefuelable.Fuel < verbProps.consumeFuelPerShot)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tCompApparelVerbOwner compApparelVerbOwner = EquipmentSource?.GetComp();\n\t\tif (compApparelVerbOwner != null && !compApparelVerbOwner.CanBeUsed(out var reason))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (CasterIsPawn && EquipmentSource != null && EquipmentUtility.RolePreventsFromUsing(CasterPawn, EquipmentSource, out reason))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tprotected void TryCastNextBurstShot()\n\t{\n\t\tLocalTargetInfo localTargetInfo = currentTarget;\n\t\tif (Available() && TryCastShot())\n\t\t{\n\t\t\tif (verbProps.muzzleFlashScale > 0.01f)\n\t\t\t{\n\t\t\t\tFleckMaker.Static(caster.Position, caster.Map, FleckDefOf.ShotFlash, verbProps.muzzleFlashScale);\n\t\t\t}\n\t\t\tif (verbProps.soundCast != null)\n\t\t\t{\n\t\t\t\tverbProps.soundCast.PlayOneShot(new TargetInfo(caster.Position, caster.MapHeld));\n\t\t\t}\n\t\t\tif (verbProps.soundCastTail != null)\n\t\t\t{\n\t\t\t\tverbProps.soundCastTail.PlayOneShotOnCamera(caster.Map);\n\t\t\t}\n\t\t\tif (CasterIsPawn)\n\t\t\t{\n\t\t\t\tCasterPawn.Notify_UsedVerb(CasterPawn, this);\n\t\t\t\tif (CasterPawn.thinker != null && localTargetInfo == CasterPawn.mindState.enemyTarget)\n\t\t\t\t{\n\t\t\t\t\tCasterPawn.mindState.Notify_EngagedTarget();\n\t\t\t\t}\n\t\t\t\tif (CasterPawn.mindState != null)\n\t\t\t\t{\n\t\t\t\t\tCasterPawn.mindState.Notify_AttackedTarget(localTargetInfo);\n\t\t\t\t}\n\t\t\t\tif (CasterPawn.MentalState != null)\n\t\t\t\t{\n\t\t\t\t\tCasterPawn.MentalState.Notify_AttackedTarget(localTargetInfo);\n\t\t\t\t}\n\t\t\t\tif (TerrainDefSource != null)\n\t\t\t\t{\n\t\t\t\t\tCasterPawn.meleeVerbs.Notify_UsedTerrainBasedVerb();\n\t\t\t\t}\n\t\t\t\tif (CasterPawn.health != null)\n\t\t\t\t{\n\t\t\t\t\tCasterPawn.health.Notify_UsedVerb(this, localTargetInfo);\n\t\t\t\t}\n\t\t\t\tif (EquipmentSource != null)\n\t\t\t\t{\n\t\t\t\t\tEquipmentSource.Notify_UsedWeapon(CasterPawn);\n\t\t\t\t}\n\t\t\t\tif (!CasterPawn.Spawned)\n\t\t\t\t{\n\t\t\t\t\tReset();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (verbProps.consumeFuelPerShot > 0f)\n\t\t\t{\n\t\t\t\tcaster.TryGetComp()?.ConsumeFuel(verbProps.consumeFuelPerShot);\n\t\t\t}\n\t\t\tburstShotsLeft--;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tburstShotsLeft = 0;\n\t\t}\n\t\tif (burstShotsLeft > 0)\n\t\t{\n\t\t\tticksToNextBurstShot = TicksBetweenBurstShots;\n\t\t\tif (CasterIsPawn && !NonInterruptingSelfCast)\n\t\t\t{\n\t\t\t\tCasterPawn.stances.SetStance(new Stance_Cooldown(TicksBetweenBurstShots + 1, currentTarget, this));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tstate = VerbState.Idle;\n\t\tif (CasterIsPawn && !NonInterruptingSelfCast)\n\t\t{\n\t\t\tCasterPawn.stances.SetStance(new Stance_Cooldown(verbProps.AdjustedCooldownTicks(this, CasterPawn), currentTarget, this));\n\t\t}\n\t\tif (castCompleteCallback != null)\n\t\t{\n\t\t\tcastCompleteCallback();\n\t\t}\n\t\tif (verbProps.consumeFuelPerBurst > 0f)\n\t\t{\n\t\t\tcaster.TryGetComp()?.ConsumeFuel(verbProps.consumeFuelPerBurst);\n\t\t}\n\t}\n\n\tpublic virtual void OrderForceTarget(LocalTargetInfo target)\n\t{\n\t\tif (verbProps.IsMeleeAttack)\n\t\t{\n\t\t\tJob job = JobMaker.MakeJob(JobDefOf.AttackMelee, target);\n\t\t\tjob.playerForced = true;\n\t\t\tif (target.Thing is Pawn pawn)\n\t\t\t{\n\t\t\t\tjob.killIncappedTarget = pawn.Downed;\n\t\t\t}\n\t\t\tCasterPawn.jobs.TryTakeOrderedJob(job, JobTag.Misc);\n\t\t\treturn;\n\t\t}\n\t\tfloat num = verbProps.EffectiveMinRange(target, CasterPawn);\n\t\tif ((float)CasterPawn.Position.DistanceToSquared(target.Cell) < num * num && CasterPawn.Position.AdjacentTo8WayOrInside(target.Cell))\n\t\t{\n\t\t\tMessages.Message(\"MessageCantShootInMelee\".Translate(), CasterPawn, MessageTypeDefOf.RejectInput, historical: false);\n\t\t\treturn;\n\t\t}\n\t\tJob job2 = JobMaker.MakeJob(verbProps.ai_IsWeapon ? JobDefOf.AttackStatic : JobDefOf.UseVerbOnThing);\n\t\tjob2.verbToUse = this;\n\t\tjob2.targetA = target;\n\t\tjob2.endIfCantShootInMelee = true;\n\t\tCasterPawn.jobs.TryTakeOrderedJob(job2, JobTag.Misc);\n\t}\n\n\tprotected abstract bool TryCastShot();\n\n\tpublic void Notify_PickedUp()\n\t{\n\t\tReset();\n\t}\n\n\tpublic virtual void Reset()\n\t{\n\t\tstate = VerbState.Idle;\n\t\tcurrentTarget = null;\n\t\tcurrentDestination = null;\n\t\tburstShotsLeft = 0;\n\t\tticksToNextBurstShot = 0;\n\t\tcastCompleteCallback = null;\n\t\tsurpriseAttack = false;\n\t\tpreventFriendlyFire = false;\n\t}\n\n\tpublic virtual void Notify_EquipmentLost()\n\t{\n\t\tif (!CasterIsPawn)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tPawn casterPawn = CasterPawn;\n\t\tif (casterPawn.Spawned)\n\t\t{\n\t\t\tif (casterPawn.stances.curStance is Stance_Warmup stance_Warmup && stance_Warmup.verb == this)\n\t\t\t{\n\t\t\t\tcasterPawn.stances.CancelBusyStanceSoft();\n\t\t\t}\n\t\t\tif (casterPawn.CurJob != null && casterPawn.CurJob.def == JobDefOf.AttackStatic)\n\t\t\t{\n\t\t\t\tcasterPawn.jobs.EndCurrentJob(JobCondition.Incompletable);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic virtual float HighlightFieldRadiusAroundTarget(out bool needLOSToCenter)\n\t{\n\t\tneedLOSToCenter = false;\n\t\treturn 0f;\n\t}\n\n\tprivate bool CausesTimeSlowdown(LocalTargetInfo castTarg)\n\t{\n\t\tif (!verbProps.CausesTimeSlowdown)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (!castTarg.HasThing)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tThing thing = castTarg.Thing;\n\t\tif (thing.def.category != ThingCategory.Pawn && (thing.def.building == null || !thing.def.building.IsTurret))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tPawn pawn = thing as Pawn;\n\t\tbool flag = pawn?.Downed ?? false;\n\t\tif ((CasterPawn != null && CasterPawn.Faction == Faction.OfPlayer && CasterPawn.IsShambler) || (pawn != null && pawn.Faction == Faction.OfPlayer && pawn.IsShambler))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (thing.Faction != Faction.OfPlayer || !caster.HostileTo(Faction.OfPlayer))\n\t\t{\n\t\t\tif (caster.Faction == Faction.OfPlayer && thing.HostileTo(Faction.OfPlayer))\n\t\t\t{\n\t\t\t\treturn !flag;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic virtual bool CanHitTarget(LocalTargetInfo targ)\n\t{\n\t\tif (caster == null || !caster.Spawned)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (targ == caster)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn CanHitTargetFrom(caster.Position, targ);\n\t}\n\n\tpublic virtual bool ValidateTarget(LocalTargetInfo target, bool showMessages = true)\n\t{\n\t\tif (CasterIsPawn && target.Thing is Pawn p && (p.InSameExtraFaction(caster as Pawn, ExtraFactionType.HomeFaction) || p.InSameExtraFaction(caster as Pawn, ExtraFactionType.MiniFaction)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (CasterIsPawn && target.Thing is Pawn victim && HistoryEventUtility.IsKillingInnocentAnimal(CasterPawn, victim) && !new HistoryEvent(HistoryEventDefOf.KilledInnocentAnimal, CasterPawn.Named(HistoryEventArgsNames.Doer)).Notify_PawnAboutToDo())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (CasterIsPawn && target.Thing is Pawn pawn && CasterPawn.Ideo != null && CasterPawn.Ideo.IsVeneratedAnimal(pawn) && !new HistoryEvent(HistoryEventDefOf.HuntedVeneratedAnimal, CasterPawn.Named(HistoryEventArgsNames.Doer)).Notify_PawnAboutToDo())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic virtual void DrawHighlight(LocalTargetInfo target)\n\t{\n\t\tverbProps.DrawRadiusRing(caster.Position, this);\n\t\tif (target.IsValid)\n\t\t{\n\t\t\tGenDraw.DrawTargetHighlight(target);\n\t\t\tDrawHighlightFieldRadiusAroundTarget(target);\n\t\t}\n\t}\n\n\tprotected void DrawHighlightFieldRadiusAroundTarget(LocalTargetInfo target)\n\t{\n\t\tbool needLOSToCenter;\n\t\tfloat num = HighlightFieldRadiusAroundTarget(out needLOSToCenter);\n\t\tif (!(num > 0.2f) || !TryFindShootLineFromTo(caster.Position, target, out var resultingLine))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (needLOSToCenter)\n\t\t{\n\t\t\tGenExplosion.RenderPredictedAreaOfEffect(resultingLine.Dest, num, verbProps.explosionRadiusRingColor);\n\t\t\treturn;\n\t\t}\n\t\tGenDraw.DrawFieldEdges((from x in GenRadial.RadialCellsAround(resultingLine.Dest, num, useCenter: true)\n\t\t\twhere x.InBounds(Find.CurrentMap)\n\t\t\tselect x).ToList(), verbProps.explosionRadiusRingColor);\n\t}\n\n\tpublic virtual void OnGUI(LocalTargetInfo target)\n\t{\n\t\tTexture2D icon = ((!target.IsValid) ? TexCommand.CannotShoot : ((!(UIIcon != BaseContent.BadTex)) ? TexCommand.Attack : UIIcon));\n\t\tGenUI.DrawMouseAttachment(icon);\n\t}\n\n\tpublic virtual bool CanHitTargetFrom(IntVec3 root, LocalTargetInfo targ)\n\t{\n\t\tif (targ.Thing != null && targ.Thing == caster)\n\t\t{\n\t\t\treturn targetParams.canTargetSelf;\n\t\t}\n\t\tif (targ.Pawn != null && targ.Pawn.IsPsychologicallyInvisible() && caster.HostileTo(targ.Pawn))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (ApparelPreventsShooting())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tShootLine resultingLine;\n\t\treturn TryFindShootLineFromTo(root, targ, out resultingLine);\n\t}\n\n\tpublic bool ApparelPreventsShooting()\n\t{\n\t\treturn FirstApparelPreventingShooting() != null;\n\t}\n\n\tpublic Apparel FirstApparelPreventingShooting()\n\t{\n\t\tif (CasterIsPawn && CasterPawn.apparel != null)\n\t\t{\n\t\t\tList wornApparel = CasterPawn.apparel.WornApparel;\n\t\t\tfor (int i = 0; i < wornApparel.Count; i++)\n\t\t\t{\n\t\t\t\tif (!wornApparel[i].AllowVerbCast(this))\n\t\t\t\t{\n\t\t\t\t\treturn wornApparel[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic bool TryFindShootLineFromTo(IntVec3 root, LocalTargetInfo targ, out ShootLine resultingLine, bool ignoreRange = false)\n\t{\n\t\tif (targ.HasThing && targ.Thing.Map != caster.Map)\n\t\t{\n\t\t\tresultingLine = default(ShootLine);\n\t\t\treturn false;\n\t\t}\n\t\tif (verbProps.IsMeleeAttack || EffectiveRange <= 1.42f)\n\t\t{\n\t\t\tresultingLine = new ShootLine(root, targ.Cell);\n\t\t\treturn ReachabilityImmediate.CanReachImmediate(root, targ, caster.Map, PathEndMode.Touch, null);\n\t\t}\n\t\tCellRect occupiedRect = (targ.HasThing ? targ.Thing.OccupiedRect() : CellRect.SingleCell(targ.Cell));\n\t\tif (!ignoreRange && OutOfRange(root, targ, occupiedRect))\n\t\t{\n\t\t\tresultingLine = new ShootLine(root, targ.Cell);\n\t\t\treturn false;\n\t\t}\n\t\tif (!verbProps.requireLineOfSight)\n\t\t{\n\t\t\tresultingLine = new ShootLine(root, targ.Cell);\n\t\t\treturn true;\n\t\t}\n\t\tIntVec3 goodDest;\n\t\tif (CasterIsPawn)\n\t\t{\n\t\t\tif (CanHitFromCellIgnoringRange(root, targ, out goodDest))\n\t\t\t{\n\t\t\t\tresultingLine = new ShootLine(root, goodDest);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tShootLeanUtility.LeanShootingSourcesFromTo(root, occupiedRect.ClosestCellTo(root), caster.Map, tempLeanShootSources);\n\t\t\tfor (int i = 0; i < tempLeanShootSources.Count; i++)\n\t\t\t{\n\t\t\t\tIntVec3 intVec = tempLeanShootSources[i];\n\t\t\t\tif (CanHitFromCellIgnoringRange(intVec, targ, out goodDest))\n\t\t\t\t{\n\t\t\t\t\tresultingLine = new ShootLine(intVec, goodDest);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach (IntVec3 item in caster.OccupiedRect())\n\t\t\t{\n\t\t\t\tif (CanHitFromCellIgnoringRange(item, targ, out goodDest))\n\t\t\t\t{\n\t\t\t\t\tresultingLine = new ShootLine(item, goodDest);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tresultingLine = new ShootLine(root, targ.Cell);\n\t\treturn false;\n\t}\n\n\tpublic bool OutOfRange(IntVec3 root, LocalTargetInfo targ, CellRect occupiedRect)\n\t{\n\t\tfloat num = verbProps.EffectiveMinRange(targ, caster);\n\t\tfloat num2 = occupiedRect.ClosestDistSquaredTo(root);\n\t\tif (num2 > EffectiveRange * EffectiveRange || num2 < num * num)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate bool CanHitFromCellIgnoringRange(IntVec3 sourceCell, LocalTargetInfo targ, out IntVec3 goodDest)\n\t{\n\t\tif (targ.Thing != null)\n\t\t{\n\t\t\tif (targ.Thing.Map != caster.Map)\n\t\t\t{\n\t\t\t\tgoodDest = IntVec3.Invalid;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tShootLeanUtility.CalcShootableCellsOf(tempDestList, targ.Thing, sourceCell);\n\t\t\tfor (int i = 0; i < tempDestList.Count; i++)\n\t\t\t{\n\t\t\t\tif (CanHitCellFromCellIgnoringRange(sourceCell, tempDestList[i], targ.Thing.def.Fillage == FillCategory.Full))\n\t\t\t\t{\n\t\t\t\t\tgoodDest = tempDestList[i];\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (CanHitCellFromCellIgnoringRange(sourceCell, targ.Cell))\n\t\t{\n\t\t\tgoodDest = targ.Cell;\n\t\t\treturn true;\n\t\t}\n\t\tgoodDest = IntVec3.Invalid;\n\t\treturn false;\n\t}\n\n\tprivate bool CanHitCellFromCellIgnoringRange(IntVec3 sourceSq, IntVec3 targetLoc, bool includeCorners = false)\n\t{\n\t\tif (verbProps.mustCastOnOpenGround && (!targetLoc.Standable(caster.Map) || caster.Map.thingGrid.CellContains(targetLoc, ThingCategory.Pawn)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (verbProps.requireLineOfSight)\n\t\t{\n\t\t\tif (!includeCorners)\n\t\t\t{\n\t\t\t\tif (!GenSight.LineOfSight(sourceSq, targetLoc, caster.Map, skipFirstCell: true))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!GenSight.LineOfSightToEdges(sourceSq, targetLoc, caster.Map, skipFirstCell: true))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic override string ToString()\n\t{\n\t\tstring text = ((verbProps == null) ? \"null\" : ((!verbProps.label.NullOrEmpty()) ? verbProps.label : ((HediffCompSource != null) ? HediffCompSource.Def.label : ((EquipmentSource != null) ? EquipmentSource.def.label : ((verbProps.AdjustedLinkedBodyPartsGroup(tool) == null) ? \"unknown\" : verbProps.AdjustedLinkedBodyPartsGroup(tool).defName)))));\n\t\tif (tool != null)\n\t\t{\n\t\t\ttext = text + \"/\" + loadID;\n\t\t}\n\t\treturn $\"{GetType()}({text})\";\n\t}\n}\n\n", "timestamp": "2025-08-22 19:48:28,843" }, "ThingOwner-TryAdd-TryAddRange-TryTransferToContainer": { "keywords": [ "ThingOwner", "TryAdd", "TryAddRange", "TryTransferToContainer" ], "question": "ThingOwner class virtual methods TryAdd TryAddRange TryTransferToContainer", "embedding": [ 0.006078479811549187, -0.0008539823465980589, -0.02052130177617073, 0.011929108761250973, -0.06403351575136185, 0.04042520001530647, 0.004759148694574833, 0.06885513663291931, 0.05618367716670036, 0.029517745599150658, -0.037220582365989685, -0.05224405974149704, -0.026269029825925827, -0.02418161928653717, -0.03651497885584831, -0.009474196471273899, -0.029929347336292267, -0.1125437542796135, -0.05239105969667435, -0.0003801346756517887, 0.06356311589479446, 0.041513003408908844, 0.008827393874526024, 0.054743070155382156, 0.06150510534644127, 0.012568562291562557, 0.012465661391615868, 0.029032643884420395, 0.009731448255479336, 0.016728682443499565, -0.01001809909939766, 0.00038955191848799586, 0.0012706374982371926, -0.05915309116244316, 0.025989728048443794, 0.011745357885956764, 0.011502807028591633, -0.04039580002427101, -0.0007308692438527942, 0.048480838537216187, -0.02247641049325466, 0.0027636135928332806, -0.021476805210113525, -0.004314471501857042, -0.029238443821668625, 0.016522882506251335, 0.029253143817186356, -0.046746231615543365, -0.004384296480566263, 0.04163060709834099, 0.002495337277650833, 0.013127164915204048, -0.03886699303984642, 0.0032891412265598774, 0.02394641749560833, 0.021623807027935982, -0.038131989538669586, -0.014913223683834076, -0.018860192969441414, 0.03345736488699913, -0.003965344745665789, 0.0423068106174469, -0.02116810530424118, -0.0380437895655632, 0.03951379656791687, -0.01206875964999199, 0.03472157195210457, -0.005681578069925308, 0.0306643508374691, -0.023858217522501945, -0.003750355914235115, -0.018742593005299568, -0.03822018951177597, 0.03433936834335327, -0.03669138252735138, 0.05800648778676987, 0.03536837548017502, 0.029429545626044273, -0.010988304391503334, 0.022829212248325348, -0.025122424587607384, 0.009753498248755932, -0.017522485926747322, 0.054537270218133926, 0.10978014022111893, 0.054272666573524475, -0.010973604395985603, -0.07526437193155289, -0.03580937534570694, 0.009900499135255814, 0.02180020697414875, 0.02071240171790123, 0.031634557992219925, 0.002998814918100834, -0.0067252833396196365, 0.08014479279518127, -0.10060729831457138, -0.016037778928875923, -0.030723150819540024, 0.018874892964959145, -0.023667117580771446, -0.01815458945930004, -0.006045404821634293, 0.05118565261363983, -0.03172275796532631, 0.1239510104060173, -0.02588682807981968, -0.012708213180303574, -0.021021103486418724, 0.028812142089009285, 0.004939224570989609, -0.009988699108362198, 0.03254596143960953, 0.0020745478104799986, -0.03125235438346863, -0.0010455426527187228, 0.0052846758626401424, -0.04768703505396843, -0.02501952275633812, -0.026371929794549942, 0.05541927367448807, 0.02334371581673622, 0.025519326329231262, -0.013876868411898613, -0.020609501749277115, 0.04318881407380104, 0.011348456144332886, 0.0282682403922081, -0.01594957895576954, -0.007335336413234472, -0.029870547354221344, -0.00015986329526640475, -0.003902869299054146, -0.024225719273090363, -0.019756898283958435, 0.018051689490675926, 0.05530167371034622, 0.00983434822410345, -0.0724419578909874, 0.01809578947722912, -0.029400145635008812, 0.02785663679242134, 0.0012660437496379018, -0.013185964897274971, 0.06150510534644127, -0.005376551765948534, -0.07561717182397842, -0.016537582501769066, -0.02566632628440857, 0.005369201302528381, -0.02784193679690361, 0.020447801798582077, -0.012134909629821777, 0.05133265256881714, 0.018624991178512573, 0.002504524774849415, 0.0016546769766137004, -0.021271005272865295, 0.00037186589906923473, -0.03924919292330742, 0.03822018951177597, 0.0055345771834254265, -0.01622888073325157, 0.014927923679351807, 0.012340710498392582, -0.03774978592991829, -0.012715563178062439, 0.009385996498167515, 0.07032514363527298, -0.00907729472965002, 0.05956469476222992, 0.008283491246402264, 0.0056448280811309814, 0.02052130177617073, 0.04901004210114479, -0.041748207062482834, 0.010245950892567635, 0.039160992950201035, 0.011561607010662556, -0.05009784922003746, 0.05909429118037224, -0.0019367345375940204, 0.012767013162374496, 0.014354621060192585, 0.02118280529975891, -0.02609262801706791, 0.028753342106938362, 0.013560816645622253, 0.011987908743321896, 0.05150905251502991, 0.003939619287848473, 0.04095440357923508, 0.006879633758217096, 0.017742987722158432, -0.04236561059951782, 0.01855149120092392, -0.03727938234806061, 0.02524002455174923, -0.10913334041833878, -0.008768592961132526, 0.0043585714884102345, -0.018433891236782074, 0.036838382482528687, 0.01380336843430996, 0.039601996541023254, -0.023035014048218727, 0.0065929824486374855, -0.02134450525045395, 0.01046645175665617, 0.02631312981247902, 0.026033828034996986, 0.006534182466566563, -0.007155260536819696, -0.04245381057262421, -0.02695993334054947, -0.0029933021869510412, -0.027136333286762238, -0.003075990127399564, 0.037661585956811905, 0.027445035055279732, -0.013935668393969536, 0.004376946482807398, -0.002739726100116968, -0.042395010590553284, -0.008871493861079216, -0.020859403535723686, -0.0027525885961949825, -0.026886433362960815, 0.003226666012778878, -0.0056448280811309814, -0.04051339998841286, 0.016566982492804527, -0.08467242121696472, -0.012517111375927925, 0.007644037716090679, -0.028371140360832214, -0.025945628061890602, -0.002388761844485998, -0.007236110512167215, 0.002947364468127489, 0.0023005614057183266, 0.02610732801258564, -0.0009775548242032528, 0.05130325257778168, 0.002002884866669774, -0.004990674555301666, -0.03366316482424736, 0.04539382457733154, 0.031222954392433167, 0.0048326486721634865, 0.0332515649497509, 0.01165715791285038, -0.05888849124312401, 0.020653601735830307, -0.023167314007878304, 0.03627977892756462, 0.0019587846472859383, -0.003325891448184848, -0.008606892079114914, -0.033810168504714966, -0.014001819305121899, 0.041571807116270065, 0.00426669605076313, -0.009525647386908531, -0.020168500021100044, 0.017860587686300278, 0.021535607054829597, 0.01794878952205181, -0.03883759304881096, -0.023446615785360336, -0.017331385985016823, 0.052773259580135345, -0.00777633860707283, -0.042424410581588745, -0.024505021050572395, 0.02981174737215042, 0.01637588068842888, 0.04483522102236748, -0.014185570180416107, -0.002296886406838894, 0.0028260890394449234, 0.006390856578946114, 0.007460286840796471, -0.015361575409770012, 0.039631396532058716, 0.02265281230211258, 0.013671067543327808, 0.0023611991200596094, 0.003437979379668832, -0.05724208429455757, 0.02657773159444332, 0.03513317182660103, 0.043482813984155655, 0.024211019277572632, -0.03304576501250267, 0.026886433362960815, 0.003015352413058281, 0.009011144749820232, 0.002293211407959461, 0.021006403490900993, -0.016522882506251335, 0.04654042795300484, -0.012656762264668941, 0.007361061405390501, 0.03777918592095375, 0.023814117535948753, 0.006074804812669754, -0.1676984280347824, 0.017845887690782547, -0.12159900367259979, 0.006387181580066681, 0.01661108247935772, -0.03904339298605919, 0.02526942454278469, 0.00588370393961668, 0.04207160696387291, -0.021756106987595558, -0.015582077205181122, 0.008349641226232052, 0.026915833353996277, -0.009841698221862316, 0.04107200354337692, 0.041307203471660614, 0.015243975445628166, -0.02895914390683174, 0.004509247373789549, 0.04042520001530647, -0.012384811416268349, -0.013222714886069298, -0.015523276291787624, -0.05806528776884079, 0.011289656162261963, 0.010672252625226974, 0.0041564456187188625, 0.04424721747636795, -0.03319276496767998, -0.01392831839621067, 0.0003445329493843019, -0.010076900012791157, -0.0018365903524681926, 0.02867984212934971, -0.05286145955324173, 0.026386629790067673, -0.028385840356349945, 0.02873864211142063, 0.006611357443034649, -0.023696517571806908, 0.01813988946378231, 0.007982139475643635, 0.009106694720685482, -0.02371121756732464, -0.007489686831831932, -0.02848874032497406, 0.03627977892756462, -0.006291631143540144, -0.01101035438477993, 0.03348676487803459, 0.00582857895642519, -0.043482813984155655, 0.012752313166856766, 0.03780858591198921, -0.02719513513147831, 0.05747728422284126, 0.002901426749303937, 0.02415221929550171, -0.006287956144660711, -0.004347546491771936, 0.005413301754742861, -0.0067252833396196365, -0.01045175176113844, -0.006096855271607637, -0.060329098254442215, -0.015030824579298496, 0.000876951206009835, 0.024005219340324402, -0.018242789432406425, 0.03084075264632702, -0.04792223498225212, 0.019815698266029358, 0.07591117173433304, -0.005692603066563606, 0.008820043876767159, -0.026680631563067436, -0.00572935352101922, -0.023182014003396034, 0.007526437286287546, -0.012678812257945538, 0.02157970704138279, 0.03927859291434288, -0.015493876300752163, 0.001029005041345954, 0.03145815432071686, -0.06156390532851219, -0.006188730709254742, -0.009547697380185127, 0.01621418073773384, 0.013876868411898613, 0.032281357795000076, 0.01500142365694046, -0.004571722354739904, 0.01594957895576954, -0.013163914903998375, 0.00567055307328701, 0.01983039826154709, 0.006773058325052261, -0.01940409652888775, 0.029635345563292503, 0.01944819651544094, -0.03777918592095375, 0.0029051017481833696, -0.056036677211523056, 0.0069384342059493065, 0.03883759304881096, -0.018169289454817772, -0.031222954392433167, -0.033369164913892746, 0.02047720178961754, -0.01944819651544094, 0.019345294684171677, -0.1034885123372078, 0.03084075264632702, 0.03645617887377739, 0.00013700926501769572, 0.013340315781533718, 0.030517350882291794, -0.02848874032497406, -0.007067060098052025, -0.06303390860557556, -0.012620012275874615, 0.007078085094690323, -0.02806243859231472, -0.03777918592095375, 0.029605945572257042, 0.05092105269432068, 0.013840118423104286, -0.0530378632247448, 0.04901004210114479, -0.03263416141271591, -0.03977839648723602, -0.03448637202382088, -0.024710822850465775, -0.002739726100116968, -0.012046709656715393, -0.0039065442979335785, -0.07532317191362381, -0.013112464919686317, 0.003570280037820339, 0.02591622807085514, 0.04118960350751877, 0.046716831624507904, 0.0013790505472570658, -0.01370046753436327, -0.07455876469612122, 0.03178155794739723, 0.02895914390683174, 0.011605706997215748, 0.010172449983656406, -0.027959538623690605, -0.02544582635164261, -0.017360785976052284, -0.006875958759337664, -0.02741563506424427, -0.008930293843150139, 0.027048133313655853, 0.00453864736482501, -0.0209623035043478, -0.0742647647857666, 0.014582471922039986, -0.004406346939504147, -0.00652683200314641, 0.00048693991266191006, -0.0028830517549067736, 0.004759148694574833, -0.024534421041607857, 0.03663258254528046, -0.04818683862686157, -0.018816092982888222, 0.0018806905718520284, 0.004549672361463308, -0.011929108761250973, 0.006159330252557993, -0.0040351697243750095, -0.031222954392433167, 0.014237020164728165, -0.017169684171676636, -0.05791828781366348, -0.06797313690185547, -0.019918598234653473, 0.01466332282871008, -0.04224800691008568, -0.0076293377205729485, -0.015493876300752163, -0.023784717544913292, 0.005016399547457695, -0.024754922837018967, 0.017316685989499092, -0.035515375435352325, 0.0095109473913908, -0.014369321055710316, -0.09225765615701675, -0.01424437016248703, 0.04633462801575661, -0.017419585958123207, -0.01218636054545641, 0.021756106987595558, 0.004568047355860472, -0.06250470876693726, -0.03366316482424736, -0.051450252532958984, 0.07173635065555573, 0.0010703490115702152, 0.005835928954184055, 0.025798628106713295, -0.0375145860016346, -0.0009986861841753125, 0.0051781004294753075, 0.07050155103206635, -0.00512665044516325, 0.007923339493572712, 0.05371406674385071, -0.013185964897274971, -0.0077469381503760815, -0.0015150262042880058, -0.008570142090320587, -0.026033828034996986, 0.004303446039557457, -0.030091049149632454, 0.0119658587500453, 0.015611477196216583, -0.0037264684215188026, -0.006670157890766859, 0.043071214109659195, -0.002585375215858221, -0.005159725435078144, 0.00894499383866787, 0.05121505260467529, 0.0029675771947950125, 0.016125978901982307, 0.0023464991245418787, 0.10260650515556335, 0.022549910470843315, 0.029473645612597466, 0.00970939826220274, -0.010848653502762318, 0.08096799999475479, -0.04959804564714432, 0.02371121756732464, -0.07920399308204651, 0.027739036828279495, 0.0026496881619095802, 0.0036750182043761015, 0.05927069112658501, -9.824931476032361e-05, 0.020374299958348274, 0.03283996134996414, -0.026004428043961525, 0.013671067543327808, -0.01662578247487545, 0.021418005228042603, -0.06791433691978455, 0.01896309293806553, -0.019712796434760094, -0.03945499658584595, -0.03910219296813011, 0.006394531577825546, 0.032516561448574066, 0.007210385520011187, 0.02135920524597168, 0.0004628225869964808, -0.02569572627544403, -0.02571042627096176, 0.03000284731388092, -0.007607287727296352, 0.052567459642887115, 0.0735003650188446, -0.031164154410362244, -0.0024457245599478483, 0.0742647647857666, 0.06344551593065262, -0.04213040694594383, 0.00016238987154792994, 0.014972023665904999, -0.0209623035043478, -0.002914289478212595, 0.002976764691993594, 0.03178155794739723, -0.006166680250316858, -0.0037411684170365334, -0.01768418774008751, -0.004138070624321699, 0.02246171049773693, 0.0032450410071760416, -0.034839171916246414, -0.004641547799110413, -0.006074804812669754, 0.013303565792739391, 0.018639691174030304, 0.02738623507320881, -0.005233225878328085, 0.04621702805161476, -0.030987752601504326, 0.03689718246459961, -0.009951949119567871, 0.00426669605076313, 0.020565401762723923, 0.020638901740312576, 0.005538252182304859, -0.0027360511012375355, 0.021873708814382553, -0.0013533254386857152, 0.014369321055710316, 0.0500684455037117, -0.00021659638150595129, 0.010143049992620945, 0.00035716581624001265, -0.008452542126178741, 0.021506207063794136, 0.0025614877231419086, -0.012237810529768467, 0.0004632819618564099, -0.009283095598220825, -0.01165715791285038, 0.02762143686413765, -0.037867385894060135, 0.02657773159444332, -0.0018025963800027966, 0.06250470876693726, -0.00196797214448452, 0.002647850662469864, 0.016125978901982307, -0.007599937729537487, 0.021418005228042603, -0.03307516500353813, 0.02115340530872345, 0.006159330252557993, -0.008158540353178978, -0.04421781748533249, 0.015934878960251808, 0.033133964985609055, 0.012318660505115986, 0.03131115436553955, 0.005402276758104563, 0.00962119735777378, 0.02005089819431305, -0.0003475189150776714, -0.004149095620959997, -0.006648107897490263, -0.03360436484217644, 0.004777523688971996, -0.012090809643268585, 0.014567771926522255, 0.014817672781646252, 0.002030447591096163, -0.014090019278228283, -0.04071919992566109, 0.012039359658956528, -0.004042520187795162, 0.021903108805418015, 0.011833558790385723, 0.007452936843037605, -0.0196686964482069, 0.009577097371220589, -0.025798628106713295, -0.0004687944892793894, 0.05065644904971123, -0.018463291227817535, 0.00022348704806063324, -0.017007984220981598, 0.010672252625226974, -0.02806243859231472, 0.04950984567403793, -0.01794878952205181, 0.022314710542559624, -0.0037062556948512793, 0.009224295616149902, 0.03910219296813011, 0.005681578069925308, -0.030576150864362717, 0.013685767538845539, 0.027474435046315193, 0.0019054969307035208, 0.00907729472965002, -0.030135149136185646, 0.056007277220487595, -0.019301194697618484, 0.03295756131410599, 0.0008659261511638761, 0.01090745348483324, -0.04624642804265022, -0.012517111375927925, 0.04809863865375519, -0.015155774541199207, 0.02765083685517311, 0.010944204404950142, -0.042189206928014755, 0.013641667552292347, -0.008246740326285362, -0.057300884276628494, 0.02182960696518421, 0.05012724921107292, -0.02028609998524189, 0.006515807006508112, 0.09319846332073212, -0.0019661346450448036, -0.0142296701669693, -0.008937643840909004, -0.019771598279476166, -0.029267843812704086, -0.011738007888197899, 0.014207620173692703, -0.025813328102231026, 0.012377461418509483, 0.005949854385107756, 0.014604521915316582, -0.004718723241239786, 0.01769888773560524, 0.021506207063794136, -0.0172725860029459, -0.0644451156258583, 0.000543443311471492, -0.018463291227817535, 0.0009665297693572938, -0.008437841199338436, 0.04030760005116463, -0.015978978946805, 0.0016721332212910056, 0.012737613171339035, -0.012215760536491871, -0.04621702805161476, 0.06550352275371552, 0.01424437016248703, -0.041101403534412384, -0.0015949578955769539, -0.0012761499965563416, 0.00680245878174901, -0.02177080698311329, 0.02157970704138279, -0.028121238574385643, 0.006967834196984768, 0.03904339298605919, -0.0044798469170928, -0.0174636859446764, 0.11030934751033783, -0.0419246070086956, 0.010811903513967991, -0.02438742108643055, -0.021476805210113525, 0.06297510862350464, -0.0011861120583489537, 0.00865099299699068, -0.010760453529655933, 0.03845538944005966, -0.004027819726616144, 0.007254485972225666, 0.03425116837024689, 0.000848469790071249, 0.06373951584100723, 0.005894728936254978, 0.005376551765948534, -0.0012577750021591783, -0.011899708770215511, -0.01680218242108822, 0.01897779293358326, 0.014913223683834076, -0.004351221490651369, 0.0016473268624395132, 0.0371323823928833, -0.019139494746923447, -0.026621831580996513, 0.027724336832761765, -0.022520510479807854, 0.057065680623054504, -0.01282581314444542, 0.07155995070934296, -0.013796018436551094, 0.03460397198796272, -0.007192010525614023, -0.0032321785110980272, -0.03063495084643364, -0.04295361042022705, 0.009996049106121063, 0.004545997362583876, -0.06550352275371552, -0.019727498292922974, 0.01856619119644165, 0.03304576501250267, -0.03087015263736248, 0.02763613685965538, -0.00040080666076391935, 0.07914519309997559, 0.0052993763238191605, -0.04706963151693344, 0.01391361840069294, -0.007265510968863964, -0.005946179386228323, -0.03001754730939865, -0.029062043875455856, 0.08631882816553116, 0.01163510698825121, 0.02718043327331543, 0.0055603026412427425, -0.027592036873102188, -0.020139100030064583, 0.007967439480125904, 0.018654393032193184, 0.008562792092561722, -0.008349641226232052, -0.025195924565196037, -0.053184863179922104, 0.0336337648332119, -0.04509982094168663, -0.02675413154065609, 0.028753342106938362, -0.005799178499728441, -0.011003004387021065, 0.026166129857301712, 0.016522882506251335, 0.011929108761250973, -0.026210229843854904, -0.018198689445853233, 0.004509247373789549, 0.026019128039479256, 0.012649412266910076, -0.003950644284486771, 0.025137124583125114, -0.020374299958348274, 0.014104719273746014, -0.04595242813229561, -0.002906939247623086, 0.015214575454592705, 0.07826318591833115, -0.009422746486961842, -0.05932949110865593, 0.07126595079898834, 0.03307516500353813, 0.043747417628765106, -0.031840357929468155, -0.0011567119508981705, -0.018727893009781837, -0.03201675787568092, -0.017110884189605713, -0.010973604395985603, -0.0042740460485219955, 0.012524462305009365, -0.03175215795636177, 0.002971252193674445, 0.01684628240764141, -0.016758082434535027, -0.029899947345256805, 0.004733423236757517, 0.05885909125208855, 0.010216550901532173, -0.006030704826116562, -0.01489117369055748, 0.03469217196106911, 0.04210100695490837, -0.004178495611995459, -0.030135149136185646, 0.010304750874638557, -0.004270371049642563, -0.002925314474850893, -0.013560816645622253, -0.025578126311302185, -0.0079894894734025, -0.01963929645717144, -0.014112069271504879, 0.049068842083215714, 0.005755078513175249, 0.03586817532777786, -0.03216375783085823, 0.04189520701766014, 0.07838078588247299, -0.009518297389149666, -0.012480361387133598, 0.01944819651544094, -0.03451577201485634, -0.02547522634267807, 0.024255119264125824, -0.005755078513175249, 0.020550701767206192, -0.03301636129617691, -0.0239317175000906, 0.00906259473413229, 0.009518297389149666, -0.025519326329231262, 0.03460397198796272, -0.0004455959424376488, -0.016699282452464104, -0.011157355271279812, 0.034221768379211426, 0.04365921393036842, -0.00841579120606184, 0.002664388157427311, 0.018507391214370728, 0.0014690884854644537, -0.00981964822858572, 0.011686557903885841, 0.024064019322395325, 0.0001028430851874873, 0.00013700926501769572, -0.025813328102231026, -0.0833200141787529, 0.06350431591272354, -0.02591622807085514, -0.03345736488699913, -0.005909429397433996, -0.03369256481528282, -0.02571042627096176, -0.011502807028591633, 0.01985979825258255, -0.009555047377943993, 0.015493876300752163, 0.031840357929468155, -0.008408441208302975, -0.003439816879108548, 0.02528412453830242, -0.007519087288528681, 0.06321030855178833, -0.003658480476588011, -0.012112859636545181, -0.011319056153297424, 0.027018733322620392, 0.016537582501769066, -0.040895603597164154, 0.024563821032643318, -0.0029510394670069218, 0.01815458945930004, -0.019756898283958435, -0.01962459646165371, 0.0358387753367424, 0.048921842128038406, 0.04033700004220009, 0.02672473154962063, 0.021315105259418488, 0.061387501657009125, -0.008151190355420113, -0.03472157195210457, 0.006409231573343277, 0.0015637201722711325, -0.054919470101594925, 0.029032643884420395, -0.009988699108362198, 0.019168894737958908, 0.005350826308131218, -0.015846678987145424, 0.032928161323070526, 0.02134450525045395, -0.031575754284858704, 0.03604457899928093, -0.01621418073773384, -0.04512922465801239, -0.01686098240315914, 0.008327591232955456, 0.007585237268358469, -0.05991749465465546, 0.013002214021980762, 0.018669093027710915, -0.006409231573343277, -0.0005985685857012868, -0.021285705268383026, 0.06215190514922142, 0.005152375437319279, 0.0013165752170607448, -0.003654805477708578, -0.015346875414252281, -0.03866118937730789, -0.01946289651095867, -0.03736758604645729, -0.009657947346568108, 0.005251600872725248, 0.007353711407631636, 0.0388081930577755, -0.011730657890439034, -0.06850233674049377, 0.023417215794324875, 0.024255119264125824, -0.00358681776560843, -0.03283996134996414, -0.07708717882633209, 0.0077469381503760815, 0.0025780252180993557, 0.032722361385822296, -0.024284519255161285, -0.020550701767206192, -0.018272189423441887, -0.06115230172872543, 0.013002214021980762, -0.024284519255161285, 0.020330199971795082, -0.04430601745843887, -0.00432549649849534, -0.06450391560792923, -0.007379436399787664, 0.028106538578867912, 0.03525077551603317, -0.012634712271392345, -0.025137124583125114, -0.020388999953866005, 0.031193554401397705, -0.003627242986112833, 0.008151190355420113, 0.00810709036886692, -0.0102533008903265, -0.005714653059840202, -0.006251205690205097, 0.0020010473672300577, -0.08620122820138931, 0.0021792857442051172, 0.002517387503758073, 0.02632782980799675, 0.08302600681781769, 0.004759148694574833, 0.015258675441145897, -0.008695092983543873, 0.061387501657009125, -0.04704023152589798, 0.00010112042218679562, 0.011510157026350498, -0.01123820524662733, -0.014861773699522018, -0.036338578909635544, 0.021256305277347565, 0.05330246314406395, 0.011495457030832767 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\ThingOwner.txt\n\npublic class ThingOwner : ThingOwner, IList, ICollection, IEnumerable, IEnumerable where T : Thing\n{\n\tprivate List innerList = new List();\n\n\tpublic List InnerListForReading => innerList;\n\n\tpublic new T this[int index] => innerList[index];\n\n\tpublic override int Count => innerList.Count;\n\n\tT IList.this[int index]\n\t{\n\t\tget\n\t\t{\n\t\t\treturn innerList[index];\n\t\t}\n\t\tset\n\t\t{\n\t\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow setting individual elements.\");\n\t\t}\n\t}\n\n\tbool ICollection.IsReadOnly => true;\n\n\tpublic ThingOwner()\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, bool oneStackOnly, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner, oneStackOnly, contentsLookMode, removeContentsIfDestroyed)\n\t{\n\t}\n\n\tpublic override void ExposeData()\n\t{\n\t\tbase.ExposeData();\n\t\tScribe_Collections.Look(ref innerList, \"innerList\", true, contentsLookMode);\n\t\tif (Scribe.mode == LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\tint num = innerList.RemoveAll((T x) => x == null || (x is MinifiedThing minifiedThing && minifiedThing.InnerThing == null));\n\t\t\tif (num > 0)\n\t\t\t{\n\t\t\t\tLog.Warning($\"ThingOwner removed {num} invalid entries during PostLoadInit.\");\n\t\t\t}\n\t\t}\n\t\tif (Scribe.mode != LoadSaveMode.LoadingVars && Scribe.mode != LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] != null)\n\t\t\t{\n\t\t\t\tinnerList[i].holdingOwner = this;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic List.Enumerator GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tpublic override int GetCountCanAccept(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (!(item is T))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn base.GetCountCanAccept(item, canMergeWithExistingStacks);\n\t}\n\n\tpublic override int TryAdd(Thing item, int count, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (count <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item?.ToString() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + count + \" of \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tint stackCount = item.stackCount;\n\t\tint num = Mathf.Min(stackCount, count);\n\t\tThing thing = item.SplitOff(num);\n\t\tif (!TryAdd((T)thing, canMergeWithExistingStacks))\n\t\t{\n\t\t\tif (thing != item)\n\t\t\t{\n\t\t\t\tint result = stackCount - item.stackCount - thing.stackCount;\n\t\t\t\titem.TryAbsorbStack(thing, respectStackLimit: false);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn stackCount - item.stackCount;\n\t\t}\n\t\tCompPushable compPushable = item.TryGetComp();\n\t\tif (compPushable != null && owner is Pawn pawn)\n\t\t{\n\t\t\tcompPushable.OnStartedCarrying(pawn);\n\t\t}\n\t\treturn num;\n\t}\n\n\tpublic override bool TryAdd(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (canMergeWithExistingStacks)\n\t\t{\n\t\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t\t{\n\t\t\t\tT val = innerList[i];\n\t\t\t\tif (!val.CanStackWith(item))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint num = Mathf.Min(item.stackCount, val.def.stackLimit - val.stackCount);\n\t\t\t\tif (num > 0)\n\t\t\t\t{\n\t\t\t\t\tThing other = item.SplitOff(num);\n\t\t\t\t\tint stackCount = val.stackCount;\n\t\t\t\t\tval.TryAbsorbStack(other, respectStackLimit: true);\n\t\t\t\t\tif (val.stackCount > stackCount)\n\t\t\t\t\t{\n\t\t\t\t\t\tNotifyAddedAndMergedWith(val, val.stackCount - stackCount);\n\t\t\t\t\t}\n\t\t\t\t\tif (item.Destroyed || item.stackCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Count >= maxStacks)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\titem.holdingOwner = this;\n\t\tinnerList.Add(item2);\n\t\tNotifyAdded(item2);\n\t\treturn true;\n\t}\n\n\tprotected override void NotifyAdded(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemAdded(item as T);\n\t\t}\n\t\tbase.NotifyAdded(item);\n\t}\n\n\tprotected override void NotifyRemoved(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemRemoved(item as T);\n\t\t}\n\t\tbase.NotifyRemoved(item);\n\t}\n\n\tpublic void TryAddRangeOrTransfer(IEnumerable things, bool canMergeWithExistingStacks = true, bool destroyLeftover = false)\n\t{\n\t\tif (things == this)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (things is ThingOwner thingOwner)\n\t\t{\n\t\t\tthingOwner.TryTransferAllToContainer(this, canMergeWithExistingStacks);\n\t\t\tif (destroyLeftover)\n\t\t\t{\n\t\t\t\tthingOwner.ClearAndDestroyContents();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (things is IList list)\n\t\t{\n\t\t\tfor (int i = 0; i < list.Count; i++)\n\t\t\t{\n\t\t\t\tif (!TryAddOrTransfer(list[i], canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t\t{\n\t\t\t\t\tlist[i].Destroy();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tforeach (T thing in things)\n\t\t{\n\t\t\tif (!TryAddOrTransfer(thing, canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t{\n\t\t\t\tthing.Destroy();\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override int IndexOf(Thing item)\n\t{\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn innerList.IndexOf(item2);\n\t}\n\n\tpublic override bool Remove(Thing item)\n\t{\n\t\tif (!Contains(item))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner == this)\n\t\t{\n\t\t\titem.holdingOwner = null;\n\t\t}\n\t\tint index = innerList.LastIndexOf((T)item);\n\t\tinnerList.RemoveAt(index);\n\t\tNotifyRemoved(item);\n\t\treturn true;\n\t}\n\n\tpublic int RemoveAll(Predicate predicate)\n\t{\n\t\tint num = 0;\n\t\tfor (int num2 = innerList.Count - 1; num2 >= 0; num2--)\n\t\t{\n\t\t\tif (predicate(innerList[num2]))\n\t\t\t{\n\t\t\t\tRemove(innerList[num2]);\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n\n\tprotected override Thing GetAt(int index)\n\t{\n\t\treturn innerList[index];\n\t}\n\n\tpublic void GetThingsOfType(List list) where J : Thing\n\t{\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] is J item)\n\t\t\t{\n\t\t\t\tlist.Add(item);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic int TryTransferToContainer(Thing item, ThingOwner otherContainer, int stackCount, out T resultingTransferredItem, bool canMergeWithExistingStacks = true)\n\t{\n\t\tThing resultingTransferredItem2;\n\t\tint result = TryTransferToContainer(item, otherContainer, stackCount, out resultingTransferredItem2, canMergeWithExistingStacks);\n\t\tresultingTransferredItem = (T)resultingTransferredItem2;\n\t\treturn result;\n\t}\n\n\tpublic new T Take(Thing thing, int count)\n\t{\n\t\treturn (T)base.Take(thing, count);\n\t}\n\n\tpublic new T Take(Thing thing)\n\t{\n\t\treturn (T)base.Take(thing);\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, int count, out T resultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing resultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, count, out resultingThing2, placedAction2, nearPlaceValidator);\n\t\tresultingThing = (T)resultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, mode, out lastResultingThing2, placedAction2, nearPlaceValidator);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, out lastResultingThing2, placedAction2, nearPlaceValidator, playDropSound: true);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tint IList.IndexOf(T item)\n\t{\n\t\treturn innerList.IndexOf(item);\n\t}\n\n\tvoid IList.Insert(int index, T item)\n\t{\n\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow inserting individual elements at any position.\");\n\t}\n\n\tvoid ICollection.Add(T item)\n\t{\n\t\tTryAdd(item);\n\t}\n\n\tvoid ICollection.CopyTo(T[] array, int arrayIndex)\n\t{\n\t\tinnerList.CopyTo(array, arrayIndex);\n\t}\n\n\tbool ICollection.Contains(T item)\n\t{\n\t\treturn innerList.Contains(item);\n\t}\n\n\tbool ICollection.Remove(T item)\n\t{\n\t\treturn Remove(item);\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n}\n\n", "timestamp": "2025-08-24 20:52:47,868" }, "IThingHolder-ThingOwner-virtual methods": { "keywords": [ "ThingOwner", "IThingHolder", "virtual methods" ], "question": "public class ThingOwner : IThingHolder virtual methods", "embedding": [ 0.0014595270622521639, 0.0027306692209094763, 0.040208324790000916, 0.010125240311026573, -0.06315106898546219, 0.01258339174091816, 0.016694942489266396, 0.05387447401881218, 0.012312701903283596, 0.09405353665351868, -0.051387060433626175, -0.04582695662975311, -0.01600724458694458, -0.02946854755282402, 0.06917939335107803, -0.017587484791874886, 0.015012279152870178, -0.08732288330793381, -0.03616993501782417, -0.011486003175377846, 0.03924262523651123, 0.06478983163833618, -0.010205715894699097, 0.04246162995696068, 0.019665207713842392, -0.02184535376727581, 0.02374749444425106, 0.061570826917886734, -0.04240310192108154, -0.016065772622823715, 0.0027270112186670303, 0.018231285735964775, -0.01777769811451435, 0.004466372542083263, 0.006317301653325558, 0.020148057490587234, -0.06227315589785576, -0.0003463633474893868, -0.0028294341173022985, -0.013132086023688316, -0.021128391847014427, -0.0050443303771317005, -0.03991568833589554, 0.025942271575331688, -0.02516678348183632, 0.00871326681226492, 0.017953280359506607, -0.04614885523915291, -0.03254123404622078, 0.08129455894231796, -0.012927239760756493, 0.012854080647230148, 0.002642878098413348, -0.007034262176603079, 0.006178298965096474, 0.02832726202905178, 0.022035567089915276, -0.020996706560254097, -0.016621781513094902, 0.02336706593632698, 0.00079011992784217, 0.019094565883278847, -0.03570171445608139, -0.029044223949313164, 0.07450538128614426, 0.022664736956357956, 0.011412843130528927, 0.006031980272382498, 0.02172829769551754, -0.019767630845308304, -0.014375792816281319, 0.026761654764413834, -0.03482380509376526, 0.021303974092006683, -0.01650472730398178, 0.04088139161467552, -0.00806214939802885, 0.013139401562511921, -0.023191483691334724, -0.014551375061273575, -0.00603929627686739, 0.009130274876952171, 0.007443954236805439, 0.009444859810173512, 0.08738141506910324, -0.0059844269417226315, 0.019489625468850136, -0.08199688792228699, -0.003321430180221796, 0.0681258961558342, -0.020806491374969482, 0.007103763520717621, 0.01954815164208412, -0.0027434718795120716, -0.01270044595003128, 0.1193959042429924, -0.06683829426765442, -0.005413784645497799, -0.019723733887076378, 0.018070336431264877, -0.02364507131278515, -0.042988378554582596, -0.008976640179753304, 0.05896635726094246, 0.01840686798095703, 0.030404984951019287, -0.03327282890677452, -0.0052089388482272625, -0.015275652520358562, 0.019870053976774216, 0.012115172110497952, -0.01894824579358101, 0.025854479521512985, 0.029644129797816277, -0.05759096518158913, 0.025854479521512985, -0.018245916813611984, -0.019123828038573265, 0.014624535106122494, 0.011105574667453766, 0.04652928560972214, -0.022313572466373444, 0.016329145058989525, -0.008245048113167286, -0.033858101814985275, 0.015275652520358562, 0.016051139682531357, 0.02412792108952999, -0.01613893173635006, -0.03163406252861023, -0.06174641102552414, 0.018743401393294334, -0.020777227357029915, -0.03795501962304115, 0.016036508604884148, -0.004499293863773346, 0.04155445471405983, 0.012971135787665844, -0.09171243757009506, 0.02250378578901291, -0.019533520564436913, 0.013878310099244118, -0.030843941494822502, -0.00794509518891573, 0.06876970082521439, -0.0012290754821151495, -0.04664634168148041, -0.046324439346790314, -0.0130223473533988, -0.0003241869271732867, -0.020235849544405937, 0.002410597400739789, -0.0196798387914896, 0.05103589594364166, 0.023191483691334724, -0.009474122896790504, 0.028371158987283707, -0.03596508875489235, -0.011156786233186722, -0.02095280960202217, -0.002304516499862075, 0.026088589802384377, -0.0633266493678093, 0.008215784095227718, 0.015041542239487171, -0.05530839413404465, 0.004455398302525282, 0.05261613428592682, 0.01180790364742279, 0.02311832457780838, 0.021903879940509796, -0.0009913078974932432, 0.023454856127500534, 0.034472640603780746, 0.003268389729782939, -0.010754410177469254, 0.04635370150208473, 0.07298366725444794, 0.01751432567834854, -0.029702655971050262, 0.03611140698194504, 0.010103292763233185, 0.07228134572505951, -0.00314584793522954, 0.002401452511548996, -0.021245447918772697, -0.011376263573765755, 0.014156315475702286, 0.013402774930000305, 0.017967913299798965, -0.02161124348640442, -0.0028495530132204294, 0.01188837829977274, 0.04310543090105057, -0.00871326681226492, -0.029058855026960373, -0.03453116863965988, 0.018977509811520576, -0.08480620384216309, -0.0002622301981318742, 0.03403368592262268, 0.04494904354214668, -0.007520771119743586, 3.7751316995127127e-05, 0.052791718393564224, -0.038569558411836624, 0.0383647121489048, -0.026205644011497498, 0.0020265113562345505, 0.010037449188530445, 0.04813878983259201, -0.01764601096510887, 0.004707797896116972, -0.04535873606801033, -0.06356076151132584, -0.01701684296131134, -0.05873224884271622, 0.020616278052330017, 0.029761184006929398, -0.033858101814985275, -0.010352034121751785, 0.028166312724351883, 0.00972286518663168, 0.04626591131091118, 0.03160479664802551, -0.011778639629483223, 0.00654043722897768, 0.028897905722260475, 0.008874217048287392, -0.023015901446342468, -0.010117924772202969, 0.011734744533896446, -0.04252015799283981, -0.0011156785767525434, 0.031224370002746582, -0.015787767246365547, 0.004535873886197805, -0.03192669898271561, 0.012663866393268108, 0.032102279365062714, -0.029175909236073494, 0.03979863226413727, 0.0044151609763503075, 0.03833544999361038, -0.0014458097284659743, 0.007059867959469557, -0.07438832521438599, 0.007217160426080227, 0.05334772914648056, -0.036023616790771484, 0.01404657680541277, 0.04114476218819618, -0.04304690286517143, -0.0039030462503433228, -0.004129840061068535, 0.03532128781080246, -0.015041542239487171, 0.0022331862710416317, -0.002408768516033888, -0.017719171941280365, -0.039447467774152756, -0.0038115971256047487, 0.0035518817603588104, -0.016592519357800484, -0.03815986588597298, 0.031165841966867447, 0.04143740236759186, 0.02513751946389675, -0.07608561962842941, -0.05665452405810356, -0.017748434096574783, 0.03760385513305664, 0.026907972991466522, -0.025122888386249542, -0.05606925114989281, 0.00048559452989138663, 0.024844883009791374, 0.030902467668056488, -0.07907052338123322, 0.011646953411400318, -0.010183768346905708, 0.01403926033526659, -0.036667417734861374, -0.021772194653749466, -0.02363043837249279, 0.008230416104197502, 0.024347400292754173, -0.03760385513305664, 0.000373112183297053, -0.02771272510290146, 0.036404043436050415, 0.021289343014359474, 0.00037128321127966046, -0.01932867430150509, -0.018465396016836166, 0.04992387443780899, -0.016548622399568558, -0.0061417194083333015, -0.02032363973557949, 0.017119266092777252, -0.02121618390083313, -0.002280739601701498, 0.008420630358159542, -0.018084967508912086, 0.044539354741573334, 0.007352504879236221, -0.007630510255694389, -0.10646134614944458, -0.001123909023590386, -0.09218066185712814, -0.025503315031528473, -0.0020027344580739737, -0.0719301775097847, -0.018860455602407455, -0.0020301693584769964, -0.007586614694446325, -0.029892871156334877, -0.01282481662929058, 0.0004675333620980382, 0.04688045009970665, 0.0059771109372377396, -0.0073890844359993935, 0.038920722901821136, 0.033331356942653656, -0.02225504443049431, 0.0021234473679214716, 0.027771253138780594, 0.010271559469401836, -0.014631850644946098, 0.022079462185502052, -0.028941800817847252, 0.0067343092523515224, 0.029190542176365852, 0.021157655864953995, -0.03239491581916809, 0.008413313888013363, 0.02603006176650524, -0.018275180831551552, 0.02440592646598816, 0.016621781513094902, -0.010125240311026573, -0.044012606143951416, 0.010578827932476997, 0.020426062867045403, 0.007586614694446325, -0.026205644011497498, 0.0066648079082369804, 0.03549686819314957, 0.0497775562107563, 0.016841260716319084, 0.004660244565457106, 0.004331027623265982, -0.03371178358793259, 0.024698564782738686, -0.02109912782907486, -0.01354177761822939, 0.0028477238956838846, 0.00818652007728815, -0.05121147632598877, 0.0066830976866185665, -0.006174641195684671, 0.015582920983433723, 0.02857600338757038, 0.02781514823436737, 0.06385339796543121, 0.005424758419394493, -0.019094565883278847, 0.06496541947126389, -0.004060338716953993, -0.005940531380474567, 0.012993083335459232, -0.04003274440765381, 0.004927275702357292, 0.006606280338019133, -0.005808844696730375, 0.018362972885370255, 0.025356996804475784, 0.004960197489708662, 0.0028257761150598526, 0.05928825959563255, 0.08948840200901031, -0.0021014995872974396, -0.008640107698738575, -0.0335654653608799, -0.04404187202453613, -0.012495600618422031, 0.0006273405742831528, -0.004290790297091007, 0.019460361450910568, -0.06279990077018738, 0.003844518680125475, 0.017485061660408974, -0.0317511148750782, -0.013907574117183685, 0.043661441653966904, 0.01880192756652832, 0.006551411002874374, 0.0454757921397686, -0.010527616366744041, 0.011193365789949894, -0.012181015685200691, -0.014148999936878681, -0.02387917973101139, -0.00894737709313631, -0.005739343352615833, -0.018714137375354767, 0.040471699088811874, 0.018728768453001976, -0.022664736956357956, 0.039681579917669296, -0.06139524653553963, 0.038452502340078354, 0.07649531215429306, -0.020235849544405937, -0.04240310192108154, -0.007681721355766058, 0.006858679931610823, -0.01981152594089508, 0.031224370002746582, -0.09305857121944427, -0.006833074148744345, 0.05311361700296402, 0.0029464890249073505, 0.013293036259710789, 0.012971135787665844, 0.0006108797388151288, -0.014156315475702286, -0.014273370616137981, -0.0158755574375391, -0.007085473742336035, -0.03745753690600395, -0.010747094638645649, -0.016168195754289627, 0.06139524653553963, 0.0018820217810571194, -0.030141612514853477, 0.0151293333619833, 0.00319340149872005, -0.026015430688858032, -0.003862808458507061, -0.05961015820503235, -0.022459890693426132, 0.011610373854637146, -0.014119735918939114, -0.07438832521438599, 0.0014622706221416593, 0.03643330931663513, -0.006745283026248217, 0.02121618390083313, 0.0001646083255764097, -0.023410961031913757, 0.02860526740550995, 0.007385426666587591, 0.02415718510746956, 0.028107784688472748, 0.02440592646598816, -0.02935149148106575, 0.0009163196664303541, -0.038423240184783936, -0.0008170974324457347, 0.010600775480270386, -0.05246981605887413, 0.0044151609763503075, -0.010520300827920437, -0.013892942108213902, -0.04307616874575615, -0.026644600555300713, 0.010827569290995598, -0.022430626675486565, -0.0472901426255703, 0.00019318614795338362, -0.021903879940509796, -0.004316396079957485, -0.031253632158041, 0.0050187245942652225, 0.00940096378326416, -0.014119735918939114, 0.0026794576551765203, 0.016929050907492638, 0.05606925114989281, 0.0007073585293255746, 0.010827569290995598, -0.02275252714753151, 0.021025968715548515, -0.07187165319919586, -0.009481439366936684, -0.046061065047979355, -0.018084967508912086, 0.006306327413767576, -0.0262934360653162, 0.0011376263573765755, -0.05399153009057045, -0.007074499968439341, 0.010205715894699097, 0.002551428973674774, 0.0065697007812559605, 0.0018445276655256748, 0.07550034672021866, -0.009708233177661896, -0.1126067191362381, -0.010783674195408821, 0.021552715450525284, -0.01575850322842598, -0.014463583938777447, 0.04061801731586456, -0.0001903283700812608, -0.05943457782268524, 0.014785485342144966, -0.031107313930988312, 0.03312651067972183, 0.010469089262187481, 0.024449821561574936, 0.029058855026960373, -0.034501902759075165, -0.0232353787869215, 0.0030269641429185867, 0.0767294242978096, -0.0036762524396181107, 0.01586092635989189, -0.003127558156847954, 0.0003715118218678981, -0.022459890693426132, 0.0158755574375391, -0.019635943695902824, -0.02999529428780079, 0.03470674902200699, 0.005823476705700159, 0.011595741845667362, 0.023703597486019135, -0.04079360142350197, -0.020557750016450882, -0.001602187636308372, -0.005903951823711395, -0.007974358275532722, 0.020235849544405937, 0.015831662341952324, 0.037925757467746735, 0.01212248858064413, 0.02796146646142006, 0.11336757987737656, 0.08410387486219406, 0.032716818153858185, 0.010651987046003342, 0.06127819046378136, 0.03508717939257622, 0.011251892894506454, 0.041612982749938965, -0.04240310192108154, 0.005475969985127449, -0.009935026988387108, -0.010842201299965382, 0.023030532523989677, -0.021625874564051628, 0.0030214772559702396, 0.023937707766890526, -0.03535054996609688, -0.025225309655070305, 0.011500634253025055, 0.03063909523189068, -0.06110261008143425, 0.00908637885004282, -0.00311292614787817, -0.05794212967157364, -0.053669627755880356, -0.016329145058989525, 0.010688566602766514, 0.010044765658676624, 0.008237731643021107, 0.07315925508737564, 0.018567819148302078, -0.05206012353301048, 0.0002437117655063048, -0.03558466210961342, 0.0459732748568058, 0.02212335728108883, 0.005249176640063524, 0.007092789746820927, 0.017177792266011238, 0.08328449726104736, -0.016168195754289627, -0.021655138581991196, 0.03318503871560097, 0.0026812865398824215, -0.012400493025779724, 0.01187374722212553, 0.04284206032752991, 0.029892871156334877, -0.010110609233379364, 0.054693859070539474, 0.019431097432971, 0.027551773935556412, -0.030551305040717125, -0.050626203417778015, 0.00244534807279706, 0.005695447791367769, 0.03696005418896675, 0.008157256990671158, 0.023688966408371925, 0.01701684296131134, 0.007842672057449818, -0.014200211502611637, -0.003892072243615985, -0.010125240311026573, 0.014997647143900394, 0.043778497725725174, 0.005636920686811209, 0.015612185001373291, 0.010388613678514957, 0.00806214939802885, 0.0022514760494232178, 0.018758032470941544, 0.03783796727657318, -0.027990730479359627, 0.006858679931610823, 0.008149940520524979, -0.005468653980642557, 0.008786425925791264, -0.02033827267587185, -0.029410019516944885, -0.0037201480008661747, -0.011193365789949894, -0.010637355037033558, 0.008596212603151798, -0.05033356696367264, 0.006017348729074001, 0.01022034790366888, 0.019401833415031433, -0.003034279914572835, -0.01105436310172081, -0.029146647080779076, -0.01651936024427414, 0.00616366695612669, -0.03748680278658867, 0.009093695320189, -0.0012089567026123405, -0.047582779079675674, -0.01726558431982994, 0.0303464587777853, -0.0005683559575118124, -0.06519952416419983, -0.003892072243615985, 0.023089060559868813, 0.010198400355875492, -0.016607150435447693, -0.019782261922955513, 0.0009364384459331632, -0.05554250627756119, -0.034004420042037964, -0.007381768431514502, 0.006935497280210257, -0.046324439346790314, 0.03693079203367233, 0.006536779459565878, 0.006309985648840666, -0.0036396728828549385, 0.005622288677841425, -0.0051394375041127205, -0.0018481856677681208, 0.020367536693811417, -0.016665678471326828, -0.03669667989015579, -0.030053820461034775, -0.027112819254398346, -0.010286190547049046, 0.030814677476882935, 0.0013497882755473256, -0.007067183963954449, -0.05121147632598877, 0.024084025993943214, -0.0005633262335322797, 0.014083156362175941, -0.020396800711750984, 0.01855318620800972, -0.0009803340071812272, 0.024947306141257286, 0.0661359652876854, -0.06765767931938171, -0.04073507338762283, 0.018611714243888855, 0.08398682624101639, -0.0017594799865037203, 0.023015901446342468, -0.017455797642469406, 0.005786897148936987, 0.015451233834028244, 0.01689978688955307, -0.028415054082870483, 0.04784615337848663, -0.06601890921592712, 0.009978922083973885, 0.05580587685108185, 0.010147188790142536, 0.06490688771009445, 0.018772663548588753, -0.06256579607725143, -0.02020658552646637, -0.019855421036481857, -0.03213154524564743, -0.010037449188530445, 0.06116113439202309, 0.020250480622053146, -0.01830444484949112, 0.04951418191194534, -0.0016561426455155015, 0.02237210050225258, -0.021303974092006683, -0.03201448917388916, -0.06063438951969147, -0.010366666130721569, 0.008274311199784279, 0.020923545584082603, 0.03192669898271561, -0.017060738056898117, -0.0005459509557113051, -0.016299881041049957, -0.0073890844359993935, 0.020660173147916794, -0.03646257147192955, -0.06707240641117096, -0.0009318660013377666, -0.02057238109409809, -0.04322248697280884, -0.005706421565264463, 0.015407338738441467, 0.0013900258345529437, -0.036901526153087616, 0.015070806257426739, -0.016431568190455437, -0.02351338416337967, 0.07983137667179108, -0.0006396862445399165, -0.022269677370786667, 0.006178298965096474, -0.00470414012670517, -0.015729239210486412, -0.04620738327503204, 0.025503315031528473, -0.04875332489609718, -0.025474052876234055, -0.001649741199798882, -0.0020009055733680725, -0.016826627776026726, 0.03757459297776222, -0.04079360142350197, 0.016665678471326828, -0.024449821561574936, -0.006551411002874374, 0.05814697593450546, -0.006686755921691656, -0.013688095845282078, 0.006372170988470316, 0.019913949072360992, 0.010256927460432053, -0.03295092657208443, 0.028502844274044037, -0.019109196960926056, 0.03382883965969086, 0.03160479664802551, -0.004941907711327076, 0.03549686819314957, 0.0010095976758748293, -0.01448553241789341, 0.026351962238550186, 0.04208120331168175, 0.008537684567272663, 0.0021380791440606117, -0.0027398141101002693, 0.0092180659994483, -0.00650751544162631, -0.011361631564795971, -0.01891898363828659, 0.0009240928338840604, -0.026644600555300713, 0.053933002054691315, 0.028371158987283707, 0.04374923184514046, -0.01919698715209961, -0.02921980619430542, -0.014090471900999546, -0.03060983121395111, 0.004989461041986942, -0.009335121139883995, -0.07830966264009476, -0.005805186927318573, 0.020894283428788185, 0.04916301742196083, -0.016095034778118134, 0.056449681520462036, 0.03049277700483799, 0.02642512135207653, 0.006862338166683912, -0.029029591009020805, 0.025605738162994385, 0.0005610400112345815, 0.007864619605243206, 0.007001340389251709, -0.0019149434519931674, 0.11886915564537048, 0.030404984951019287, -0.0011705480283126235, 0.04889964312314987, -0.027551773935556412, 0.05323067307472229, -0.03300945460796356, 0.02742008864879608, 0.03994495049118996, -0.0018399552209302783, -0.02806388959288597, -0.030463512986898422, -0.003965231589972973, 0.012919924221932888, -0.019153092056512833, -0.01676810160279274, -0.009057115763425827, -0.001569265965372324, -0.03350693732500076, 0.0335654653608799, -0.0029044223483651876, 0.004404187202453613, -0.013263772241771221, 0.04260794818401337, 0.09779928624629974, 0.028429685160517693, 0.022298939526081085, 0.03751606494188309, -0.028868641704320908, 0.02986360713839531, -0.03254123404622078, -0.022547682747244835, 0.009861866943538189, 0.03415073826909065, 0.007480533793568611, 0.004660244565457106, 0.020001739263534546, -0.006913549266755581, -0.013322300277650356, -0.021025968715548515, 0.008230416104197502, 0.009020536206662655, 0.023937707766890526, -0.005651552230119705, 0.01865560933947563, -0.0006808383041061461, 0.002410597400739789, -0.02389381267130375, 0.017865490168333054, 0.009269277565181255, -0.005307703744620085, -0.007261055987328291, -0.017104633152484894, -0.010037449188530445, 0.05337699130177498, -0.005121147725731134, -0.003983521368354559, -0.0027379849925637245, 0.031341422349214554, -0.013768571428954601, 0.001310465158894658, -0.015904821455478668, -0.003906704019755125, -0.02453761361539364, 0.011800587177276611, -9.752185178513173e-06, 0.01589019037783146, -0.018889719620347023, -0.0015299428487196565, -0.029058855026960373, 0.007151316851377487, -0.0021472240332514048, -0.041086237877607346, 0.050509147346019745, 0.07023288309574127, -0.005805186927318573, 0.031575534492731094, 0.004122524056583643, 0.029702655971050262, -0.028546741232275963, 0.013797835446894169, 0.004898012150079012, 0.014778168871998787, 0.01969447173178196, -0.02592763863503933, 0.02667386457324028, -0.009166854433715343, -0.040354643017053604, 0.007096447516232729, 0.007747564930468798, -0.026761654764413834, -0.019533520564436913, 0.06022469699382782, 0.02007489837706089, -0.010110609233379364, 0.016065772622823715, 0.033477675169706345, -0.023849915713071823, -0.019767630845308304, -0.014346529729664326, 0.007359820883721113, 0.027595670893788338, -0.010227663442492485, -0.013944153673946857, -0.06086849793791771, 0.006145377177745104, -0.029395388439297676, -0.036521099507808685, 0.02857600338757038, -0.0534062534570694, -0.0022587920539081097, -0.031107313930988312, 0.04129108414053917, -0.017938649281859398, 0.01701684296131134, 0.0224891547113657, 0.0028495530132204294, -0.03795501962304115, 0.034238532185554504, -0.0269518680870533, 0.054196376353502274, 0.012034697458148003, -0.016051139682531357, 0.05144558846950531, 0.00457611121237278, 0.010761725716292858, -0.03549686819314957, 0.007283003535121679, 0.009254645556211472, 0.036140672862529755, 0.020265113562345505, -0.005805186927318573, 0.019284779205918312, 0.0643216148018837, 0.028883272781968117, 0.023732861503958702, -0.01232733391225338, 0.011749375611543655, -0.009057115763425827, -0.0009048884967342019, -0.02225504443049431, 0.011412843130528927, -0.019489625468850136, 0.022811055183410645, -0.027039660140872, 0.00775488093495369, -0.006156350951641798, 0.020031003281474113, 0.012063960544764996, 0.0002841779787559062, -0.04383702576160431, 0.02986360713839531, 0.02490340918302536, -0.010856833308935165, 0.00852305255830288, -0.03151700645685196, 0.012685814872384071, -0.03391662985086441, -0.015904821455478668, 0.02566426619887352, -0.020001739263534546, 0.009291225112974644, -0.027478614822030067, 0.038540296256542206, 0.023469489067792892, 0.007180580869317055, -0.013563725166022778, -0.014712326228618622, -0.024362031370401382, -0.025503315031528473, -0.04064727947115898, 0.0028422370087355375, 0.015919454395771027, -0.043778497725725174, 0.025444788858294487, -0.010395930148661137, -0.03611140698194504, 0.016358409076929092, -0.014873276464641094, 0.00012619970948435366, -0.03432632237672806, -0.11916179209947586, -0.0255472119897604, 0.05653747171163559, 0.012210279703140259, -0.05276245251297951, 0.041993413120508194, -0.05785433575510979, -0.037018582224845886, 0.012473653070628643, -0.003734779777005315, -0.015158597379922867, -0.06707240641117096, -0.026600703597068787, -0.060809969902038574, -0.01174206007272005, 0.04638296738266945, 0.016929050907492638, -0.016680309548974037, -0.02543015591800213, 0.002213067375123501, 0.023586543276906013, -0.00952533446252346, -0.0013945982791483402, 0.04611959308385849, -0.04658781364560127, 0.014500164426863194, 0.009620442055165768, 0.014500164426863194, -0.06988172233104706, -0.011500634253025055, -0.0002711464767344296, 0.024303503334522247, 0.09235624223947525, -0.008698634803295135, 0.00768903736025095, -0.041612982749938965, 0.04445156082510948, 0.0017018670914694667, -0.005318677518516779, -0.005289413966238499, 0.01739726960659027, -0.012415125034749508, -0.05580587685108185, 0.055835142731666565, 0.017836226150393486, 0.00952533446252346 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\ThingOwner.txt\n\npublic class ThingOwner : ThingOwner, IList, ICollection, IEnumerable, IEnumerable where T : Thing\n{\n\tprivate List innerList = new List();\n\n\tpublic List InnerListForReading => innerList;\n\n\tpublic new T this[int index] => innerList[index];\n\n\tpublic override int Count => innerList.Count;\n\n\tT IList.this[int index]\n\t{\n\t\tget\n\t\t{\n\t\t\treturn innerList[index];\n\t\t}\n\t\tset\n\t\t{\n\t\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow setting individual elements.\");\n\t\t}\n\t}\n\n\tbool ICollection.IsReadOnly => true;\n\n\tpublic ThingOwner()\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, bool oneStackOnly, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner, oneStackOnly, contentsLookMode, removeContentsIfDestroyed)\n\t{\n\t}\n\n\tpublic override void ExposeData()\n\t{\n\t\tbase.ExposeData();\n\t\tScribe_Collections.Look(ref innerList, \"innerList\", true, contentsLookMode);\n\t\tif (Scribe.mode == LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\tint num = innerList.RemoveAll((T x) => x == null || (x is MinifiedThing minifiedThing && minifiedThing.InnerThing == null));\n\t\t\tif (num > 0)\n\t\t\t{\n\t\t\t\tLog.Warning($\"ThingOwner removed {num} invalid entries during PostLoadInit.\");\n\t\t\t}\n\t\t}\n\t\tif (Scribe.mode != LoadSaveMode.LoadingVars && Scribe.mode != LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] != null)\n\t\t\t{\n\t\t\t\tinnerList[i].holdingOwner = this;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic List.Enumerator GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tpublic override int GetCountCanAccept(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (!(item is T))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn base.GetCountCanAccept(item, canMergeWithExistingStacks);\n\t}\n\n\tpublic override int TryAdd(Thing item, int count, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (count <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item?.ToString() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + count + \" of \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tint stackCount = item.stackCount;\n\t\tint num = Mathf.Min(stackCount, count);\n\t\tThing thing = item.SplitOff(num);\n\t\tif (!TryAdd((T)thing, canMergeWithExistingStacks))\n\t\t{\n\t\t\tif (thing != item)\n\t\t\t{\n\t\t\t\tint result = stackCount - item.stackCount - thing.stackCount;\n\t\t\t\titem.TryAbsorbStack(thing, respectStackLimit: false);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn stackCount - item.stackCount;\n\t\t}\n\t\tCompPushable compPushable = item.TryGetComp();\n\t\tif (compPushable != null && owner is Pawn pawn)\n\t\t{\n\t\t\tcompPushable.OnStartedCarrying(pawn);\n\t\t}\n\t\treturn num;\n\t}\n\n\tpublic override bool TryAdd(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (canMergeWithExistingStacks)\n\t\t{\n\t\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t\t{\n\t\t\t\tT val = innerList[i];\n\t\t\t\tif (!val.CanStackWith(item))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint num = Mathf.Min(item.stackCount, val.def.stackLimit - val.stackCount);\n\t\t\t\tif (num > 0)\n\t\t\t\t{\n\t\t\t\t\tThing other = item.SplitOff(num);\n\t\t\t\t\tint stackCount = val.stackCount;\n\t\t\t\t\tval.TryAbsorbStack(other, respectStackLimit: true);\n\t\t\t\t\tif (val.stackCount > stackCount)\n\t\t\t\t\t{\n\t\t\t\t\t\tNotifyAddedAndMergedWith(val, val.stackCount - stackCount);\n\t\t\t\t\t}\n\t\t\t\t\tif (item.Destroyed || item.stackCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Count >= maxStacks)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\titem.holdingOwner = this;\n\t\tinnerList.Add(item2);\n\t\tNotifyAdded(item2);\n\t\treturn true;\n\t}\n\n\tprotected override void NotifyAdded(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemAdded(item as T);\n\t\t}\n\t\tbase.NotifyAdded(item);\n\t}\n\n\tprotected override void NotifyRemoved(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemRemoved(item as T);\n\t\t}\n\t\tbase.NotifyRemoved(item);\n\t}\n\n\tpublic void TryAddRangeOrTransfer(IEnumerable things, bool canMergeWithExistingStacks = true, bool destroyLeftover = false)\n\t{\n\t\tif (things == this)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (things is ThingOwner thingOwner)\n\t\t{\n\t\t\tthingOwner.TryTransferAllToContainer(this, canMergeWithExistingStacks);\n\t\t\tif (destroyLeftover)\n\t\t\t{\n\t\t\t\tthingOwner.ClearAndDestroyContents();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (things is IList list)\n\t\t{\n\t\t\tfor (int i = 0; i < list.Count; i++)\n\t\t\t{\n\t\t\t\tif (!TryAddOrTransfer(list[i], canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t\t{\n\t\t\t\t\tlist[i].Destroy();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tforeach (T thing in things)\n\t\t{\n\t\t\tif (!TryAddOrTransfer(thing, canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t{\n\t\t\t\tthing.Destroy();\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override int IndexOf(Thing item)\n\t{\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn innerList.IndexOf(item2);\n\t}\n\n\tpublic override bool Remove(Thing item)\n\t{\n\t\tif (!Contains(item))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner == this)\n\t\t{\n\t\t\titem.holdingOwner = null;\n\t\t}\n\t\tint index = innerList.LastIndexOf((T)item);\n\t\tinnerList.RemoveAt(index);\n\t\tNotifyRemoved(item);\n\t\treturn true;\n\t}\n\n\tpublic int RemoveAll(Predicate predicate)\n\t{\n\t\tint num = 0;\n\t\tfor (int num2 = innerList.Count - 1; num2 >= 0; num2--)\n\t\t{\n\t\t\tif (predicate(innerList[num2]))\n\t\t\t{\n\t\t\t\tRemove(innerList[num2]);\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n\n\tprotected override Thing GetAt(int index)\n\t{\n\t\treturn innerList[index];\n\t}\n\n\tpublic void GetThingsOfType(List list) where J : Thing\n\t{\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] is J item)\n\t\t\t{\n\t\t\t\tlist.Add(item);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic int TryTransferToContainer(Thing item, ThingOwner otherContainer, int stackCount, out T resultingTransferredItem, bool canMergeWithExistingStacks = true)\n\t{\n\t\tThing resultingTransferredItem2;\n\t\tint result = TryTransferToContainer(item, otherContainer, stackCount, out resultingTransferredItem2, canMergeWithExistingStacks);\n\t\tresultingTransferredItem = (T)resultingTransferredItem2;\n\t\treturn result;\n\t}\n\n\tpublic new T Take(Thing thing, int count)\n\t{\n\t\treturn (T)base.Take(thing, count);\n\t}\n\n\tpublic new T Take(Thing thing)\n\t{\n\t\treturn (T)base.Take(thing);\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, int count, out T resultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing resultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, count, out resultingThing2, placedAction2, nearPlaceValidator);\n\t\tresultingThing = (T)resultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, mode, out lastResultingThing2, placedAction2, nearPlaceValidator);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, out lastResultingThing2, placedAction2, nearPlaceValidator, playDropSound: true);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tint IList.IndexOf(T item)\n\t{\n\t\treturn innerList.IndexOf(item);\n\t}\n\n\tvoid IList.Insert(int index, T item)\n\t{\n\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow inserting individual elements at any position.\");\n\t}\n\n\tvoid ICollection.Add(T item)\n\t{\n\t\tTryAdd(item);\n\t}\n\n\tvoid ICollection.CopyTo(T[] array, int arrayIndex)\n\t{\n\t\tinnerList.CopyTo(array, arrayIndex);\n\t}\n\n\tbool ICollection.Contains(T item)\n\t{\n\t\treturn innerList.Contains(item);\n\t}\n\n\tbool ICollection.Remove(T item)\n\t{\n\t\treturn Remove(item);\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n}\n\n", "timestamp": "2025-08-24 20:53:10,931" }, "ThingOwner": { "keywords": [ "ThingOwner" ], "question": "public abstract class ThingOwner", "embedding": [ -0.010147521272301674, 0.008173150010406971, 0.036745648831129074, 0.00934287253767252, -0.07223962247371674, 0.032156169414520264, 0.004172255285084248, 0.06139175966382027, 0.051437947899103165, 0.09852483123540878, -0.02407987415790558, -0.06705410778522491, -0.01253166701644659, -0.07605426013469696, 0.061272550374269485, -0.03811653330922127, 0.02048875391483307, -0.07551782578229904, -0.030144546180963516, -0.022112954407930374, 0.02022053860127926, 0.06878261268138885, -0.003967368043959141, 0.023245424032211304, 0.023632846772670746, -0.019639402627944946, -0.016942337155342102, 0.048576973378658295, -0.02101028710603714, -0.01197288278490305, 0.002253762912005186, 0.015131876803934574, -0.03316942974925041, -0.003548279870301485, -0.010996873490512371, 0.026940850540995598, -0.05000746250152588, 0.023588145151734352, 0.011063927784562111, 0.0006235100445337594, -0.009126808494329453, -0.008173150010406971, -0.009581286460161209, 0.001336425542831421, -0.04184176027774811, 0.019997024908661842, 0.02627030946314335, -0.030472366139292717, -0.035136353224515915, 0.026568327099084854, -0.0013932352885603905, -0.005956639535725117, -0.03683505579829216, 0.02266428805887699, -0.005148265045136213, -0.0006379453116096556, 0.02913128398358822, -0.023111315444111824, -0.020637763664126396, 0.03710327297449112, 0.00791238434612751, 0.0011613398091867566, -0.02805841900408268, -0.03644763305783272, 0.0452093668282032, -0.0007413203711621463, 0.04553718864917755, 0.025614667683839798, 0.00575175229460001, -0.037133075296878815, -0.014178218320012093, 0.028371337801218033, -0.013157505542039871, 0.011518405750393867, -0.03930860757827759, 0.032543592154979706, 0.009007601998746395, 0.017717184498906136, -0.01922217756509781, -0.023111315444111824, -0.00934287253767252, -0.03203696012496948, -0.010318881832063198, 0.02539115399122238, 0.08159739524126053, 0.003002533921971917, 0.04860677570104599, -0.07390852272510529, -0.01306064985692501, 0.10996873676776886, -0.045984216034412384, 0.0006505179335363209, 0.014640146866440773, 0.02333482913672924, -0.014945615082979202, 0.09131278842687607, -0.05936523526906967, 0.0036227842792868614, -0.0176277793943882, 0.028416039422154427, -0.01153330598026514, -0.07700791209936142, -0.020831475034356117, 0.03948741778731346, 0.011808972805738449, 0.04661005362868309, -0.026046795770525932, -0.008359411731362343, -0.010840414091944695, 0.010244376957416534, -0.0012898602290078998, -0.016107887029647827, -0.0038630615454167128, 0.04154374450445175, -0.04357026889920235, 0.047444503754377365, -0.04208017513155937, 0.017136048525571823, -0.003904039040207863, -0.0008572681108489633, 0.04115632176399231, -0.020116232335567474, 0.007625542115420103, -0.023707352578639984, -0.024318289011716843, 0.006474446505308151, 0.0186112392693758, -0.003257711883634329, -0.006239756941795349, -0.008016690611839294, -0.05158695951104164, -0.003412308869883418, 0.0029503805562853813, -0.035017143934965134, -0.005889585707336664, 0.013440622948110104, 0.07617346197366714, 0.007599465548992157, -0.1050812378525734, 0.00821040291339159, -0.03954702243208885, 0.006314261816442013, -0.06282224506139755, 0.00560274301096797, 0.08946508169174194, -0.0013625022256746888, -0.042646411806344986, -0.03158993273973465, -0.02640441618859768, 0.009804800152778625, -0.014506038278341293, -0.009655791334807873, -0.003330353880301118, 0.04622263088822365, 0.01083296351134777, -0.03153033182024956, 0.016271796077489853, -0.041454337537288666, -0.005341976881027222, -0.029235590249300003, 0.008292357437312603, 0.031679339706897736, -0.060527507215738297, 2.5378116333740763e-05, -0.0019371185917407274, -0.033407844603061676, -0.011883477680385113, 0.030040239915251732, -0.005435107741504908, 0.02539115399122238, 0.047653116285800934, 0.007223217282444239, 0.020458953455090523, 0.02632991224527359, 0.026225605979561806, -0.013418271206319332, 0.04446432366967201, 0.053613483905792236, 0.02002682536840439, -0.04568619653582573, 0.04497095197439194, 0.011324693448841572, 0.11580988764762878, 0.0018104608170688152, 0.005021607503294945, -0.02632991224527359, -0.014118614606559277, 0.03236478194594383, 0.0033117278944700956, 0.0372522808611393, -0.02247057668864727, 0.028907770290970802, 0.0239308662712574, 0.05206378921866417, -0.05605723336338997, -0.017597977072000504, -0.016599616035819054, 0.041931167244911194, -0.04306363686919212, -0.010683953762054443, 0.006005067843943834, 0.03078528493642807, 0.002898227423429489, 0.015184029936790466, 0.057755935937166214, -0.03376546874642372, 0.021457314491271973, -0.02706005610525608, 0.027432579547166824, 0.012256000190973282, 0.03963642567396164, -0.010356133803725243, 0.01213679276406765, -0.027179263532161713, -0.06011028215289116, -0.009223665110766888, -0.03909999504685402, 0.016137687489390373, -0.003445836016908288, -0.018000302836298943, -0.01220384705811739, 0.008597826585173607, -0.0037792439106851816, 0.0292653925716877, 0.03749069571495056, -0.010751008056104183, 0.013693938963115215, 0.04821935296058655, 0.016644319519400597, -0.03236478194594383, 0.0037270907778292894, 0.03936821222305298, -0.0671137124300003, 0.010147521272301674, -0.0025368803180754185, -0.01642080582678318, 0.005368053913116455, -0.04362986981868744, 0.028892869129776955, 0.035464171320199966, -0.021859638392925262, 0.029742220416665077, -0.010654152370989323, 0.03531516343355179, -0.01601848006248474, 0.030904492363333702, -0.07164358347654343, 0.011697215959429741, 0.022857999429106712, -0.032871413975954056, 0.009767548181116581, 0.0419013649225235, -0.017523473128676414, -0.011145882308483124, -0.009037403389811516, 0.059544045478105545, -0.0111384317278862, 0.018432429060339928, -0.02327522449195385, -0.02387126162648201, -0.033944278955459595, 0.029548509046435356, 0.011630162596702576, -0.02832663431763649, -0.019788412377238274, 0.023781856521964073, 0.024959027767181396, 0.02312621660530567, -0.0651467889547348, -0.061332155019044876, -0.022843098267912865, 0.02866935543715954, 0.020980484783649445, -0.02998063527047634, -0.04109671711921692, 0.011384297162294388, 0.002916853642091155, 0.024154379963874817, -0.08821339905261993, -0.013053199276328087, -0.00920876394957304, 0.020444052293896675, -0.029548509046435356, -0.029280293732881546, -0.02148711495101452, 0.02679184079170227, 0.04342125728726387, -0.03111310489475727, -0.0005126845207996666, -0.0018048729980364442, 0.031083302572369576, -0.012986144982278347, -0.0259275883436203, -0.02135300822556019, -0.009246015921235085, 0.03403368219733238, -0.005394130479544401, 0.01076590921729803, -0.026419317349791527, 0.019594699144363403, -0.00011193146201549098, 0.0025033531710505486, -0.005144540220499039, -0.023111315444111824, 0.04753391072154045, -0.0018700645305216312, -0.013470425270497799, -0.09018032252788544, -0.007763375528156757, -0.08964388817548752, -0.007375951856374741, -0.008754285983741283, -0.03933840990066528, 0.0015673896996304393, -0.002305916277691722, 0.0019650578033179045, -0.020190736278891563, -0.0037159151397645473, -0.004261660855263472, 0.03385487198829651, 0.021785134449601173, 0.015087174251675606, 0.029816726222634315, 0.01816421188414097, -0.03695426136255264, -0.015161678194999695, 0.021621223539114, 0.01676352694630623, -0.016778428107500076, 0.026881245896220207, -0.00960363820195198, 0.004984355065971613, 0.01353002805262804, 0.018790051341056824, 0.007629266940057278, -0.00455595413222909, 0.021636124700307846, -0.005215319339185953, 0.04109671711921692, 0.007070483174175024, -0.01847713068127632, -0.018402626737952232, 0.03385487198829651, 0.01306064985692501, -0.008255105465650558, 0.009335421957075596, -0.01127254031598568, 0.04899419844150543, 0.03051706776022911, 0.013701388612389565, 0.018849654123187065, -0.00218670885078609, -0.03918939828872681, 0.03263299912214279, -0.015243633650243282, -0.02120399847626686, 0.017985401675105095, -0.0003287513682153076, -0.01901356503367424, 0.013172406703233719, -0.003952466882765293, 0.04273581504821777, 0.028013715520501137, 0.03549397364258766, 0.03430189937353134, -0.009156610816717148, -0.012710478156805038, 0.041066914796829224, -0.02413947880268097, -0.0037643429823219776, 0.011585459113121033, -0.050692904740571976, -0.01820891536772251, 0.021919243037700653, -0.00987930502742529, 0.0020209362264722586, 0.013850398361682892, -0.04801074042916298, 0.007204591296613216, 0.04005365073680878, 0.08010730147361755, 0.01682312972843647, -0.020235439762473106, -0.052421409636735916, -0.028967373073101044, -0.023617945611476898, 0.022843098267912865, -0.01350022666156292, 0.020861277356743813, -0.07885562628507614, 0.006012517958879471, 0.016733724623918533, -0.028147824108600616, -0.00997616071254015, 0.03176874667406082, 0.016331400722265244, 0.0004609969910234213, 0.04747430607676506, -0.01289673987776041, 0.02805841900408268, 0.0005448146257549524, -0.022023549303412437, -0.04240799695253372, -0.00024353679327759892, -0.0009955671848729253, -0.0285799503326416, 0.024437496438622475, 0.015735363587737083, -0.010326332412660122, 0.03981523960828781, -0.06669648736715317, 0.023960666730999947, 0.08892864733934402, -0.035344965755939484, -0.06538520008325577, -0.002847936935722828, 0.029429301619529724, -0.016808228567242622, 0.05906721577048302, -0.07271645218133926, 0.01734466291964054, 0.06532560288906097, 0.01636120118200779, -0.0398748405277729, 0.006597378756850958, 0.07599465548992157, -0.0332290343940258, -0.021963944658637047, -0.01353002805262804, 0.023111315444111824, -0.01807480677962303, -0.01350022666156292, -0.045119963586330414, 0.0691402330994606, 0.0018616827437654138, -0.04440471902489662, 0.0009601775673218071, 0.010251827538013458, -0.026210704818367958, -0.001405342249199748, -0.07742514461278915, -0.023156017065048218, -0.0013336316915228963, 0.01655491441488266, -0.07855761051177979, -0.006504248362034559, 0.011920729652047157, -0.005118463188409805, -0.0005443489644676447, -0.0055021620355546474, -0.006548950914293528, 0.017702283337712288, 0.018402626737952232, 0.02632991224527359, 0.015161678194999695, 0.04082849994301796, -0.02406497299671173, 0.0020414250902831554, -0.0139621552079916, -0.002460513263940811, 0.003315452951937914, -0.045179568231105804, -0.006884221453219652, 0.011242737993597984, -0.012151693925261497, -0.03352705389261246, -0.006921473890542984, -0.0008307258831337094, -0.01279988419264555, -0.057547323405742645, 0.0024810018949210644, 0.00021711095178034157, 0.01160036027431488, -0.017538374289870262, 0.018387725576758385, 0.03468932583928108, -0.01333631668239832, 0.008188051171600819, 0.012293253093957901, 0.007822979241609573, 0.010512594133615494, -0.008314709179103374, -0.02135300822556019, 0.0285799503326416, -0.08600806444883347, -0.008024141192436218, -0.05996127054095268, -0.003941291477531195, 0.023483838886022568, -0.03558338060975075, 0.00025867053773254156, -0.04070929437875748, -0.0019538821652531624, 0.0008302602218464017, -0.0031664439011365175, -0.010713756084442139, -0.014625245705246925, 0.06687529385089874, -0.010490242391824722, -0.08761736750602722, -0.024556703865528107, 0.025823282077908516, -0.02667263336479664, 0.0069624511525034904, -0.0013205934083089232, 0.00807629432529211, -0.06139175966382027, -0.022649386897683144, -0.0018039416754618287, -0.010981972329318523, 0.00781552866101265, 0.017791690304875374, 0.04792133346199989, -0.04735510051250458, -0.018983762711286545, 0.013373568654060364, 0.08392193913459778, 0.002819997724145651, 0.033080026507377625, -0.0037326784804463387, 0.00911190826445818, -0.04488154873251915, -0.030934294685721397, -0.02068246714770794, -0.040798697620630264, 0.03671584650874138, -0.0032204596791416407, -0.0049433778040111065, 0.05534198880195618, -0.057487718760967255, -0.013798245228827, 0.00460438197478652, 0.030397862195968628, -0.045984216034412384, 0.008165700361132622, 0.020697366446256638, 0.06508718430995941, 0.003429072443395853, 0.025242146104574203, 0.08356431871652603, 0.07814038544893265, 0.04210997745394707, 0.010877666063606739, 0.045835208147764206, 0.05480555444955826, -0.019505294039845467, 0.03471912443637848, -0.02074206992983818, 0.01701684109866619, -0.013321415521204472, 0.005755477584898472, 0.015012669377028942, -0.00830725859850645, 0.00286656292155385, 0.011153332889080048, -0.0030137095600366592, -0.026583228260278702, 0.0305766724050045, 0.019132772460579872, -0.04818955063819885, -0.020265240222215652, -0.007986889220774174, -0.0399046428501606, -0.025108037516474724, 0.007074207998812199, 0.016987040638923645, 0.02241097204387188, -0.013112802989780903, 0.06705410778522491, 0.014140966348350048, -0.029220689088106155, 0.01774698682129383, -0.016778428107500076, 0.03868276998400688, 0.03960662707686424, -0.0012554018758237362, -0.0071375370025634766, 0.031083302572369576, 0.08290867507457733, -0.02421398274600506, -0.01090001780539751, 0.028445841744542122, 0.024586506187915802, -0.012263450771570206, 0.008575474843382835, 0.01701684109866619, 0.017836391925811768, -0.034599918872117996, 0.05942483991384506, -0.005025332793593407, 0.030040239915251732, -0.00218670885078609, -0.04315304383635521, -0.008337060920894146, -0.007148712873458862, 0.02354344166815281, 0.008925646543502808, 0.01981821283698082, 0.005111013073474169, 0.033407844603061676, 0.005572941154241562, -0.0007161751273088157, -0.013917452655732632, 0.012419910170137882, 0.04643124341964722, -0.01688273437321186, 0.013939803466200829, 0.01189837884157896, 0.006623455788940191, 0.0003471446980256587, 0.039070192724466324, 0.032483987510204315, -0.018298320472240448, 0.007681420538574457, 0.018909258767962456, 0.007618091534823179, 0.02181493490934372, 0.00042164925253018737, -0.011548207141458988, -0.011615261435508728, -0.018790051341056824, -0.01728505827486515, 0.0004279355925973505, -0.027834905311465263, -0.0007329386426135898, -0.000144818244734779, 0.02758158929646015, 0.007372226566076279, -0.01935628615319729, -0.0004281683941371739, -0.0558486208319664, 0.00884369108825922, -0.030934294685721397, 0.009953809902071953, 0.00860527716577053, -0.032603196799755096, -0.012159144505858421, 0.01603338122367859, -0.0007497021579183638, -0.05659366399049759, 0.003632097505033016, 0.018834752961993217, 0.024020271375775337, -0.011615261435508728, -0.010937269777059555, -0.007942186668515205, -0.02732827328145504, -0.02506333403289318, 0.015973778441548347, -0.0035799441393464804, -0.04801074042916298, 0.032603196799755096, 0.016659220680594444, 0.0004973179311491549, 0.007115185726433992, 0.02254508063197136, -0.004459097981452942, -0.012360306456685066, 0.016256894916296005, -0.01512442622333765, -0.041513942182064056, -0.0625242292881012, -0.021978845819830894, -0.015273435041308403, 0.03915959969162941, 0.01326926238834858, -0.02300700917840004, -0.03862316533923149, 0.008120996877551079, -0.017657581716775894, 0.0242586862295866, -0.0005462115514092147, 0.008724484592676163, -0.0014416632475331426, 0.03032335638999939, 0.05638505145907402, -0.08678291738033295, -0.04929221794009209, -0.004544778261333704, 0.06163017451763153, -0.0011073240311816335, 0.03609000891447067, -0.023096414282917976, 0.013887650333344936, 0.026896147057414055, 0.023617945611476898, 0.0016065046656876802, 0.043838486075401306, -0.07831919938325882, 0.007025780156254768, 0.04440471902489662, -0.008411564864218235, 0.0531962588429451, 0.021755332127213478, -0.05638505145907402, -0.018864555284380913, -0.02168082818388939, -0.02886306680738926, -0.01621219329535961, 0.03647743538022041, 0.004839071538299322, -0.02066756598651409, 0.07086873799562454, 0.0012498140567913651, 0.009223665110766888, -0.020846376195549965, -0.016793327406048775, -0.04333185404539108, -0.011287441477179527, -0.011026674881577492, 0.007293996401131153, 0.007234393153339624, 0.0032372232526540756, -0.0005285167135298252, -0.02381165884435177, -0.0037662056274712086, 0.029935933649539948, -0.04181196168065071, -0.03662644326686859, -0.005606468301266432, -0.02840113826096058, -0.012285802513360977, 0.005543139297515154, 0.02878856286406517, 0.025301748886704445, -0.0684845969080925, 0.01749367080628872, -0.023617945611476898, 0.0159588772803545, 0.0751006007194519, -0.01273282989859581, -0.045656394213438034, -0.00475339125841856, -0.01269557699561119, 0.0020246615167707205, -0.053613483905792236, 0.008217853493988514, -0.04294443130493164, -0.026344813406467438, 0.010922368615865707, -0.002285427413880825, -0.021695729345083237, 0.05221279710531235, -0.03150052949786186, 0.03564298152923584, -0.012069739401340485, -0.018924158066511154, 0.04362986981868744, -0.010296530090272427, -0.007644168101251125, 0.011101179756224155, 0.025614667683839798, -0.04196096956729889, -0.020369546487927437, -0.003484950866550207, -0.019982123747467995, 0.021725529804825783, 0.03519595414400101, -0.023960666730999947, 0.046848468482494354, -0.002313366625458002, 0.00967069249600172, 0.014997768215835094, 0.03445091098546982, 0.007644168101251125, 0.012263450771570206, 0.030546870082616806, -0.002363657345995307, -0.014647596515715122, -0.028341535478830338, -0.013686488382518291, -0.007621816825121641, -0.029623012989759445, 0.07277605682611465, 0.02254508063197136, 0.03078528493642807, -0.006206229794770479, -0.020369546487927437, -0.024109676480293274, -0.015318137593567371, 0.02154671959578991, 0.024690812453627586, -0.04416630417108536, -0.00037997326580807567, 0.02014603279531002, 0.024512000381946564, -0.03701386600732803, 0.04559679329395294, 0.014342128299176693, 0.019117871299386024, 0.011630162596702576, -0.03957682475447655, 0.011637612245976925, 0.015407543629407883, 0.0007632061024196446, -0.004131278023123741, -0.014573092572391033, 0.11390257626771927, 0.02606169506907463, -0.006466995924711227, 0.03617941588163376, -0.0531962588429451, 0.06633885949850082, -0.011287441477179527, 0.024288486689329147, 0.025093136355280876, -0.0005713568534702063, -0.0399046428501606, -0.03495753929018974, -0.027238868176937103, 0.014699749648571014, -0.0016037106979638338, 0.0038630615454167128, -0.005330801475793123, 0.008828790858387947, -0.03889138251543045, 0.033020421862602234, -0.0024381617549806833, -0.011279990896582603, 0.01289673987776041, 0.029161086305975914, 0.06878261268138885, 0.028565049171447754, 0.0018812401685863733, 0.013537478633224964, 0.020265240222215652, 0.033676061779260635, -0.03838475048542023, -0.028311733156442642, -0.0009611088316887617, 0.03650723397731781, -0.010840414091944695, -0.019460592418909073, 0.03293101489543915, 0.0017750711413100362, -0.0024251234717667103, -0.0058448826894164085, 0.017985401675105095, 0.018536735326051712, -0.006567577365785837, -0.014774254523217678, 0.016391003504395485, -0.0001331769017269835, -0.0013261812273412943, -0.02074206992983818, 0.03439130634069443, 0.012069739401340485, 0.0029969459865242243, -0.02168082818388939, -0.03164953738451004, -0.020309943705797195, 0.03111310489475727, -0.010162422433495522, -0.022232161834836006, -0.012069739401340485, 0.016718823462724686, -0.012121892534196377, -0.02101028710603714, 0.005010431632399559, 0.008798988536000252, -0.024765316396951675, 0.0166145171970129, 0.00586723443120718, 0.014066461473703384, -0.0399046428501606, 0.02671733684837818, -0.02200864814221859, 0.003483088221400976, -0.0037811065558344126, -0.03629862144589424, 0.038593363016843796, 0.06028909236192703, -0.02233646810054779, 0.027432579547166824, -0.014111164025962353, 0.008351961150765419, -0.027149463072419167, 0.00950678251683712, 3.620456118369475e-05, -0.011361945420503616, 0.01203993707895279, -0.014237822033464909, 0.04488154873251915, -0.00904485397040844, -0.017240354791283607, -0.0013317690463736653, -0.0008060462423600256, -0.018268518149852753, -0.004492625128477812, 0.045447781682014465, 0.011011774651706219, -0.014386830851435661, 0.016048282384872437, 0.03209656476974487, -0.021129494532942772, -0.037669505923986435, -0.04127552732825279, -0.0015115112764760852, 0.0186112392693758, -0.01782149076461792, 0.02598719112575054, -0.05844137817621231, 0.035344965755939484, -0.020175835117697716, -0.027030255645513535, 0.011913279071450233, -0.047504108399152756, 0.006128000095486641, -0.04908360540866852, 0.017657581716775894, -0.01747876964509487, 0.023379530757665634, 0.02612129971385002, 0.0006998772150836885, -0.036596640944480896, 0.025942487642169, -0.045179568231105804, 0.05963345244526863, 0.01868574507534504, -0.02354344166815281, 0.0458948090672493, 0.03358665481209755, -0.004224408883601427, -0.027238868176937103, 0.004846521653234959, 0.01655491441488266, 0.00465280981734395, 0.03704366832971573, -0.0055692158639431, 0.01456564199179411, 0.04881538823246956, 0.03129191696643829, 0.04592461138963699, 0.01399195659905672, -0.004976904951035976, -0.019505294039845467, 0.006090748123824596, -0.0159588772803545, 0.002218373352661729, -0.021770233288407326, 0.015079723671078682, -0.01622709445655346, 0.0020749520044773817, 0.0026542250998318195, 0.007338699419051409, 0.019862916320562363, 0.0038220840506255627, -0.0372224785387516, 0.03814633563160896, -0.0025927587412297726, -0.02267918922007084, 0.007215766701847315, -0.02533155120909214, -0.015251084230840206, -0.049202810972929, -0.027358075603842735, 0.03072568215429783, -0.03811653330922127, 0.0012991733383387327, -0.03871257230639458, 0.04824915528297424, 0.04249740391969681, -0.010087917558848858, -0.005151990335434675, -0.005051409360021353, -0.03489793837070465, -0.03051706776022911, -0.038742370903491974, 1.307467755395919e-05, 0.006884221453219652, -0.017702283337712288, 0.038742370903491974, -0.018179113045334816, -0.033825069665908813, 0.004429296124726534, -0.03847415745258331, 0.010944720357656479, -0.028758760541677475, -0.14519448578357697, -0.01603338122367859, 0.057219505310058594, 0.006943825166672468, -0.03364625945687294, 0.04148413985967636, -0.028237229213118553, -0.04911340773105621, 0.018462231382727623, -0.02320072054862976, 0.00691402330994606, -0.09661751985549927, -0.01402920950204134, -0.06082552298903465, 0.006578752771019936, 0.020905980840325356, 0.0030230225529521704, -0.04446432366967201, -0.02446729876101017, -0.004816719796508551, 0.031232312321662903, -0.023349730297923088, -0.015809867531061172, 0.04136493429541588, -0.060676515102386475, 0.005111013073474169, 0.005114738363772631, 0.0018654079176485538, -0.05400090664625168, 0.007986889220774174, -0.0014099988620728254, -8.89398215804249e-05, 0.0745045617222786, -0.0046751610934734344, 0.02972732111811638, -0.03954702243208885, 0.041066914796829224, -0.004582030698657036, -0.0030993898399174213, 0.0020954408682882786, -0.012047387659549713, -0.01528833620250225, -0.03802713006734848, 0.06770974397659302, -0.01855163648724556, 0.009849502705037594 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\ThingOwner.txt\n\npublic class ThingOwner : ThingOwner, IList, ICollection, IEnumerable, IEnumerable where T : Thing\n{\n\tprivate List innerList = new List();\n\n\tpublic List InnerListForReading => innerList;\n\n\tpublic new T this[int index] => innerList[index];\n\n\tpublic override int Count => innerList.Count;\n\n\tT IList.this[int index]\n\t{\n\t\tget\n\t\t{\n\t\t\treturn innerList[index];\n\t\t}\n\t\tset\n\t\t{\n\t\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow setting individual elements.\");\n\t\t}\n\t}\n\n\tbool ICollection.IsReadOnly => true;\n\n\tpublic ThingOwner()\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, bool oneStackOnly, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner, oneStackOnly, contentsLookMode, removeContentsIfDestroyed)\n\t{\n\t}\n\n\tpublic override void ExposeData()\n\t{\n\t\tbase.ExposeData();\n\t\tScribe_Collections.Look(ref innerList, \"innerList\", true, contentsLookMode);\n\t\tif (Scribe.mode == LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\tint num = innerList.RemoveAll((T x) => x == null || (x is MinifiedThing minifiedThing && minifiedThing.InnerThing == null));\n\t\t\tif (num > 0)\n\t\t\t{\n\t\t\t\tLog.Warning($\"ThingOwner removed {num} invalid entries during PostLoadInit.\");\n\t\t\t}\n\t\t}\n\t\tif (Scribe.mode != LoadSaveMode.LoadingVars && Scribe.mode != LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] != null)\n\t\t\t{\n\t\t\t\tinnerList[i].holdingOwner = this;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic List.Enumerator GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tpublic override int GetCountCanAccept(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (!(item is T))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn base.GetCountCanAccept(item, canMergeWithExistingStacks);\n\t}\n\n\tpublic override int TryAdd(Thing item, int count, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (count <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item?.ToString() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + count + \" of \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tint stackCount = item.stackCount;\n\t\tint num = Mathf.Min(stackCount, count);\n\t\tThing thing = item.SplitOff(num);\n\t\tif (!TryAdd((T)thing, canMergeWithExistingStacks))\n\t\t{\n\t\t\tif (thing != item)\n\t\t\t{\n\t\t\t\tint result = stackCount - item.stackCount - thing.stackCount;\n\t\t\t\titem.TryAbsorbStack(thing, respectStackLimit: false);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn stackCount - item.stackCount;\n\t\t}\n\t\tCompPushable compPushable = item.TryGetComp();\n\t\tif (compPushable != null && owner is Pawn pawn)\n\t\t{\n\t\t\tcompPushable.OnStartedCarrying(pawn);\n\t\t}\n\t\treturn num;\n\t}\n\n\tpublic override bool TryAdd(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (canMergeWithExistingStacks)\n\t\t{\n\t\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t\t{\n\t\t\t\tT val = innerList[i];\n\t\t\t\tif (!val.CanStackWith(item))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint num = Mathf.Min(item.stackCount, val.def.stackLimit - val.stackCount);\n\t\t\t\tif (num > 0)\n\t\t\t\t{\n\t\t\t\t\tThing other = item.SplitOff(num);\n\t\t\t\t\tint stackCount = val.stackCount;\n\t\t\t\t\tval.TryAbsorbStack(other, respectStackLimit: true);\n\t\t\t\t\tif (val.stackCount > stackCount)\n\t\t\t\t\t{\n\t\t\t\t\t\tNotifyAddedAndMergedWith(val, val.stackCount - stackCount);\n\t\t\t\t\t}\n\t\t\t\t\tif (item.Destroyed || item.stackCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Count >= maxStacks)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\titem.holdingOwner = this;\n\t\tinnerList.Add(item2);\n\t\tNotifyAdded(item2);\n\t\treturn true;\n\t}\n\n\tprotected override void NotifyAdded(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemAdded(item as T);\n\t\t}\n\t\tbase.NotifyAdded(item);\n\t}\n\n\tprotected override void NotifyRemoved(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemRemoved(item as T);\n\t\t}\n\t\tbase.NotifyRemoved(item);\n\t}\n\n\tpublic void TryAddRangeOrTransfer(IEnumerable things, bool canMergeWithExistingStacks = true, bool destroyLeftover = false)\n\t{\n\t\tif (things == this)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (things is ThingOwner thingOwner)\n\t\t{\n\t\t\tthingOwner.TryTransferAllToContainer(this, canMergeWithExistingStacks);\n\t\t\tif (destroyLeftover)\n\t\t\t{\n\t\t\t\tthingOwner.ClearAndDestroyContents();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (things is IList list)\n\t\t{\n\t\t\tfor (int i = 0; i < list.Count; i++)\n\t\t\t{\n\t\t\t\tif (!TryAddOrTransfer(list[i], canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t\t{\n\t\t\t\t\tlist[i].Destroy();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tforeach (T thing in things)\n\t\t{\n\t\t\tif (!TryAddOrTransfer(thing, canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t{\n\t\t\t\tthing.Destroy();\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override int IndexOf(Thing item)\n\t{\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn innerList.IndexOf(item2);\n\t}\n\n\tpublic override bool Remove(Thing item)\n\t{\n\t\tif (!Contains(item))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner == this)\n\t\t{\n\t\t\titem.holdingOwner = null;\n\t\t}\n\t\tint index = innerList.LastIndexOf((T)item);\n\t\tinnerList.RemoveAt(index);\n\t\tNotifyRemoved(item);\n\t\treturn true;\n\t}\n\n\tpublic int RemoveAll(Predicate predicate)\n\t{\n\t\tint num = 0;\n\t\tfor (int num2 = innerList.Count - 1; num2 >= 0; num2--)\n\t\t{\n\t\t\tif (predicate(innerList[num2]))\n\t\t\t{\n\t\t\t\tRemove(innerList[num2]);\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n\n\tprotected override Thing GetAt(int index)\n\t{\n\t\treturn innerList[index];\n\t}\n\n\tpublic void GetThingsOfType(List list) where J : Thing\n\t{\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] is J item)\n\t\t\t{\n\t\t\t\tlist.Add(item);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic int TryTransferToContainer(Thing item, ThingOwner otherContainer, int stackCount, out T resultingTransferredItem, bool canMergeWithExistingStacks = true)\n\t{\n\t\tThing resultingTransferredItem2;\n\t\tint result = TryTransferToContainer(item, otherContainer, stackCount, out resultingTransferredItem2, canMergeWithExistingStacks);\n\t\tresultingTransferredItem = (T)resultingTransferredItem2;\n\t\treturn result;\n\t}\n\n\tpublic new T Take(Thing thing, int count)\n\t{\n\t\treturn (T)base.Take(thing, count);\n\t}\n\n\tpublic new T Take(Thing thing)\n\t{\n\t\treturn (T)base.Take(thing);\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, int count, out T resultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing resultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, count, out resultingThing2, placedAction2, nearPlaceValidator);\n\t\tresultingThing = (T)resultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, mode, out lastResultingThing2, placedAction2, nearPlaceValidator);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, out lastResultingThing2, placedAction2, nearPlaceValidator, playDropSound: true);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tint IList.IndexOf(T item)\n\t{\n\t\treturn innerList.IndexOf(item);\n\t}\n\n\tvoid IList.Insert(int index, T item)\n\t{\n\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow inserting individual elements at any position.\");\n\t}\n\n\tvoid ICollection.Add(T item)\n\t{\n\t\tTryAdd(item);\n\t}\n\n\tvoid ICollection.CopyTo(T[] array, int arrayIndex)\n\t{\n\t\tinnerList.CopyTo(array, arrayIndex);\n\t}\n\n\tbool ICollection.Contains(T item)\n\t{\n\t\treturn innerList.Contains(item);\n\t}\n\n\tbool ICollection.Remove(T item)\n\t{\n\t\treturn Remove(item);\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n}\n\n", "timestamp": "2025-08-24 20:53:27,802" }, "ThingOwner-TryAdd-override-virtual": { "keywords": [ "ThingOwner", "TryAdd", "virtual", "override" ], "question": "public abstract class ThingOwner virtual override TryAdd", "embedding": [ -0.0049171303398907185, 0.0012670025462284684, 0.019699471071362495, -0.01261199451982975, -0.08294514566659927, 0.0006480089505203068, 0.017130648717284203, 0.04450564086437225, 0.02870582789182663, 0.07916928082704544, -0.055399928241968155, -0.0877113938331604, -0.011567442677915096, -0.05781400203704834, 0.004495440982282162, -0.0044722286984324455, -0.01843053475022316, -0.0782407894730568, -0.03262096270918846, 0.026926221325993538, 0.01801271364092827, 0.0709366649389267, 0.013463110662996769, 0.0554618276655674, 0.04150352254509926, -0.0018540793098509312, -0.0014275539433583617, 0.06069232150912285, -0.01242629624903202, -0.008774233981966972, -0.03707771748304367, 0.026260804384946823, -0.005396850407123566, -0.021680250763893127, 0.02480616793036461, 0.012735793367028236, -0.056173671036958694, 0.0025939701590687037, 0.014600511640310287, -0.012975653633475304, -0.01609383337199688, -0.01444576308131218, -0.004356167279183865, 0.0029382852371782064, -0.026632199063897133, 0.03546833246946335, 0.01826031133532524, -0.04462943971157074, -0.007671651896089315, 0.05902104079723358, -0.008588536642491817, 0.006039056461304426, -0.024713318794965744, -0.029170073568820953, -0.01337799895554781, 0.018291261047124863, -0.003855169517919421, -0.019668521359562874, -0.019885169342160225, 0.04370094835758209, -0.014283277094364166, 0.03136749938130379, -0.02638460136950016, -0.027870187535881996, 0.049364738166332245, 0.017362769693136215, 0.003957690205425024, 0.04193681478500366, 0.011157359927892685, -0.02989739179611206, -0.004781725350767374, -0.008457000367343426, -0.06938917934894562, 0.011497805826365948, -0.05567847564816475, 0.061187516897916794, 0.021277904510498047, 0.02735951729118824, -0.007307993248105049, 0.010252081789076328, -0.011668029241263866, -0.021695725619792938, -0.028968900442123413, 0.013849982060492039, 0.07731229811906815, 0.024187175557017326, -0.003183948341757059, -0.09049686789512634, -0.04688876494765282, 0.10262914001941681, -0.007509165909141302, 0.024109801277518272, 0.015699224546551704, -0.02189689874649048, -0.01648070476949215, 0.08690670132637024, -0.06976057589054108, 0.015629587695002556, -0.017687741667032242, 0.010669901967048645, -0.012844117358326912, -0.10300053656101227, -0.02797851152718067, 0.07564102113246918, 0.0016954621532931924, 0.05960908532142639, -0.009818785823881626, -0.00341993966139853, -0.017409194260835648, 0.01846148446202278, -0.032682862132787704, -0.018151987344026566, 0.03395180031657219, 0.028783202171325684, -0.02231471985578537, 0.03124370239675045, -0.009223004803061485, -0.03203291818499565, -1.2973779121239204e-05, -0.011296633630990982, 0.05397624149918556, -0.0009255888871848583, 0.005304001271724701, -0.013873194344341755, -0.010724063962697983, 0.03280666097998619, -0.006990759167820215, 0.013842244632542133, -0.014724310487508774, 0.015358778648078442, -0.014995119534432888, -0.015536739490926266, -0.026137005537748337, -0.03729436546564102, -0.0056289732456207275, -0.01917332597076893, 0.021865949034690857, 0.006588412914425135, -0.09879137575626373, 0.008395100943744183, -0.02407885156571865, 0.007133901119232178, -0.00038348586531355977, -0.0005628973012790084, 0.08597820997238159, -0.020906507968902588, -0.05574037507176399, -0.02327415905892849, -0.015258192084729671, 0.005950076039880514, -0.009617612697184086, -0.01114962249994278, -0.005346557125449181, 0.039275143295526505, 0.020983882248401642, 0.0028067491948604584, 0.019065003842115402, -0.035777829587459564, -0.0038803161587566137, -0.0349731370806694, 0.005160859320312738, 0.029541470110416412, -0.03720151633024216, 0.008836133405566216, 0.014391601085662842, -0.024001477286219597, 0.023630080744624138, 0.004746907390654087, 0.04233916103839874, 0.03317805752158165, 0.039306093007326126, -0.008820658549666405, 0.034230347722768784, 0.04274150729179382, 0.020132767036557198, -0.053821492940187454, 0.04116307571530342, 0.05515233054757118, 0.02910817414522171, -0.05834014713764191, 0.060599472373723984, 0.002671344205737114, 0.018585283309221268, 0.00245276209898293, -0.007373761385679245, -0.03751101344823837, 0.010468728840351105, 0.02307298593223095, 0.022670641541481018, 0.04942663758993149, 0.015366516076028347, 0.04964328557252884, 0.02113863080739975, 0.031909119337797165, -0.02482164278626442, -0.01114962249994278, -0.03438509628176689, 0.04948853701353073, -0.11878487467765808, 0.0068205357529222965, 0.0029266790952533484, 0.010375880636274815, 0.01097939908504486, -0.007725813891738653, 0.03008308820426464, -0.02233019471168518, -0.0021471341606229544, -0.032868560403585434, 0.01590813510119915, 0.006468483246862888, 0.03608732670545578, -0.008371888659894466, 0.008905770257115364, -0.048436250537633896, -0.03299235925078392, -0.023614605888724327, -0.02889152616262436, 0.005775983911007643, 0.03413749858736992, -0.004100832622498274, 0.004356167279183865, 0.018291261047124863, -0.00843378808349371, -0.0020136635284870863, 0.017950814217329025, -0.021633826196193695, 0.025115665048360825, 0.0538833923637867, 0.03155319765210152, -0.02290276251733303, -0.013246462680399418, 0.016449755057692528, -0.05119077116250992, 0.00597328832373023, 0.016062883660197258, -0.03881089761853218, -0.007598146330565214, -0.011551967822015285, 0.043360501527786255, 0.012256073765456676, -0.03806810826063156, 0.029727168381214142, -0.008805183693766594, 0.026090580970048904, -0.004255581181496382, 0.00941644050180912, -0.035251684486866, 0.01329288724809885, 0.035623081028461456, -0.008070128969848156, 0.024388348683714867, 0.034446995705366135, -0.04602217301726341, 0.025270413607358932, -0.011497805826365948, 0.03785146027803421, -0.012929229065775871, 0.011079985648393631, -0.009989009238779545, -0.039677489548921585, -0.02718929387629032, 0.024868067353963852, 0.012372134253382683, -0.017115173861384392, -0.036768220365047455, 0.008387363515794277, 0.00979557354003191, 0.007923117838799953, -0.06784170120954514, -0.0627659484744072, -0.008309989236295223, 0.040048886090517044, 0.010623477399349213, -0.0454341284930706, -0.046826865524053574, -0.013053027912974358, 0.02636912651360035, 0.038687098771333694, -0.04933378845453262, -0.002611379139125347, -0.022825388237833977, 0.011304371058940887, -0.055214229971170425, -0.007176456972956657, -0.02559538558125496, 0.017935339361429214, 0.02986644208431244, -0.06901778280735016, -0.006793454755097628, -0.027514265850186348, 0.0036636684089899063, 0.06425153464078903, -0.03494218736886978, 0.006743161473423243, -0.027669014409184456, 0.020999357104301453, -0.01883288100361824, 0.003584359772503376, -0.018925730139017105, 0.02347533218562603, -0.013702970929443836, -0.0049287364818155766, 0.0015658603515475988, 0.018523383885622025, 0.03413749858736992, 0.00030417731613852084, -0.003491510869935155, -0.12348922342061996, 0.026276279240846634, -0.09136345237493515, -0.01649617962539196, 0.01251140795648098, -0.013122664764523506, 0.005516780540347099, -0.018538858741521835, 0.016960425302386284, -0.05942338705062866, 0.0022960794158279896, 0.010716326534748077, 0.02172667533159256, 0.009060518816113472, 0.013339311815798283, -0.0005063174176029861, 0.019126901403069496, -0.02561086043715477, 0.0028995980974286795, 0.021432653069496155, 0.008201665244996548, -0.00788829941302538, 0.007690995465964079, -0.03277571126818657, -0.003688815049827099, 0.040234584361314774, 0.008178452961146832, 0.005269182845950127, -0.0011248274240642786, 0.012534620240330696, -0.033487554639577866, 0.010453253984451294, 0.019683996215462685, -0.010321718640625477, -0.05047892779111862, 0.026817897334694862, 0.018306735903024673, 0.023336058482527733, 0.010027696378529072, -0.01903405413031578, 0.041627321392297745, 0.022221870720386505, 0.008944457396864891, 8.41444416437298e-05, -0.008170715533196926, -0.01784249022603035, 0.03877994790673256, 0.001028109691105783, -0.019838744774460793, 0.013819032348692417, -0.005164728034287691, -0.03602542728185654, 0.00902956910431385, -0.015575426630675793, 0.013826769776642323, 0.008565324358642101, 0.021680250763893127, 0.02929387241601944, 0.023583656176924706, -0.002363781910389662, 0.05837109684944153, -0.013153614476323128, -0.007385367527604103, 0.011141885071992874, -0.0699462741613388, -0.017579417675733566, 0.005903651472181082, 0.009679512120783329, -0.033673252910375595, 0.01706874929368496, -0.02287181280553341, 0.003205226268619299, 0.07898358255624771, 0.048436250537633896, -0.0014643067261204123, 0.0021355280186980963, -0.03556118160486221, -0.02752974070608616, 0.010004484094679356, -0.018693607300519943, 0.025146614760160446, 0.031135378405451775, -0.062363605946302414, 0.017734166234731674, 0.025548961013555527, -0.03342565521597862, -0.011451381258666515, 0.01357917208224535, 0.013726183213293552, 0.000961858022492379, 0.04794105514883995, 0.03146034851670265, 0.0029537600930780172, 0.010615739971399307, -0.015057018958032131, -0.020287515595555305, 0.040853578597307205, 0.006104824598878622, -0.03983223810791969, 0.022252820432186127, 0.019838744774460793, -0.008774233981966972, 0.030315211042761803, -0.04695066437125206, 0.00044780317693948746, 0.030005713924765587, -0.0037255678325891495, -0.03203291818499565, -0.011768615804612637, 0.02327415905892849, -0.009927109815180302, 0.08449262380599976, -0.0768171027302742, -0.01884835585951805, 0.04326765239238739, 0.01561411377042532, 0.02889152616262436, 0.013672021217644215, 0.009385490790009499, 0.0020600880961865187, -0.028086835518479347, -0.011056773364543915, 0.0011693176347762346, 0.008658172562718391, -0.003127851989120245, -0.022825388237833977, 0.0695129781961441, 0.00806239154189825, -0.025966782122850418, 0.02172667533159256, 0.02660124935209751, -0.05236686021089554, -0.012828642502427101, -0.032280515879392624, -0.007013971451669931, -0.019111426547169685, -0.009772361256182194, -0.037572912871837616, -0.0388418473303318, 0.024713318794965744, 0.009509289637207985, 0.021200530230998993, 0.023336058482527733, -0.0014497990487143397, -0.0012225123355165124, -0.0004782692703884095, 0.018167462199926376, 0.03664442151784897, 0.042958155274391174, -0.05292395129799843, -0.025177564471960068, -0.014871321618556976, 0.01436065137386322, -0.021448127925395966, -0.032094817608594894, 0.008542112074792385, 0.004920999053865671, -0.0016151864547282457, 0.00490552419796586, -0.02674052305519581, 0.00645687710493803, -0.015730174258351326, -0.05601892247796059, 0.01824483647942543, -0.0252239890396595, -0.0052459705621004105, -0.018182937055826187, 0.011157359927892685, -0.023939577862620354, -0.027313092723488808, 0.023722929880023003, 0.006433664821088314, -0.00854984950274229, 0.020504163578152657, -0.004495440982282162, -0.005880439188331366, 0.012062638066709042, -0.036582522094249725, -0.06858449429273605, -0.06815119832754135, -0.03280666097998619, 0.007311861962080002, -0.04574362561106682, -0.006077743601053953, -0.05057177692651749, -0.0050447979010641575, 0.016805676743388176, -0.010731801390647888, 0.0016451689880341291, -0.012735793367028236, 0.06437533348798752, -0.022469468414783478, -0.13877835869789124, -0.033394705504179, 0.03376610204577446, -0.023011086508631706, 0.010623477399349213, 0.033642303198575974, 0.008936719968914986, -0.04478418827056885, 0.0021896897815167904, -0.002996315946802497, 0.008526637218892574, -0.012449508532881737, 0.007865087129175663, 0.046672116965055466, -0.04193681478500366, -0.029371246695518494, 0.01801271364092827, 0.05821634829044342, -0.017796065658330917, 0.023630080744624138, 0.026260804384946823, 0.005745034199208021, -0.03432319685816765, -0.0050834850408136845, -0.02850465476512909, -0.04487703740596771, 0.037170566618442535, 0.010932974517345428, -0.018337685614824295, 0.043731898069381714, -0.03311615809798241, -0.04487703740596771, -0.0016828888328745961, -0.020519638434052467, -0.024156225845217705, 0.022593267261981964, 0.05233591049909592, 0.02113863080739975, 0.0052575767040252686, 0.03305425867438316, 0.0676560029387474, 0.0577521026134491, 0.026322703808546066, 0.005598023533821106, -0.017238972708582878, 0.06555142253637314, -0.004824281204491854, 0.044753238558769226, -0.07489822804927826, 0.011907889507710934, -0.024976391345262527, -0.0038029418792575598, 0.04555792734026909, -0.00015523198817390949, 0.03221861645579338, -0.0013027881504967809, -0.008805183693766594, 0.0029943815898150206, 0.01651165448129177, 0.016821151599287987, -0.060444723814725876, 0.0050061107613146305, -0.01269710622727871, -0.030887780711054802, -0.05125267058610916, 0.0014062761329114437, 0.013819032348692417, 0.025301363319158554, 0.019065003842115402, 0.051685966551303864, -0.021045781672000885, -0.027792813256382942, 0.021633826196193695, -0.03583972901105881, 0.03933704271912575, 0.042586758732795715, 0.0017022324027493596, 0.023119410499930382, 0.03395180031657219, 0.06381823867559433, -0.009238479658961296, 0.006244097836315632, 0.03942989185452461, 0.008665909990668297, -0.02500734105706215, 0.03648967295885086, 0.01937449909746647, 0.01242629624903202, -0.003154932986944914, -0.011521018110215664, -0.0029614975210279226, 0.02988191694021225, -0.0009768492309376597, -0.07167945802211761, -0.005988763179630041, -0.0262298546731472, 0.03608732670545578, 0.0013066567480564117, 0.07130806148052216, -0.008650435134768486, 0.003787467023357749, -0.01686757616698742, 0.0034489550162106752, -0.026075106114149094, 0.020891033113002777, 0.03416844829916954, -0.006371765397489071, -0.0031742765568196774, 0.00891350768506527, 0.017347294837236404, -0.007586540188640356, 0.04391759634017944, 0.04639356955885887, -0.018709082156419754, 0.006538120098412037, 0.015118918381631374, -0.017393719404935837, 0.019095951691269875, -0.02189689874649048, -0.0026191165670752525, 0.0021800179965794086, 0.006379502825438976, -0.018678132444620132, 0.02231471985578537, -0.04283435642719269, -0.006805060897022486, 0.0013569500297307968, 0.02000896818935871, 0.014701098203659058, -0.01436065137386322, 0.0022612609900534153, -0.017208022996783257, 0.024883542209863663, -0.06914158165454865, 0.042555809020996094, 0.021448127925395966, -0.0147629976272583, 0.02678694762289524, 0.028999850153923035, -0.005362031981348991, -0.040079835802316666, 0.01821388676762581, 0.026910746470093727, 0.022577792406082153, -0.015730174258351326, -0.0008685254142619669, -0.02539421245455742, -0.012766743078827858, -0.04345335066318512, 0.014167215675115585, -0.015103443525731564, 0.005481962114572525, 0.02209807187318802, 0.004131782334297895, -0.029572419822216034, -0.031940069049596786, 0.01668187789618969, 0.01844600960612297, 0.018322210758924484, 0.014724310487508774, -0.020318465307354927, -0.028071360662579536, -0.024171700701117516, -0.030423535034060478, -0.014468975365161896, 0.04794105514883995, -0.006650312338024378, -0.008573061786592007, -0.01785796508193016, 0.027715438976883888, -0.01262746937572956, 0.024310974404215813, -0.0038609725888818502, 0.017300870269536972, -0.02757616527378559, 0.024295499548316002, 0.05184071511030197, -0.008758759126067162, -0.05100507289171219, -0.0038396946620196104, 0.05199546366930008, 0.02195879817008972, 0.018167462199926376, -0.03243526443839073, 0.002692622132599354, 0.015761123970150948, -0.003491510869935155, -0.0195601973682642, 0.051593117415905, -0.03893469646573067, -0.023227734491229057, 0.06323019415140152, -0.012333447113633156, 0.02910817414522171, 0.018786456435918808, -0.05038607865571976, -0.01577659882605076, -0.009068256244063377, -0.035963527858257294, -0.00788829941302538, 0.0520264133810997, 0.0028086835518479347, -0.009106943383812904, 0.05722595751285553, 0.010159232653677464, -0.002539808163419366, -0.016372380778193474, -0.01349406037479639, -0.03667537122964859, -0.0017505913274362683, -0.03141392394900322, -0.011234734207391739, 0.05063367635011673, -0.024403823539614677, -0.00902956910431385, -0.0051221721805632114, 0.018585283309221268, 0.04636261984705925, -0.0246514193713665, -0.03995603695511818, 0.007184194400906563, -0.034632690250873566, -0.019683996215462685, -0.006518776528537273, 0.015567689202725887, -0.012658419087529182, -0.016728302463889122, 0.010329456068575382, -0.014414813369512558, -0.03515883535146713, 0.0547499842941761, -0.007246093824505806, -0.022392094135284424, -0.017146123573184013, 0.02757616527378559, 0.010608002543449402, -0.02927839756011963, 0.014708835631608963, -0.03023783676326275, -0.010128282941877842, 0.028566554188728333, -0.007687126751989126, -0.014600511640310287, 0.09606780856847763, -0.0508812740445137, 0.028396330773830414, 0.004085357766598463, -0.005818539764732122, 0.03136749938130379, 0.008820658549666405, -0.0013492126017808914, 0.024914491921663284, 0.01524271722882986, -0.025951307266950607, 0.002990512875840068, 0.029340296983718872, -0.027050020173192024, 0.04964328557252884, 0.012774480506777763, 0.0021896897815167904, 0.0262298546731472, 0.02112315595149994, -0.012449508532881737, 0.01329288724809885, 0.01066216453909874, 0.003195554483681917, 0.02834990620613098, 0.033394705504179, 0.017409194260835648, -0.02268611639738083, -0.005126040894538164, -0.018956679850816727, 0.030980629846453667, -0.04933378845453262, 0.05601892247796059, -0.005547730252146721, 0.02542516216635704, -0.013757132925093174, -0.011172834783792496, -0.05205736309289932, -0.048621948808431625, 0.0434224009513855, 0.006843748036772013, -0.05964003503322601, -0.0042710560373961926, 0.022639691829681396, 0.03218766674399376, -0.012851854786276817, 0.055771324783563614, 0.010468728840351105, 0.06072327122092247, 0.004909392911940813, -0.020287515595555305, 0.011637079529464245, 0.021448127925395966, -0.01940544880926609, -0.015258192084729671, -0.004031195770949125, 0.11519470810890198, 0.04484608769416809, -0.0007732583908364177, 0.03240431472659111, -0.04035838320851326, 0.017966289073228836, -0.008356413803994656, 0.033673252910375595, 0.04561982676386833, -0.007617489900439978, -0.03062470816075802, -0.03822285309433937, 0.0004688392800744623, -0.017718691378831863, -0.0162640567868948, 0.004526390694081783, -0.00611643074080348, 0.008387363515794277, -0.01883288100361824, 0.028009461238980293, 0.0075942776165902615, 0.00933132879436016, -0.014801684767007828, 0.03788240998983383, 0.06784170120954514, 0.0349731370806694, -0.011977526359260082, 0.04302005469799042, 0.002655869349837303, 0.033085208386182785, -0.044319942593574524, -0.012333447113633156, 0.005748902913182974, 0.025657285004854202, -0.02019466646015644, -0.018863830715417862, 0.06462293118238449, 0.021680250763893127, 0.009532501921057701, -0.031692471355199814, 0.004619239829480648, -0.008101078681647778, -0.032280515879392624, -0.031197277829051018, 0.01162934210151434, 0.004154994618147612, -0.019730420783162117, -0.008480212651193142, 0.0161247830837965, -0.013819032348692417, -0.01940544880926609, 0.0038222854491323233, -0.030330685898661613, -0.005930732470005751, 0.028814151883125305, 0.014414813369512558, 0.010375880636274815, 0.03240431472659111, 0.05648316442966461, 0.0018627839162945747, -0.0027119657024741173, 0.0030059877317398787, -0.00572955934330821, -0.008689122274518013, 0.009339066222310066, -0.01881740614771843, 0.008379626087844372, -0.03472553938627243, 0.009772361256182194, 0.011141885071992874, 0.004127913620322943, -0.002698425203561783, -0.03155319765210152, 0.02830348163843155, 0.08573061227798462, -0.003996377345174551, 0.021401703357696533, 0.02152550220489502, -0.013145877048373222, -0.025734659284353256, 0.015196292661130428, 0.0055013056844472885, 0.024001477286219597, -0.03262096270918846, -0.024388348683714867, 0.038501400500535965, -0.015165342949330807, -0.08430692553520203, 0.0035437382757663727, 0.03766576200723648, -0.0007945363176986575, -0.026461975648999214, 0.04806485399603844, 0.0006465581827796996, -0.013919618912041187, 0.02367650531232357, 0.03028426133096218, 0.0031375237740576267, -0.0041433884762227535, -0.03435414656996727, 0.03064018301665783, 0.024109801277518272, -0.017579417675733566, -0.006878566462546587, -0.08053106814622879, 0.004576683975756168, -0.03673727065324783, -0.03902754560112953, -0.027653539553284645, -0.027684489265084267, -0.003826154163107276, -0.026709573343396187, 0.04286530613899231, -0.002748718485236168, 0.026461975648999214, 0.02774638868868351, 0.02191237360239029, -0.013849982060492039, 0.010747276246547699, -0.024001477286219597, 0.06610851734876633, 0.00941644050180912, -0.028458230197429657, 0.029773592948913574, 0.004414197988808155, -0.0018318342044949532, -0.038130007684230804, 0.01094844937324524, 0.035592131316661835, 0.043762847781181335, 0.023753879591822624, -0.0180591382086277, 0.05007658153772354, 0.038872797042131424, 0.02640007622539997, 0.034632690250873566, 0.008240352384746075, 0.02500734105706215, -0.0070255775935947895, -0.00543166883289814, -0.03843950107693672, -0.035035036504268646, -0.039863187819719315, 0.02833443135023117, -0.010174707509577274, 0.003568884916603565, 0.022392094135284424, 0.0013956371694803238, 0.027313092723488808, 0.007350549101829529, -0.018399585038423538, 0.028860576450824738, -0.006688999477773905, -0.038903746753931046, -0.006642574910074472, -0.03924419358372688, 0.01898762956261635, -0.04908619076013565, 0.029850967228412628, 0.02796303667128086, -0.0010571250459179282, -0.009872947819530964, -0.033487554639577866, 0.07570292055606842, 0.020844610407948494, -0.011853727512061596, 0.0017080354737117887, -0.010174707509577274, -0.028071360662579536, -0.014724310487508774, -0.04017268493771553, -0.016542604193091393, 0.01807461306452751, -0.02754521556198597, 0.02907722443342209, -0.004418066702783108, -0.047043513506650925, 0.009153367951512337, 0.018105562776327133, -0.00790377426892519, -0.03819190338253975, -0.11965146660804749, 0.003127851989120245, -0.009145630523562431, 0.021571926772594452, -0.041410673409700394, 0.013548222370445728, -0.024202650412917137, -0.050355128943920135, 0.006309865973889828, -0.022423043847084045, 0.024202650412917137, -0.043143853545188904, -0.019885169342160225, -0.05979478359222412, -0.013718445785343647, 0.05574037507176399, 0.031909119337797165, -0.029015325009822845, -0.06425153464078903, -0.0013772607780992985, 0.003013725159689784, -0.020999357104301453, 0.027808288112282753, 0.05744260549545288, -0.01632595621049404, -0.005358163267374039, 0.01881740614771843, 0.016186682507395744, -0.09495361894369125, 0.016604503616690636, -0.007849612273275852, 0.028458230197429657, 0.06288974732160568, 0.01094844937324524, 0.023614605888724327, -0.038903746753931046, 0.05663791298866272, -0.01866265758872032, -0.01047646626830101, 0.0017496241489425302, 0.012875067070126534, -0.002197427209466696, -0.018740031868219376, 0.07774559408426285, 0.05725690722465515, -0.0022631953470408916 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\ThingOwner.txt\n\npublic class ThingOwner : ThingOwner, IList, ICollection, IEnumerable, IEnumerable where T : Thing\n{\n\tprivate List innerList = new List();\n\n\tpublic List InnerListForReading => innerList;\n\n\tpublic new T this[int index] => innerList[index];\n\n\tpublic override int Count => innerList.Count;\n\n\tT IList.this[int index]\n\t{\n\t\tget\n\t\t{\n\t\t\treturn innerList[index];\n\t\t}\n\t\tset\n\t\t{\n\t\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow setting individual elements.\");\n\t\t}\n\t}\n\n\tbool ICollection.IsReadOnly => true;\n\n\tpublic ThingOwner()\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, bool oneStackOnly, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner, oneStackOnly, contentsLookMode, removeContentsIfDestroyed)\n\t{\n\t}\n\n\tpublic override void ExposeData()\n\t{\n\t\tbase.ExposeData();\n\t\tScribe_Collections.Look(ref innerList, \"innerList\", true, contentsLookMode);\n\t\tif (Scribe.mode == LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\tint num = innerList.RemoveAll((T x) => x == null || (x is MinifiedThing minifiedThing && minifiedThing.InnerThing == null));\n\t\t\tif (num > 0)\n\t\t\t{\n\t\t\t\tLog.Warning($\"ThingOwner removed {num} invalid entries during PostLoadInit.\");\n\t\t\t}\n\t\t}\n\t\tif (Scribe.mode != LoadSaveMode.LoadingVars && Scribe.mode != LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] != null)\n\t\t\t{\n\t\t\t\tinnerList[i].holdingOwner = this;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic List.Enumerator GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tpublic override int GetCountCanAccept(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (!(item is T))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn base.GetCountCanAccept(item, canMergeWithExistingStacks);\n\t}\n\n\tpublic override int TryAdd(Thing item, int count, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (count <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item?.ToString() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + count + \" of \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tint stackCount = item.stackCount;\n\t\tint num = Mathf.Min(stackCount, count);\n\t\tThing thing = item.SplitOff(num);\n\t\tif (!TryAdd((T)thing, canMergeWithExistingStacks))\n\t\t{\n\t\t\tif (thing != item)\n\t\t\t{\n\t\t\t\tint result = stackCount - item.stackCount - thing.stackCount;\n\t\t\t\titem.TryAbsorbStack(thing, respectStackLimit: false);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn stackCount - item.stackCount;\n\t\t}\n\t\tCompPushable compPushable = item.TryGetComp();\n\t\tif (compPushable != null && owner is Pawn pawn)\n\t\t{\n\t\t\tcompPushable.OnStartedCarrying(pawn);\n\t\t}\n\t\treturn num;\n\t}\n\n\tpublic override bool TryAdd(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (canMergeWithExistingStacks)\n\t\t{\n\t\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t\t{\n\t\t\t\tT val = innerList[i];\n\t\t\t\tif (!val.CanStackWith(item))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint num = Mathf.Min(item.stackCount, val.def.stackLimit - val.stackCount);\n\t\t\t\tif (num > 0)\n\t\t\t\t{\n\t\t\t\t\tThing other = item.SplitOff(num);\n\t\t\t\t\tint stackCount = val.stackCount;\n\t\t\t\t\tval.TryAbsorbStack(other, respectStackLimit: true);\n\t\t\t\t\tif (val.stackCount > stackCount)\n\t\t\t\t\t{\n\t\t\t\t\t\tNotifyAddedAndMergedWith(val, val.stackCount - stackCount);\n\t\t\t\t\t}\n\t\t\t\t\tif (item.Destroyed || item.stackCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Count >= maxStacks)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\titem.holdingOwner = this;\n\t\tinnerList.Add(item2);\n\t\tNotifyAdded(item2);\n\t\treturn true;\n\t}\n\n\tprotected override void NotifyAdded(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemAdded(item as T);\n\t\t}\n\t\tbase.NotifyAdded(item);\n\t}\n\n\tprotected override void NotifyRemoved(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemRemoved(item as T);\n\t\t}\n\t\tbase.NotifyRemoved(item);\n\t}\n\n\tpublic void TryAddRangeOrTransfer(IEnumerable things, bool canMergeWithExistingStacks = true, bool destroyLeftover = false)\n\t{\n\t\tif (things == this)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (things is ThingOwner thingOwner)\n\t\t{\n\t\t\tthingOwner.TryTransferAllToContainer(this, canMergeWithExistingStacks);\n\t\t\tif (destroyLeftover)\n\t\t\t{\n\t\t\t\tthingOwner.ClearAndDestroyContents();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (things is IList list)\n\t\t{\n\t\t\tfor (int i = 0; i < list.Count; i++)\n\t\t\t{\n\t\t\t\tif (!TryAddOrTransfer(list[i], canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t\t{\n\t\t\t\t\tlist[i].Destroy();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tforeach (T thing in things)\n\t\t{\n\t\t\tif (!TryAddOrTransfer(thing, canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t{\n\t\t\t\tthing.Destroy();\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override int IndexOf(Thing item)\n\t{\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn innerList.IndexOf(item2);\n\t}\n\n\tpublic override bool Remove(Thing item)\n\t{\n\t\tif (!Contains(item))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner == this)\n\t\t{\n\t\t\titem.holdingOwner = null;\n\t\t}\n\t\tint index = innerList.LastIndexOf((T)item);\n\t\tinnerList.RemoveAt(index);\n\t\tNotifyRemoved(item);\n\t\treturn true;\n\t}\n\n\tpublic int RemoveAll(Predicate predicate)\n\t{\n\t\tint num = 0;\n\t\tfor (int num2 = innerList.Count - 1; num2 >= 0; num2--)\n\t\t{\n\t\t\tif (predicate(innerList[num2]))\n\t\t\t{\n\t\t\t\tRemove(innerList[num2]);\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n\n\tprotected override Thing GetAt(int index)\n\t{\n\t\treturn innerList[index];\n\t}\n\n\tpublic void GetThingsOfType(List list) where J : Thing\n\t{\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] is J item)\n\t\t\t{\n\t\t\t\tlist.Add(item);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic int TryTransferToContainer(Thing item, ThingOwner otherContainer, int stackCount, out T resultingTransferredItem, bool canMergeWithExistingStacks = true)\n\t{\n\t\tThing resultingTransferredItem2;\n\t\tint result = TryTransferToContainer(item, otherContainer, stackCount, out resultingTransferredItem2, canMergeWithExistingStacks);\n\t\tresultingTransferredItem = (T)resultingTransferredItem2;\n\t\treturn result;\n\t}\n\n\tpublic new T Take(Thing thing, int count)\n\t{\n\t\treturn (T)base.Take(thing, count);\n\t}\n\n\tpublic new T Take(Thing thing)\n\t{\n\t\treturn (T)base.Take(thing);\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, int count, out T resultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing resultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, count, out resultingThing2, placedAction2, nearPlaceValidator);\n\t\tresultingThing = (T)resultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, mode, out lastResultingThing2, placedAction2, nearPlaceValidator);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, out lastResultingThing2, placedAction2, nearPlaceValidator, playDropSound: true);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tint IList.IndexOf(T item)\n\t{\n\t\treturn innerList.IndexOf(item);\n\t}\n\n\tvoid IList.Insert(int index, T item)\n\t{\n\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow inserting individual elements at any position.\");\n\t}\n\n\tvoid ICollection.Add(T item)\n\t{\n\t\tTryAdd(item);\n\t}\n\n\tvoid ICollection.CopyTo(T[] array, int arrayIndex)\n\t{\n\t\tinnerList.CopyTo(array, arrayIndex);\n\t}\n\n\tbool ICollection.Contains(T item)\n\t{\n\t\treturn innerList.Contains(item);\n\t}\n\n\tbool ICollection.Remove(T item)\n\t{\n\t\treturn Remove(item);\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n}\n\n", "timestamp": "2025-08-24 20:56:15,798" }, "ThingOwner-TryAdd-abstract-override-virtual": { "keywords": [ "ThingOwner", "TryAdd", "virtual", "override", "abstract" ], "question": "ThingOwner TryAdd virtual override abstract methods", "embedding": [ 0.006892177741974592, -0.005672356579452753, -0.007039462681859732, 0.0001993302721530199, -0.05933693051338196, 0.038037266582250595, 0.0027663125656545162, 0.05111918970942497, 0.029139749705791473, 0.05743355676531792, -0.020544353872537613, -0.07142184674739838, -0.019743729382753372, -0.02217581868171692, -0.0059593734331429005, -0.008240400813519955, -0.012371931225061417, -0.08973048627376556, -0.05160258337855339, 0.0030741000082343817, 0.06090796738862991, 0.06441259384155273, 0.0151363555341959, 0.06284155696630478, 0.06169348955154419, 0.03513688966631889, 0.011896087788045406, 0.04601331055164337, 0.008368803188204765, 0.025302790105342865, -0.01186587568372488, 0.0035537201911211014, 0.014645406045019627, -0.03465349227190018, 0.03900406137108803, 0.014977741055190563, -0.029804419726133347, -0.020091170445084572, 0.02022712491452694, 0.034834764897823334, -0.03087695688009262, 0.0015691505977883935, -0.002292357152327895, -0.013066813349723816, -0.031209291890263557, 0.03205523639917374, -0.003870949149131775, -0.04296186938881874, 0.0003927597135771066, 0.03707047551870346, -0.012032043188810349, 0.019804153591394424, -0.043535903096199036, -0.014305517077445984, 0.013444467447698116, 0.010506322607398033, -0.04084701091051102, -0.005306032951921225, -0.013716378249228, 0.050333667546510696, -0.008602948859333992, 0.012296400032937527, -0.006178412586450577, -0.021360086277127266, 0.05154215916991234, 0.0006198239279910922, 0.005464647430926561, 0.01998542807996273, 0.013942969962954521, -0.040182340890169144, -0.01148822158575058, -0.02013648860156536, -0.04640607163310051, 0.031994812190532684, -0.05124003812670708, 0.05441232770681381, 0.03136035427451134, 0.0036141446325927973, -0.022855594754219055, 0.025589806959033012, -0.009161875583231449, -0.015921873971819878, -0.0033120219595730305, 0.04250868782401085, 0.08308378607034683, 0.034593068063259125, 0.00490571977570653, -0.1038094162940979, -0.04021255299448967, 0.042689960449934006, 0.006548513192683458, 0.022221136838197708, 0.026148732751607895, -0.017719505354762077, -0.011254076845943928, 0.07510774582624435, -0.08247954398393631, -0.008368803188204765, -0.026390431448817253, 0.02527257800102234, -0.017462700605392456, -0.0561344288289547, -0.013837226666510105, 0.09837120026350021, -0.024743862450122833, 0.10634724795818329, -0.04196486622095108, 0.012545651756227016, -0.02782551571726799, 0.004588490817695856, 0.004728222731500864, -0.015045718289911747, 0.013625741004943848, 0.02867146022617817, -0.017115259543061256, 0.011155886575579643, 0.004327910020947456, -0.051421310752630234, -0.02432089112699032, -0.00781742949038744, 0.064714714884758, 0.011306948028504848, 0.008111998438835144, -0.009743462316691875, -0.027462968602776527, 0.03945724666118622, 0.01602761819958687, 0.0044638654217123985, -0.03016696684062481, 0.0010026702657341957, -0.009962501004338264, 0.00486040161922574, -0.010309942997992039, -0.0424482636153698, -0.025665337219834328, -0.01799141615629196, 0.030091436579823494, -0.005143641494214535, -0.07837066799402237, 0.009501763619482517, -0.02003074623644352, 0.0037954184226691723, 0.015846343711018562, 0.0010602624388411641, 0.07142184674739838, -0.021692421287298203, -0.07522859424352646, -0.022311773151159286, -0.001380323781631887, -0.004562055226415396, -0.027493180707097054, 0.012122679501771927, -0.00946399848908186, 0.045227792114019394, 0.014048713259398937, 0.003578267525881529, 0.00894283689558506, -0.02158667892217636, 0.004781094379723072, -0.05299235135316849, 0.010173987597227097, 0.001458686892874539, -0.029154855757951736, 0.029789313673973083, 0.022462835535407066, -0.020302657037973404, 0.0346837043762207, -0.014970188029110432, 0.04954814910888672, -0.012273740954697132, 0.05830971151590347, 0.004475194960832596, 0.01101237814873457, 0.045288216322660446, 0.022311773151159286, -0.05788674205541611, 0.016314635053277016, 0.04776562377810478, 0.025786185637116432, -0.06229773536324501, 0.04867199435830116, 0.008300825953483582, -0.001127295894548297, -0.019048847258090973, -0.001308569684624672, -0.04704052954912186, 0.03549943491816521, 0.014992847107350826, 0.015529114753007889, 0.045832037925720215, 0.01101237814873457, 0.025453850626945496, 0.014449025504291058, 0.017719505354762077, -0.04779583588242531, -0.005404222756624222, -0.031602051109075546, 0.020514141768217087, -0.08102934807538986, 0.0032855861354619265, 0.008806881494820118, -0.01208491437137127, 0.01888267882168293, -0.0027776421047747135, 0.032387569546699524, -0.03208544850349426, 0.010166434571146965, -0.017613762989640236, 0.019804153591394424, 0.024532375857234, 0.01848991960287094, -0.0035914855543524027, -0.00859539583325386, -0.05504678562283516, -0.0161786787211895, -0.02347494661808014, -0.004320356994867325, -0.010883975774049759, 0.029049113392829895, 0.02581639774143696, -0.007099887356162071, -0.0023678878787904978, -0.00989452376961708, -0.03785599395632744, 0.005128535442054272, -0.027840621769428253, 0.014584980905056, 0.013746590353548527, 0.0270248893648386, 0.0006575892912223935, -0.05698037147521973, 0.015770813450217247, -0.07831024378538132, 0.022417515516281128, 0.020650098100304604, -0.02533300220966339, -0.055167634040117264, -0.029547614976763725, 0.022870700806379318, 0.016601651906967163, -0.02537832036614418, 0.031209291890263557, -0.011986724101006985, 0.03571092337369919, 0.013791908510029316, -0.014041160233318806, -0.048581354320049286, 0.02661702409386635, 0.03401903435587883, 0.025136621668934822, 0.03492540121078491, 0.025242365896701813, -0.04404951259493828, 0.030287817120552063, -0.022447729483246803, 0.04401930049061775, -0.010022926144301891, 0.0037765358574688435, -0.00583097105845809, -0.03395861014723778, -0.02137519232928753, 0.01983436569571495, 0.0055326251313090324, -0.015249651856720448, -0.012417249381542206, 0.030756106600165367, 0.024804286658763885, 0.013731484301388264, -0.03682877868413925, -0.027991682291030884, -0.017810143530368805, 0.053475745022296906, -0.0072509488090872765, -0.06072669476270676, -0.025846611708402634, 0.0176288690418005, 0.032840754836797714, 0.05755440518260002, -0.023490052670240402, -0.003221384948119521, 0.009947394952178001, 0.00989452376961708, -0.02447195164859295, -0.013452020473778248, 0.006759998854249716, 0.030242498964071274, 0.020665204152464867, -0.0382789671421051, 0.012069808319211006, -0.04489545896649361, 0.016057830303907394, 0.0661044791340828, 0.018958209082484245, 0.028354231268167496, -0.028006788343191147, 0.03441179543733597, -0.007983596995472908, 0.005521295126527548, -0.017704399302601814, 0.02663213014602661, -4.767876453115605e-05, 0.026601918041706085, -0.01717568375170231, 0.020060958340764046, 0.04549970477819443, 0.022100286558270454, 0.00658250181004405, -0.12447462230920792, 0.024638120085000992, -0.09891502559185028, 0.00520784268155694, -0.004973697476089001, -0.015385606326162815, 0.010000267066061497, -0.011556199751794338, 0.043143145740032196, -0.055167634040117264, -0.007107440382242203, 0.02797657623887062, 0.02403387427330017, 0.01719079166650772, 0.037040263414382935, 0.015468690544366837, 0.005245608277618885, -0.028006788343191147, 0.002432089066132903, 0.04290144518017769, -0.007254725322127342, -0.00520784268155694, -0.006608937401324511, -0.03117907978594303, 0.00859539583325386, 0.03157183900475502, 0.007945830933749676, 0.02481939271092415, -0.0172814279794693, -0.00765503803268075, -0.024653226137161255, -0.002855061087757349, 0.008142211474478245, -0.0018901561852544546, -0.05344553291797638, 0.02787083387374878, -0.0012415361125022173, 0.027342118322849274, 0.009547082707285881, -0.018943103030323982, 0.03498582914471626, 0.025151727721095085, 0.008912624791264534, -0.008844646625220776, -0.01574060134589672, -0.0316624753177166, 0.04951793700456619, 0.00011701360199367628, -0.010151328518986702, 0.025650231167674065, -0.009373362176120281, -0.04562055319547653, 0.007409563288092613, 0.002520837588235736, -0.02132987417280674, 0.021344980224967003, 0.03426073119044304, 0.010498769581317902, 0.01957756094634533, 0.0016191897448152304, 0.026964465156197548, -0.012779797427356243, -0.009501763619482517, 0.005978255998343229, -0.04885326698422432, -0.013912757858633995, -0.005037898663431406, 0.005026569124311209, -0.011926299892365932, 0.041390832513570786, -0.034744128584861755, 0.014509450644254684, 0.07299288362264633, 0.01303660124540329, 0.009796333499252796, -0.016012512147426605, -0.005445764400064945, -0.026798298582434654, 0.014018501155078411, -0.012470121495425701, 0.02028755098581314, 0.051028549671173096, -0.02403387427330017, 0.0005830026930198073, 0.03679856285452843, -0.046526920050382614, -0.009599953889846802, 0.012077361345291138, 0.016918880864977837, 0.01838417537510395, 0.0489439032971859, 0.010951953940093517, -0.009486657567322254, -0.004630032926797867, -0.018656086176633835, 0.006510747596621513, 0.02093711495399475, -0.009229853749275208, -0.02817295677959919, 0.03250842168927193, 0.027644241228699684, -0.013074366375803947, 0.025317896157503128, -0.030892062932252884, -0.01593698002398014, 0.06302282959222794, 0.013550210744142532, -0.00988697074353695, -0.027689559385180473, 0.01139003224670887, -0.014584980905056, 0.06423132121562958, -0.08604459464550018, 0.00898815505206585, 0.013912757858633995, 0.0042561558075249195, 0.04075637459754944, 0.009645272046327591, 0.028339125216007233, -0.005521295126527548, -0.04788647219538689, -0.013807014562189579, 0.018807148560881615, 0.03891342505812645, -0.027311906218528748, 0.01563485898077488, 0.06695042550563812, 0.023203035816550255, -0.04634564742445946, 0.03725174814462662, -0.0256351251155138, -0.04380781576037407, -0.026586811989545822, -0.029305918142199516, -0.00040102089405991137, -0.012945964932441711, 0.0007109328871592879, -0.057614829391241074, -0.02562001906335354, 0.015272310934960842, 0.013467126525938511, 0.0284750796854496, 0.02117881178855896, 0.0028191839810460806, -0.016949092969298363, -0.03362627327442169, 0.03136035427451134, 0.03250842168927193, 0.038581088185310364, -0.0071980771608650684, -0.030635258182883263, -0.02726658806204796, 0.00015448391786776483, -0.035741135478019714, -0.018746724352240562, -0.008278165943920612, 0.016511013731360435, 0.008821987546980381, -0.01788567379117012, -0.07347627729177475, 0.019502030685544014, -0.0016588433645665646, -0.02858082205057144, 0.0019449159735813737, -0.008897517807781696, 0.014683171175420284, -0.004275038372725248, 0.013142344541847706, -0.04936687648296356, -0.02858082205057144, 0.005842301063239574, 0.00205443543381989, -0.008829540573060513, 0.018006522208452225, 0.0008978713885881007, -0.0010715919779613614, -0.002056323690339923, -0.026360219344496727, -0.054925937205553055, -0.04142104461789131, -0.03220629692077637, -0.003234602976590395, -0.04649670794606209, 0.007892959751188755, -0.025212151929736137, -0.002458524890244007, -0.005124758929014206, -0.009486657567322254, 0.014970188029110432, -0.02202475629746914, 0.02492513693869114, -0.017251215875148773, -0.10930804908275604, -0.034049246460199356, 0.038097694516181946, -0.037281960248947144, 0.009275171905755997, 0.03821854293346405, 0.008036468178033829, -0.0439588762819767, -0.011760132387280464, -0.03332415223121643, 0.045137155801057816, -0.01053653471171856, -0.0015795361250638962, 0.036738138645887375, -0.04580182582139969, -0.0067486693151295185, 0.015589539892971516, 0.05006175860762596, -0.019154589623212814, 0.003923820797353983, 0.04710095375776291, -0.005041675176471472, -0.019502030685544014, -0.002913597272709012, -0.005423105321824551, -0.037433020770549774, 0.025045985355973244, -0.012432355433702469, -0.007447328418493271, 0.03341478854417801, -0.014509450644254684, -0.005479753483086824, 0.04867199435830116, -0.006355909630656242, -0.02518193982541561, 0.013980735093355179, 0.07226778566837311, -0.0011707261437550187, 0.01703972928225994, 0.019698411226272583, 0.07486604154109955, 0.03175311163067818, 0.022221136838197708, 0.007779663894325495, -0.012349272146821022, 0.09299341589212418, -0.03066547028720379, 0.043838027864694595, -0.07414095103740692, 0.02022712491452694, -0.037886206060647964, 0.011299395002424717, 0.04169295355677605, 0.00976612139493227, 0.04160231724381447, 0.013580422848463058, -0.021103281527757645, 0.020242230966687202, -0.0133387241512537, 0.014267751947045326, -0.0764370858669281, 0.02642064355313778, -0.026662342250347137, -0.044683970510959625, -0.03855087608098984, 0.032991815358400345, 0.024003662168979645, 0.024849604815244675, 0.0316624753177166, 0.017462700605392456, -0.028112532570958138, -0.04474439471960068, 0.012840221635997295, -0.028157850727438927, 0.04595288634300232, 0.06652745604515076, -0.018369069322943687, 0.023067081347107887, 0.047282226383686066, 0.046677980571985245, -0.018640980124473572, -0.0010640389518812299, 0.03142077848315239, -0.016511013731360435, -0.013489785604178905, 0.018958209082484245, 0.017598656937479973, 0.009917182847857475, 0.011714814230799675, -0.015340288169682026, 0.0061670830473303795, 0.02423025295138359, 0.008308378979563713, -0.08719265460968018, -0.006673138588666916, -0.009607506915926933, 0.03022739291191101, 0.01842949539422989, 0.04181380569934845, -0.00946399848908186, 0.05160258337855339, -0.02003074623644352, 0.026209158822894096, -0.02288580685853958, 0.023263460025191307, 0.020468823611736298, 0.029562722891569138, 0.008648267015814781, 0.009260065853595734, 0.03102801740169525, -0.0043958877213299274, 0.018822254613041878, 0.05145152285695076, -0.008353697136044502, 0.010075797326862812, 0.0065447366796433926, -0.0019637986551970243, 0.018701404333114624, 0.002409429755061865, -0.007435998879373074, 0.007269831374287605, 0.011858322657644749, -0.01428285799920559, 0.030242498964071274, -0.023505158722400665, 0.01429041102528572, -0.002298021921887994, 0.05024303123354912, 0.011971618048846722, -0.004543172661215067, 0.01213778555393219, -0.0005126647301949561, 0.013942969962954521, -0.046829044818878174, 0.025317896157503128, 0.016873562708497047, -0.02871677838265896, 0.017553338780999184, 0.026450855657458305, 0.01732674613595009, -0.023248353973031044, 0.031994812190532684, 0.015461137518286705, 0.030484197661280632, 0.007454881444573402, -0.002607697853818536, -0.025997672230005264, -0.031541626900434494, -0.026209158822894096, 0.009411127306520939, -0.021118387579917908, 0.03133014217019081, 0.014804020524024963, 0.007772110402584076, -0.026390431448817253, -0.040544889867305756, 0.004592267330735922, 0.0017768600955605507, 0.009199640713632107, 0.006982814520597458, 0.0058196415193378925, -0.01613336056470871, -0.0172814279794693, -0.024018768221139908, -0.014569874852895737, 0.06272070854902267, -0.02503087930381298, 0.005513742100447416, -0.029789313673973083, 0.017115259543061256, -0.007983596995472908, 0.053173623979091644, -0.012032043188810349, 0.017462700605392456, -0.01738717034459114, 0.02661702409386635, 0.0555603951215744, 0.005929161328822374, -0.05015239492058754, 0.027039995416998863, 0.04951793700456619, 0.00765503803268075, 0.02232687920331955, -0.011352266184985638, 0.02726658806204796, -0.006552289705723524, 0.032840754836797714, 0.020151594653725624, 0.018323751166462898, -0.0482490211725235, -0.015423372387886047, 0.0720260888338089, -0.032387569546699524, 0.030333135277032852, 0.03157183900475502, -0.04664776846766472, 0.011858322657644749, -0.029789313673973083, -0.03716111183166504, 0.02817295677959919, 0.046738408505916595, -0.007024356629699469, 0.000802513852249831, 0.08380888402462006, -8.851255552144721e-05, 0.000924779218621552, -0.024200040847063065, -0.02492513693869114, -0.023958342149853706, -0.0045658317394554615, -0.00911655742675066, -0.020861582830548286, 0.05281107500195503, -0.007809875998646021, -0.004482747986912727, -0.005540178157389164, 0.032145872712135315, 0.032296933233737946, -0.03401903435587883, -0.04876263067126274, 0.005211619194597006, -0.026601918041706085, 0.0011782791698351502, -0.020952221006155014, 0.02652638778090477, -0.03549943491816521, -0.008436781354248524, 0.002339563798159361, -0.012054702267050743, -0.03471391648054123, 0.05855141207575798, -0.0027512062806636095, -0.030846744775772095, -0.00993984192609787, 0.016918880864977837, 0.007809875998646021, -0.048430293798446655, 0.02507619746029377, -0.05429147928953171, -0.006140646990388632, 0.04849071800708771, -0.0008582177688367665, -0.019607773050665855, 0.09595422446727753, -0.05468423664569855, 0.01703972928225994, -0.014985294081270695, -0.016359953209757805, 0.061240304261446, 0.02661702409386635, -0.005910278297960758, 0.016752712428569794, 0.02483449876308441, -0.02728169411420822, 0.005460870917886496, 0.03003101237118244, 0.0012991282856091857, 0.053626809269189835, 0.004811306484043598, 0.01987968385219574, 0.004849072080105543, 0.008202635683119297, -0.033203303813934326, 0.010740467347204685, 0.02308218739926815, -0.013799461536109447, 0.02972888946533203, 0.019517136737704277, -0.017855461686849594, -0.022840488702058792, -0.003317686729133129, -0.018505025655031204, 0.03640580549836159, -0.0317833237349987, 0.04945751279592514, -0.003587709041312337, 0.02048392966389656, -0.0008138434495776892, 0.004380781669169664, -0.05664803832769394, -0.01743248850107193, 0.02093711495399475, 0.0016786701744422317, -0.041995078325271606, -0.0019232007907703519, 0.018912890926003456, 0.03755387291312218, -0.011178545653820038, 0.04205550253391266, -0.008882411755621433, 0.09287256747484207, -0.002492513507604599, -0.06087775528430939, 0.014018501155078411, 0.038641512393951416, -0.021571572870016098, -0.020770946517586708, -0.022190924733877182, 0.08115020394325256, 0.02542363852262497, 0.018157584592700005, 0.0005900837131775916, -0.05151194706559181, -0.0012660835636779666, 0.0048906137235462666, 0.02587682381272316, 0.017659081146121025, 0.0011131339706480503, -0.013044154271483421, -0.05163279548287392, 0.013482232578098774, -0.028248487040400505, -0.029049113392829895, 0.02897358313202858, 0.004120200406759977, -0.0009818993275985122, 0.012522992677986622, 0.01311213243752718, 0.011820556595921516, -0.004799976944923401, -0.014902209863066673, 0.007938277907669544, 0.05269022658467293, 0.011284288950264454, -0.02258368395268917, 0.030741000548005104, -0.023595795035362244, 0.016662076115608215, -0.023187929764389992, -0.021103281527757645, 0.025589806959033012, 0.060424573719501495, 0.008534970693290234, -0.04577161371707916, 0.054321691393852234, 0.024245359003543854, 0.03420030698180199, -0.0131650036200881, -0.005015239585191011, -0.012447461485862732, -0.0346837043762207, -0.027402544394135475, -0.002122413134202361, -0.0015880332794040442, -0.0003125083458144218, -0.025786185637116432, 0.005755440331995487, 0.006087775807827711, -0.021496040746569633, 0.001679614302702248, -0.002014781814068556, 0.02342962846159935, 0.009297830983996391, -8.312804311572108e-06, 0.0019326421897858381, 0.022493047639727592, 0.07692047953605652, -0.006272825878113508, -0.029502296820282936, 0.034442007541656494, 0.0017069941386580467, -0.010657384060323238, -0.0010999160585924983, -0.036949627101421356, 0.008376356214284897, -0.020544353872537613, -0.01833885721862316, 0.05259959027171135, -0.012666501104831696, 0.00827061291784048, -0.015574433840811253, 0.04849071800708771, 0.08096892386674881, -0.011495774611830711, 0.004546949174255133, 0.017115259543061256, -0.025937248021364212, -0.02007606439292431, 0.028052108362317085, 0.007300043478608131, 0.03957809507846832, -0.039487458765506744, -0.02836933732032776, 0.013134791515767574, -0.00717919459566474, -0.055076997727155685, 0.00042981698061339557, 0.023248353973031044, 0.011382479220628738, -0.017900779843330383, 0.03265948221087456, 0.01808205246925354, -0.01747780665755272, 0.01018909364938736, 0.01238703727722168, 0.0038596196100115776, -0.003646245226264, -0.009932288900017738, 0.03471391648054123, -0.0022885806392878294, 0.00021172204287722707, -0.021450722590088844, -0.08809902518987656, 0.03220629692077637, -0.03265948221087456, -0.032840754836797714, -0.020000534132122993, -0.026450855657458305, -0.016903774812817574, -0.02648106962442398, 0.020121382549405098, 0.0060462336987257, 0.031692687422037125, 0.04495588317513466, 0.016223996877670288, -0.011284288950264454, 0.0036235861480236053, -0.02542363852262497, 0.07885406911373138, -0.009109004400670528, -0.013784355483949184, 0.012115126475691795, -0.00829327292740345, -0.012575863860547543, -0.04625501111149788, 0.031450990587472916, 0.04296186938881874, 0.03972915560007095, 0.0031080888584256172, -0.028701672330498695, 0.04172316566109657, 0.04275038465857506, 0.028052108362317085, 0.03586198389530182, 0.025061091408133507, 0.06296240538358688, -0.01028728298842907, -0.031148867681622505, -0.022810276597738266, -0.02483449876308441, -0.07033420354127884, 0.028490185737609863, -0.013874992728233337, 0.00646920595318079, 0.027100421488285065, 0.0, 0.03957809507846832, 0.013399149291217327, 0.004278814885765314, 0.023067081347107887, 0.0012330389581620693, -0.03087695688009262, -0.038037266582250595, -0.008285719901323318, 0.0021167483646422625, -0.06235815957188606, 0.003432871075347066, 0.00827061291784048, -0.027236375957727432, -0.005324915517121553, -0.03223650902509689, 0.06519811600446701, 0.016359953209757805, 0.022417515516281128, -0.010022926144301891, -0.019456712529063225, -0.02886783890426159, -0.021148599684238434, -0.025997672230005264, -0.009547082707285881, 0.022190924733877182, -0.016254210844635963, 0.055771879851818085, -0.010249517858028412, -0.05537911877036095, 0.0248798169195652, 0.0359526202082634, -0.005060557741671801, -0.04087722301483154, -0.1198219284415245, 0.024910029023885727, 0.007983596995472908, 0.029985694214701653, -0.028233380988240242, -0.0013831562828272581, -0.0176288690418005, -0.07208651304244995, 0.012877986766397953, -0.012251081876456738, 0.030786318704485893, -0.04335463047027588, -0.00899570807814598, -0.07468476891517639, -0.004180625081062317, 0.05643654987215996, 0.023051973432302475, -0.01083865761756897, -0.03462328016757965, -0.022568577900528908, 0.03915512189269066, 0.008504758588969707, 0.01555932778865099, 0.024109404534101486, -0.0035121783148497343, -0.03102801740169525, 0.020408399403095245, 0.004969920963048935, -0.11130206286907196, 0.02352026477456093, -0.015453584492206573, 0.03323351591825485, 0.06084754317998886, -0.0007723015733063221, 0.010853763669729233, -0.021994544193148613, 0.06713169813156128, -0.040695950388908386, -0.00619351863861084, 0.005468423943966627, 0.02258368395268917, -0.0032723683398216963, -0.026737872511148453, 0.04281080886721611, 0.05803780257701874, -0.0013227316085249186 ], "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\ThingOwner.txt\n\npublic class ThingOwner : ThingOwner, IList, ICollection, IEnumerable, IEnumerable where T : Thing\n{\n\tprivate List innerList = new List();\n\n\tpublic List InnerListForReading => innerList;\n\n\tpublic new T this[int index] => innerList[index];\n\n\tpublic override int Count => innerList.Count;\n\n\tT IList.this[int index]\n\t{\n\t\tget\n\t\t{\n\t\t\treturn innerList[index];\n\t\t}\n\t\tset\n\t\t{\n\t\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow setting individual elements.\");\n\t\t}\n\t}\n\n\tbool ICollection.IsReadOnly => true;\n\n\tpublic ThingOwner()\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner)\n\t{\n\t}\n\n\tpublic ThingOwner(IThingHolder owner, bool oneStackOnly, LookMode contentsLookMode = LookMode.Deep, bool removeContentsIfDestroyed = true)\n\t\t: base(owner, oneStackOnly, contentsLookMode, removeContentsIfDestroyed)\n\t{\n\t}\n\n\tpublic override void ExposeData()\n\t{\n\t\tbase.ExposeData();\n\t\tScribe_Collections.Look(ref innerList, \"innerList\", true, contentsLookMode);\n\t\tif (Scribe.mode == LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\tint num = innerList.RemoveAll((T x) => x == null || (x is MinifiedThing minifiedThing && minifiedThing.InnerThing == null));\n\t\t\tif (num > 0)\n\t\t\t{\n\t\t\t\tLog.Warning($\"ThingOwner removed {num} invalid entries during PostLoadInit.\");\n\t\t\t}\n\t\t}\n\t\tif (Scribe.mode != LoadSaveMode.LoadingVars && Scribe.mode != LoadSaveMode.PostLoadInit)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] != null)\n\t\t\t{\n\t\t\t\tinnerList[i].holdingOwner = this;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic List.Enumerator GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tpublic override int GetCountCanAccept(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (!(item is T))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn base.GetCountCanAccept(item, canMergeWithExistingStacks);\n\t}\n\n\tpublic override int TryAdd(Thing item, int count, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (count <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item?.ToString() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + count + \" of \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tint stackCount = item.stackCount;\n\t\tint num = Mathf.Min(stackCount, count);\n\t\tThing thing = item.SplitOff(num);\n\t\tif (!TryAdd((T)thing, canMergeWithExistingStacks))\n\t\t{\n\t\t\tif (thing != item)\n\t\t\t{\n\t\t\t\tint result = stackCount - item.stackCount - thing.stackCount;\n\t\t\t\titem.TryAbsorbStack(thing, respectStackLimit: false);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn stackCount - item.stackCount;\n\t\t}\n\t\tCompPushable compPushable = item.TryGetComp();\n\t\tif (compPushable != null && owner is Pawn pawn)\n\t\t{\n\t\t\tcompPushable.OnStartedCarrying(pawn);\n\t\t}\n\t\treturn num;\n\t}\n\n\tpublic override bool TryAdd(Thing item, bool canMergeWithExistingStacks = true)\n\t{\n\t\tif (item == null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add null item to ThingOwner.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (Contains(item))\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this item is already here.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner != null)\n\t\t{\n\t\t\tLog.Warning(\"Tried to add \" + item.ToStringSafe() + \" to ThingOwner but this thing is already in another container. owner=\" + owner.ToStringSafe() + \", current container owner=\" + item.holdingOwner.Owner.ToStringSafe() + \". Use TryAddOrTransfer, TryTransferToContainer, or remove the item before adding it.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!CanAcceptAnyOf(item, canMergeWithExistingStacks))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (canMergeWithExistingStacks)\n\t\t{\n\t\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t\t{\n\t\t\t\tT val = innerList[i];\n\t\t\t\tif (!val.CanStackWith(item))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint num = Mathf.Min(item.stackCount, val.def.stackLimit - val.stackCount);\n\t\t\t\tif (num > 0)\n\t\t\t\t{\n\t\t\t\t\tThing other = item.SplitOff(num);\n\t\t\t\t\tint stackCount = val.stackCount;\n\t\t\t\t\tval.TryAbsorbStack(other, respectStackLimit: true);\n\t\t\t\t\tif (val.stackCount > stackCount)\n\t\t\t\t\t{\n\t\t\t\t\t\tNotifyAddedAndMergedWith(val, val.stackCount - stackCount);\n\t\t\t\t\t}\n\t\t\t\t\tif (item.Destroyed || item.stackCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Count >= maxStacks)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\titem.holdingOwner = this;\n\t\tinnerList.Add(item2);\n\t\tNotifyAdded(item2);\n\t\treturn true;\n\t}\n\n\tprotected override void NotifyAdded(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemAdded(item as T);\n\t\t}\n\t\tbase.NotifyAdded(item);\n\t}\n\n\tprotected override void NotifyRemoved(Thing item)\n\t{\n\t\tif (owner is IThingHolderEvents thingHolderEvents)\n\t\t{\n\t\t\tthingHolderEvents.Notify_ItemRemoved(item as T);\n\t\t}\n\t\tbase.NotifyRemoved(item);\n\t}\n\n\tpublic void TryAddRangeOrTransfer(IEnumerable things, bool canMergeWithExistingStacks = true, bool destroyLeftover = false)\n\t{\n\t\tif (things == this)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (things is ThingOwner thingOwner)\n\t\t{\n\t\t\tthingOwner.TryTransferAllToContainer(this, canMergeWithExistingStacks);\n\t\t\tif (destroyLeftover)\n\t\t\t{\n\t\t\t\tthingOwner.ClearAndDestroyContents();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (things is IList list)\n\t\t{\n\t\t\tfor (int i = 0; i < list.Count; i++)\n\t\t\t{\n\t\t\t\tif (!TryAddOrTransfer(list[i], canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t\t{\n\t\t\t\t\tlist[i].Destroy();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tforeach (T thing in things)\n\t\t{\n\t\t\tif (!TryAddOrTransfer(thing, canMergeWithExistingStacks) && destroyLeftover)\n\t\t\t{\n\t\t\t\tthing.Destroy();\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic override int IndexOf(Thing item)\n\t{\n\t\tif (!(item is T item2))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn innerList.IndexOf(item2);\n\t}\n\n\tpublic override bool Remove(Thing item)\n\t{\n\t\tif (!Contains(item))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (item.holdingOwner == this)\n\t\t{\n\t\t\titem.holdingOwner = null;\n\t\t}\n\t\tint index = innerList.LastIndexOf((T)item);\n\t\tinnerList.RemoveAt(index);\n\t\tNotifyRemoved(item);\n\t\treturn true;\n\t}\n\n\tpublic int RemoveAll(Predicate predicate)\n\t{\n\t\tint num = 0;\n\t\tfor (int num2 = innerList.Count - 1; num2 >= 0; num2--)\n\t\t{\n\t\t\tif (predicate(innerList[num2]))\n\t\t\t{\n\t\t\t\tRemove(innerList[num2]);\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n\n\tprotected override Thing GetAt(int index)\n\t{\n\t\treturn innerList[index];\n\t}\n\n\tpublic void GetThingsOfType(List list) where J : Thing\n\t{\n\t\tfor (int i = 0; i < innerList.Count; i++)\n\t\t{\n\t\t\tif (innerList[i] is J item)\n\t\t\t{\n\t\t\t\tlist.Add(item);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic int TryTransferToContainer(Thing item, ThingOwner otherContainer, int stackCount, out T resultingTransferredItem, bool canMergeWithExistingStacks = true)\n\t{\n\t\tThing resultingTransferredItem2;\n\t\tint result = TryTransferToContainer(item, otherContainer, stackCount, out resultingTransferredItem2, canMergeWithExistingStacks);\n\t\tresultingTransferredItem = (T)resultingTransferredItem2;\n\t\treturn result;\n\t}\n\n\tpublic new T Take(Thing thing, int count)\n\t{\n\t\treturn (T)base.Take(thing, count);\n\t}\n\n\tpublic new T Take(Thing thing)\n\t{\n\t\treturn (T)base.Take(thing);\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, int count, out T resultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing resultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, count, out resultingThing2, placedAction2, nearPlaceValidator);\n\t\tresultingThing = (T)resultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, mode, out lastResultingThing2, placedAction2, nearPlaceValidator);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tpublic bool TryDrop(Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, out T lastResultingThing, Action placedAction = null, Predicate nearPlaceValidator = null)\n\t{\n\t\tAction placedAction2 = null;\n\t\tif (placedAction != null)\n\t\t{\n\t\t\tplacedAction2 = delegate(Thing t, int c)\n\t\t\t{\n\t\t\t\tplacedAction((T)t, c);\n\t\t\t};\n\t\t}\n\t\tThing lastResultingThing2;\n\t\tbool result = TryDrop(thing, dropLoc, map, mode, out lastResultingThing2, placedAction2, nearPlaceValidator, playDropSound: true);\n\t\tlastResultingThing = (T)lastResultingThing2;\n\t\treturn result;\n\t}\n\n\tint IList.IndexOf(T item)\n\t{\n\t\treturn innerList.IndexOf(item);\n\t}\n\n\tvoid IList.Insert(int index, T item)\n\t{\n\t\tthrow new InvalidOperationException(\"ThingOwner doesn't allow inserting individual elements at any position.\");\n\t}\n\n\tvoid ICollection.Add(T item)\n\t{\n\t\tTryAdd(item);\n\t}\n\n\tvoid ICollection.CopyTo(T[] array, int arrayIndex)\n\t{\n\t\tinnerList.CopyTo(array, arrayIndex);\n\t}\n\n\tbool ICollection.Contains(T item)\n\t{\n\t\treturn innerList.Contains(item);\n\t}\n\n\tbool ICollection.Remove(T item)\n\t{\n\t\treturn Remove(item);\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n\n\tIEnumerator IEnumerable.GetEnumerator()\n\t{\n\t\treturn innerList.GetEnumerator();\n\t}\n}\n\n", "timestamp": "2025-08-24 20:56:53,480" } }