Table of Contents

Class RoomStatsHolder

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class RoomStatsHolder
Inheritance
RoomStatsHolder
Inherited Members
Extension Methods

Constructors

RoomStatsHolder(SurfaceNetworkHandler, int, int, int)

public RoomStatsHolder(SurfaceNetworkHandler handler, int startMoney, int startQuotaToReachToReach, int daysPerQuota)

Parameters

handler SurfaceNetworkHandler
startMoney int
startQuotaToReachToReach int
daysPerQuota int

Fields

CAMERA_UPGRADES_KEY

public const string CAMERA_UPGRADES_KEY = "cu"

Field Value

string

CURRENT_QUOTA_KEY

public const string CURRENT_QUOTA_KEY = "cq"

Field Value

string

DAYS_PER_QUOTA_KEY

public const string DAYS_PER_QUOTA_KEY = "dpq"

Field Value

string

DAY_KEY

public const string DAY_KEY = "d"

Field Value

string

DAY_QUOTA_KEY

public const string DAY_QUOTA_KEY = "q"

Field Value

string

DAY_SEED_KEY

public const string DAY_SEED_KEY = "s"

Field Value

string

LAST_PLAYED_KEY

public const string LAST_PLAYED_KEY = "lp"

Field Value

string

MONEY_KEY

public const string MONEY_KEY = "m"

Field Value

string

NETWORK_DEALS_TO_SELECT_KEY

public const string NETWORK_DEALS_TO_SELECT_KEY = "nds"

Field Value

string

OnAddQuota

public Action<int> OnAddQuota

Field Value

Action<int>

QUOTA_SIZE_KEY

public const string QUOTA_SIZE_KEY = "qs"

Field Value

string

SAVE_SEED_KEY

public const string SAVE_SEED_KEY = "gs"

Field Value

string

currentQuoutaInternal

public int currentQuoutaInternal

Field Value

int

m_OnUpdateAction

public Action m_OnUpdateAction

Field Value

Action

m_SurfaceHandler

public SurfaceNetworkHandler m_SurfaceHandler

Field Value

SurfaceNetworkHandler

m_quotaToReachInternal

public int m_quotaToReachInternal

Field Value

int

Properties

ComputerRoomDoorUnlocked

public bool ComputerRoomDoorUnlocked { get; }

Property Value

bool

CurrentCamera

public CameraUpgradeTable CurrentCamera { get; set; }

Property Value

CameraUpgradeTable

CurrentDay

public int CurrentDay { get; set; }

Property Value

int

CurrentQuota

public int CurrentQuota { get; set; }

Property Value

int

CurrentQuotaDay

public int CurrentQuotaDay { get; set; }

Property Value

int

CurrentRun

public int CurrentRun { get; }

Property Value

int

DaysPerQutoa

public int DaysPerQutoa { get; set; }

Property Value

int

IsQuotaDay

public bool IsQuotaDay { get; }

Property Value

bool

LevelToPlay

public int LevelToPlay { get; set; }

Property Value

int

MatchSeed

public int MatchSeed { get; set; }

Property Value

int

Money

public int Money { get; set; }

Property Value

int

NetworkDealsToSelect

public NetworkDealBase[] NetworkDealsToSelect { get; set; }

Property Value

NetworkDealBase[]

QuotaToReach

public int QuotaToReach { get; set; }

Property Value

int

ReceivedQuota

public bool ReceivedQuota { get; set; }

Property Value

bool

m_QuotaDay

public bool m_QuotaDay { get; }

Property Value

bool

Methods

AddCameraUpgrade(byte)

public void AddCameraUpgrade(byte upgrade)

Parameters

upgrade byte

AddMoney(int)

public void AddMoney(int money)

Parameters

money int

AddOnUpdateAction(Action)

public void AddOnUpdateAction(Action a)

Parameters

a Action

AddQuota(int)

public void AddQuota(int quotaToAdd)

Parameters

quotaToAdd int

CalculateIfReachedQuota()

public bool CalculateIfReachedQuota()

Returns

bool

CalculateNewQuota(bool)

public void CalculateNewQuota(bool consumeQuota = true)

Parameters

consumeQuota bool

CanAfford(int)

public bool CanAfford(int cost)

Parameters

cost int

Returns

bool

DeserializeNetworkDeals(byte[])

public void DeserializeNetworkDeals(byte[] networkDeals)

Parameters

networkDeals byte[]

GenerateBudget()

public void GenerateBudget()

GetDaysLeft()

public int GetDaysLeft()

Returns

int

HasUpgrade(byte)

public bool HasUpgrade(byte cameraUpgradeID)

Parameters

cameraUpgradeID byte

Returns

bool

LoadFromSave(Save)

public void LoadFromSave(Save currentSave)

Parameters

currentSave Save

NewMapToPlay()

public void NewMapToPlay()

NextDay()

public void NextDay()

OnStatsUpdated()

public void OnStatsUpdated()

Print()

public void Print()

RegenerateSeed()

public void RegenerateSeed()

RemoveMoney(int)

public void RemoveMoney(int money)

Parameters

money int

ResetCameraUpgrades()

public void ResetCameraUpgrades()

ResetCurrentQuotaDay()

public void ResetCurrentQuotaDay()

SerializeNetworkDealsToSelect()

public byte[] SerializeNetworkDealsToSelect()

Returns

byte[]

SetCurrentDay(int)

public void SetCurrentDay(int day)

Parameters

day int

SetCurrentRun(int)

public void SetCurrentRun(int run)

Parameters

run int

SetNetworkDealsToSelect(NetworkDealBase[])

public void SetNetworkDealsToSelect(NetworkDealBase[] deals)

Parameters

deals NetworkDealBase[]

Update(Hashtable)

public void Update(Hashtable propertiesThatChanged)

Parameters

propertiesThatChanged Hashtable