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

Detailed Description

action that lets a receiver get items from the walker and immediately ends
only really makes sense as part of a larger process(walk>give>walk>receive)

Inheritance diagram for CityBuilderCore.ReceiveItemsAction:
CityBuilderCore.WalkerAction

Public Member Functions

 ReceiveItemsAction (IItemReceiver Receiver, ItemQuantity items, bool unreserve=false)
 
override void Start (Walker walker)
 called by the walker when the action is first started, either by being first in a process or when the previous action has ended
 
override void Cancel (Walker walker)
 called by the walker if the action was active when its process was canceled
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
- Public Member Functions inherited from CityBuilderCore.WalkerAction
virtual void Continue (Walker walker)
 called by the walker after the game has been loaded
 
virtual void End (Walker walker)
 called by the walker when this is the active action and the process advances
do not call this directly, to end an action call Walker.AdvanceProcess
 

Member Function Documentation

◆ Cancel()

override void CityBuilderCore.ReceiveItemsAction.Cancel ( Walker walker)
inlinevirtual

called by the walker if the action was active when its process was canceled

Parameters
walkerthe walker performing this action

Reimplemented from CityBuilderCore.WalkerAction.

◆ Start()

override void CityBuilderCore.ReceiveItemsAction.Start ( Walker walker)
inlinevirtual

called by the walker when the action is first started, either by being first in a process or when the previous action has ended

Parameters
walkerthe walker performing this action

Reimplemented from CityBuilderCore.WalkerAction.