Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISHandcraftAction Class Reference
Inheritance diagram for ISHandcraftAction:
ISBaseTimedAction ISBaseObject

Public Member Functions

boolean isValid ()
void update ()
void clearItemsProgressBar (boolean bSetJobType)
void serverStart ()
void start ()
void stop ()
void perform ()
boolean complete ()
void performRecipe ()
number getDuration ()
void setOnStart (umbrella::ISHandcraftAction::OnStart _func, unknown _target)
void setOnComplete (function _func, unknown _target)
void setOnCancel (function _func, unknown _target)
 ISHandcraftAction (IsoPlayer character, CraftRecipe craftRecipe, ArrayList< ItemContainer > containers, IsoObject isoObject, CraftBench craftBench, table< integer, ArrayList< InventoryItem > >|false manualInputs, ArrayList< InventoryItem > items)
Public Member Functions inherited from ISBaseTimedAction
boolean isValidStart ()
void isValid ()
boolean isUsingTimeout ()
void update ()
void forceComplete ()
void forceStop ()
void forceCancel ()
number getJobDelta ()
unknown resetJobDelta ()
boolean waitToStart ()
void start ()
boolean isStarted ()
void stop ()
void perform ()
number getDuration ()
void create ()
void begin ()
void setCurrentTime (number time)
void setTime (number time)
number adjustMaxTime (number maxTime)
void setActionAnim (CharacterActionAnims|string _action, nil _displayItemModels)
void setOverrideHandModels (InventoryItem _primaryHand, InventoryItem _secondaryHand, boolean _resetModel)
void setOverrideHandModelsString (string _primaryHand, string _secondaryHand, boolean _resetModel)
void overrideWeaponType ()
void restoreWeaponType ()
void setAnimVariable (string _key, string _val)
ISBaseTimedAction addAfter (ISBaseTimedAction action)
void beginAddingActions ()
boolean endAddingActions ()
void getDeltaModifiers (MoveDeltaModifiers deltas)
 ISBaseTimedAction (IsoPlayer character)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
void addEventListener (string _event, function _callback, unknown _target)
void removeEventListener (string _event, function _callback)
void triggerEvent (string _event, unknown ...)
void clearEventListeners ()
 ISBaseObject ()

Static Public Member Functions

static ISHandcraftAction FromLogicMultiple (HandcraftLogic handcraftLogic)
static ISHandcraftAction FromLogic (HandcraftLogic handcraftLogic)

Public Attributes

HandcraftLogic logic
ArrayList< InventoryItem > items
integer sound
umbrella::ISHandcraftAction::OnStart onStartFunc
unknown onStartTarget
function onCompleteFunc
unknown onCompleteTarget
function onCancelFunc
unknown onCancelTarget
IsoObject isoObject
CraftBench craftBench
ArrayList< ItemContainer > containers
table< integer, ArrayList< InventoryItem > > false manualInputs
CraftRecipe craftRecipe
TimedActionScript actionScript
Public Attributes inherited from ISBaseTimedAction
number maxTime
LuaTimedActionNew action
boolean _isAddingActions
number _numAddedActions
IsoPlayer character
boolean stopOnWalk
boolean stopOnRun
boolean stopOnAim
number caloriesModifier
boolean useProgressBar
boolean forceProgressBar
boolean loopedAction
Path path
string name
NetTimedAction netAction
Public Attributes inherited from ISBaseObject
string Type
table< string, table< function, unknown > > __eventListeners

Constructor & Destructor Documentation

◆ ISHandcraftAction()

ISHandcraftAction::ISHandcraftAction ( IsoPlayer character,
CraftRecipe craftRecipe,
ArrayList< ItemContainer > containers,
IsoObject isoObject,
CraftBench craftBench,
table< integer, ArrayList< InventoryItem > >|false manualInputs,
ArrayList< InventoryItem > items )

Member Function Documentation

◆ clearItemsProgressBar()

void ISHandcraftAction::clearItemsProgressBar ( boolean bSetJobType)

◆ complete()

boolean ISHandcraftAction::complete ( )

◆ FromLogic()

ISHandcraftAction ISHandcraftAction::FromLogic ( HandcraftLogic handcraftLogic)
static

◆ FromLogicMultiple()

ISHandcraftAction ISHandcraftAction::FromLogicMultiple ( HandcraftLogic handcraftLogic)
static

◆ getDuration()

number ISHandcraftAction::getDuration ( )

◆ isValid()

boolean ISHandcraftAction::isValid ( )

◆ perform()

void ISHandcraftAction::perform ( )

◆ performRecipe()

void ISHandcraftAction::performRecipe ( )

◆ serverStart()

void ISHandcraftAction::serverStart ( )

◆ setOnCancel()

void ISHandcraftAction::setOnCancel ( function _func,
unknown _target )

◆ setOnComplete()

void ISHandcraftAction::setOnComplete ( function _func,
unknown _target )

◆ setOnStart()

void ISHandcraftAction::setOnStart ( umbrella::ISHandcraftAction::OnStart _func,
unknown _target )

◆ start()

void ISHandcraftAction::start ( )

◆ stop()

void ISHandcraftAction::stop ( )

◆ update()

void ISHandcraftAction::update ( )

Member Data Documentation

◆ actionScript

TimedActionScript ISHandcraftAction::actionScript

◆ containers

ArrayList<ItemContainer> ISHandcraftAction::containers

◆ craftBench

CraftBench ISHandcraftAction::craftBench

◆ craftRecipe

CraftRecipe ISHandcraftAction::craftRecipe

◆ isoObject

IsoObject ISHandcraftAction::isoObject

◆ items

ArrayList<InventoryItem> ISHandcraftAction::items

◆ logic

HandcraftLogic ISHandcraftAction::logic

◆ manualInputs

table<integer, ArrayList<InventoryItem> > false ISHandcraftAction::manualInputs

◆ onCancelFunc

function ISHandcraftAction::onCancelFunc

◆ onCancelTarget

unknown ISHandcraftAction::onCancelTarget

◆ onCompleteFunc

function ISHandcraftAction::onCompleteFunc

◆ onCompleteTarget

unknown ISHandcraftAction::onCompleteTarget

◆ onStartFunc

umbrella::ISHandcraftAction::OnStart ISHandcraftAction::onStartFunc

◆ onStartTarget

unknown ISHandcraftAction::onStartTarget

◆ sound

integer ISHandcraftAction::sound

The documentation for this class was generated from the following file: