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

Detailed Description

items dispenser that dispenses once and then self destructs

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

Inheritance diagram for CityBuilderCore.SingleItemsDispenser:
CityBuilderCore.IItemsDispenser

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
 

Public Attributes

string Key
 
ItemQuantity Items
 
UnityEvent Dispensed
 

Properties

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

Member Function Documentation

◆ Dispense()

ItemQuantity CityBuilderCore.SingleItemsDispenser.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.

Property Documentation

◆ Position

Vector3 CityBuilderCore.SingleItemsDispenser.Position
get

absolute position of the dispenser on the map

Implements CityBuilderCore.IItemsDispenser.