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

Detailed Description

items dispenser that reloads its charges over time

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

Inheritance diagram for CityBuilderCore.ReloadingItemsDispenser:
CityBuilderCore.IItemsDispenser CityBuilderCore.ISaveData

Classes

class  ReloadingData
 

Public Member Functions

ItemQuantity Dispense ()
 dispenses items from the dispense, depending on the dispenser this might destroy it or make it inactive for a while
 
string SaveData ()
 serializes the objects state(usually to json) and returns it
 
void LoadData (string json)
 deserializes the serialized json data and loads the data as its new state
 

Public Attributes

string Key
 
ItemQuantity Items
 
int TotalCharges
 
float ReloadTime
 
GameObject[] Visuals
 
IntEvent Dispensed
 

Properties

Vector3 Position [get]
 absolute position of the dispenser on the map
 
- Properties inherited from CityBuilderCore.IItemsDispenser

Member Function Documentation

◆ Dispense()

ItemQuantity CityBuilderCore.ReloadingItemsDispenser.Dispense ( )
inline

dispenses items from the dispense, depending on the dispenser this might destroy it or make it inactive for a while

Returns
the items dispensed that can be added to the retriever and brought home

Implements CityBuilderCore.IItemsDispenser.

◆ LoadData()

void CityBuilderCore.ReloadingItemsDispenser.LoadData ( string json)
inline

deserializes the serialized json data and loads the data as its new state

Parameters
json

Implements CityBuilderCore.ISaveData.

◆ SaveData()

string CityBuilderCore.ReloadingItemsDispenser.SaveData ( )
inline

serializes the objects state(usually to json) and returns it

Returns
serialized save data

Implements CityBuilderCore.ISaveData.

Property Documentation

◆ Position

Vector3 CityBuilderCore.ReloadingItemsDispenser.Position
get

absolute position of the dispenser on the map

Implements CityBuilderCore.IItemsDispenser.