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

Public Member Functions

boolean isValid ()
void update ()
void start ()
void stop ()
void perform ()
boolean complete ()
string getPropItemOrModel (string propStr)
void setOnComplete (function func, unknown arg1, unknown arg2, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8)
number getDuration ()
 ISCraftAction (IsoPlayer character, InventoryItem item, CraftRecipe recipe, ItemContainer container, ArrayList< ItemContainer > containersIn)
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 ()

Public Attributes

InventoryItem item
integer craftSound
function onCompleteFunc
table onCompleteArgs
CraftRecipe recipe
ItemContainer container
ArrayList< ItemContainer > containersIn
ArrayList< ItemContainer > containers
boolean stopOnWalk
boolean stopOnRun
string jobType
boolean forceProgressBar
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

◆ ISCraftAction()

ISCraftAction::ISCraftAction ( IsoPlayer character,
InventoryItem item,
CraftRecipe recipe,
ItemContainer container,
ArrayList< ItemContainer > containersIn )

Member Function Documentation

◆ complete()

boolean ISCraftAction::complete ( )

◆ getDuration()

number ISCraftAction::getDuration ( )

◆ getPropItemOrModel()

string ISCraftAction::getPropItemOrModel ( string propStr)

◆ isValid()

boolean ISCraftAction::isValid ( )

◆ perform()

void ISCraftAction::perform ( )

◆ setOnComplete()

void ISCraftAction::setOnComplete ( function func,
unknown arg1,
unknown arg2,
unknown arg3,
unknown arg4,
unknown arg5,
unknown arg6,
unknown arg7,
unknown arg8 )

◆ start()

void ISCraftAction::start ( )

◆ stop()

void ISCraftAction::stop ( )

◆ update()

void ISCraftAction::update ( )

Member Data Documentation

◆ container

ItemContainer ISCraftAction::container

◆ containers

ArrayList<ItemContainer> ISCraftAction::containers

◆ containersIn

ArrayList<ItemContainer> ISCraftAction::containersIn

◆ craftSound

integer ISCraftAction::craftSound

◆ forceProgressBar

boolean ISCraftAction::forceProgressBar

◆ item

InventoryItem ISCraftAction::item

◆ jobType

string ISCraftAction::jobType

◆ onCompleteArgs

table ISCraftAction::onCompleteArgs

◆ onCompleteFunc

function ISCraftAction::onCompleteFunc

◆ recipe

CraftRecipe ISCraftAction::recipe

◆ stopOnRun

boolean ISCraftAction::stopOnRun

◆ stopOnWalk

boolean ISCraftAction::stopOnWalk

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