ResourceStorage Class

Inherits: LuaObject

Properties
capacity firstResource freeSpace pickReservationResources putReservationResources resources resourcesVolume resourcesWeight storageEmpty

Functions
acceptResourceType appendPickReservation appendPutReservation canDeposit canRetrieve clearStorage deposit depositReserved getPickReservation getPutReservation getResourceCount havePickReservationResources havePutReservationResources retrieve setResourceCount

.capacity
Type: number

.firstResource
Type: string [Read Only]

.freeSpace
Type: number [Read Only]

.pickReservationResources
Type: table [Read Only]

.putReservationResources
Type: table [Read Only]

.resources
Type: table [Read Only]

.resourcesVolume
Type: number [Read Only]

.resourcesWeight
Type: number [Read Only]

.storageEmpty
Type: boolean [Read Only]

acceptResourceType
function acceptResourceType(resTypeName string ) -> boolean

appendPickReservation
function appendPickReservation(strResType string, count number )

appendPutReservation
function appendPutReservation(strResType string, count number )

canDeposit
function canDeposit(resources table ) -> boolean

canRetrieve
function canRetrieve(resources table ) -> boolean

clearStorage
function clearStorage

deposit
function deposit(resources table ) -> boolean

depositReserved
function depositReserved(resources table ) -> boolean

getPickReservation
function getPickReservation(strResType string ) -> number

getPutReservation
function getPutReservation(strResType string ) -> number

getResourceCount
function getResourceCount(type string ) -> number

havePickReservationResources
function havePickReservationResources -> boolean

havePutReservationResources
function havePutReservationResources -> boolean

retrieve
function retrieve(resources table ) -> boolean

setResourceCount
function setResourceCount(type string, count number )