Loading...
Searching...
No Matches
CityBuilderCore.ItemScore Class Reference

Detailed Description

item quantity in global storage

https://citybuilder.softleitner.com/manual/scores

Inheritance diagram for CityBuilderCore.ItemScore:
CityBuilderCore.Score

Public Types

enum  CalculationMode {
  Global = 0 , Stored = 10 , Owned = 20 , OwnedBuildings = 21 ,
  OwnedWalkers = 22
}
 determines how the score is calculated More...
 

Public Member Functions

override int Calculate ()
 
- Public Member Functions inherited from CityBuilderCore.Score
int Calculate ()
 freshly calculates the score value
consider using GetCalculatorValue instead to get a buffered value
 
int GetCalculatorValue ()
 gets the buffered score value from the IScoresCalculator
 

Public Attributes

Item Item
 
CalculationMode Mode
 
- Public Attributes inherited from CityBuilderCore.Score
string Name
 

Member Enumeration Documentation

◆ CalculationMode

determines how the score is calculated

Enumerator
Global 

gets quantity from IGlobalStorage

Stored 

sums up quantities in all IStorageComponents

Owned 

sums up quantities in all IItemOwners

OwnedBuildings 

sums up quantities in IItemOwner buildings

OwnedWalkers 

sums up quantities in IItemOwner walkers