Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://steamcommunity.com/sharedfiles/filedetails/?id=2909103255
Hope it helps anyone!
static class TemperatureCompDUtility
{
private static Dictionary<int, CompDTemperature> _cachable = new Dictionary<int, CompDTemperature>(100);
public static bool TryGetCompDTemperature(this Thing thing, out CompDTemperature comp)
{
if (_cachable.TryGetValue(thing.thingIDNumber, out comp))
{
if (comp == null) return false;
return true;
}
comp = thing.TryGetComp<CompDTemperature>();
_cachable.Add(thing.thingIDNumber, comp);
if (comp == null) return false;
return true;
}
}
why would i be famous
im shit at the game and barely showed up
But like I said, big project. Requires some AI adjustments. I have other things I plan to work on before I get to it.
Two main concerns I have with this core, and the reasons I only intended it for my own use:
1. Adding temperature comps to too many things may eventually increase lag, though I'm not sure this is a significant problem (diffusion is pretty lightweight)
2. The core doesn't really have a system for adding temperature comps to things, so mods will have to do that themselves and ensure there aren't any conflicts