Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | List of all members
ResourceMap Class Reference
Inheritance diagram for ResourceMap:

Public Member Functions

string DetermineBiomeName (AbundanceRequest request)
 
List< string > FetchAllResourceNames (HarvestTypes harvest)
 
int GenerateAbundanceSeed (AbundanceRequest request, string biomeName)
 
float GetAbundance (AbundanceRequest request)
 
float GetAbundanceFromCache (AbundanceRequest request, string biomeName)
 
DepletionNode GetDepletionNode (int planetId, string resource, int x, int y)
 
Vector2 GetDepletionNode (double latitude, double longitude)
 
float GetDepletionNodeValue (int planetId, string resource, int x, int y)
 
PlanetaryResource GetResourceByName (string resName, CelestialBody body, HarvestTypes harvest)
 
List< PlanetaryResourceGetResourceItemList (HarvestTypes harvest, CelestialBody body)
 
bool IsBiomeUnlocked (int planetId, string biomeName)
 
bool IsPlanetScanned (int planetId)
 
void ResetCache ()
 
void SetDepletionNodeValue (int planetId, string resource, int x, int y, float value)
 
void UnlockBiome (int planetId, string biomeName)
 
void UnlockPlanet (int planetId)
 

Static Public Member Functions

static string GetDefaultSituation (HarvestTypes type)
 

Protected Member Functions

virtual void Awake ()
 This is a modified singleton. We always destroy our old instance instead of destorying ourselves if it's nonnull. More...
 

Properties

List< BiomeLockDataBiomeLockInfo [get]
 
List< DepletionDataDepletionInfo [get]
 
static bool Initialized [get]
 
static ResourceMap Instance [get, set]
 
List< PlanetScanDataPlanetScanInfo [get]
 

Member Function Documentation

virtual void ResourceMap.Awake ( )
inlineprotectedvirtual

This is a modified singleton. We always destroy our old instance instead of destorying ourselves if it's nonnull.

string ResourceMap.DetermineBiomeName ( AbundanceRequest  request)
inline
List<string> ResourceMap.FetchAllResourceNames ( HarvestTypes  harvest)
inline
int ResourceMap.GenerateAbundanceSeed ( AbundanceRequest  request,
string  biomeName 
)
inline
float ResourceMap.GetAbundance ( AbundanceRequest  request)
inline
float ResourceMap.GetAbundanceFromCache ( AbundanceRequest  request,
string  biomeName 
)
inline
static string ResourceMap.GetDefaultSituation ( HarvestTypes  type)
inlinestatic
DepletionNode ResourceMap.GetDepletionNode ( int  planetId,
string  resource,
int  x,
int  y 
)
inline
Vector2 ResourceMap.GetDepletionNode ( double  latitude,
double  longitude 
)
inline
float ResourceMap.GetDepletionNodeValue ( int  planetId,
string  resource,
int  x,
int  y 
)
inline
PlanetaryResource ResourceMap.GetResourceByName ( string  resName,
CelestialBody  body,
HarvestTypes  harvest 
)
inline
List<PlanetaryResource> ResourceMap.GetResourceItemList ( HarvestTypes  harvest,
CelestialBody  body 
)
inline
bool ResourceMap.IsBiomeUnlocked ( int  planetId,
string  biomeName 
)
inline
bool ResourceMap.IsPlanetScanned ( int  planetId)
inline
void ResourceMap.ResetCache ( )
inline
void ResourceMap.SetDepletionNodeValue ( int  planetId,
string  resource,
int  x,
int  y,
float  value 
)
inline
void ResourceMap.UnlockBiome ( int  planetId,
string  biomeName 
)
inline
void ResourceMap.UnlockPlanet ( int  planetId)
inline

Property Documentation

List<BiomeLockData> ResourceMap.BiomeLockInfo
get
List<DepletionData> ResourceMap.DepletionInfo
get
bool ResourceMap.Initialized
staticget
ResourceMap ResourceMap.Instance
staticgetset
List<PlanetScanData> ResourceMap.PlanetScanInfo
get

The documentation for this class was generated from the following file: