Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Barrel_ColorBase Class Reference
Inheritance diagram for Barrel_ColorBase:
Barrel_Blue Barrel_Green Barrel_Red Barrel_Yellow

Protected Member Functions

void BleachClothes (ItemBase bleach, PlayerBase player)
override bool CanDetachAttachment (EntityAI parent)
override bool CanPutInCargo (EntityAI parent)
override bool CanPutIntoHands (EntityAI parent)
override bool CanReceiveItemIntoCargo (EntityAI item)
override bool CanReleaseCargo (EntityAI cargo)
override void Close ()
void CloseLoad ()
void ColourClothes (ItemBase rci, ItemBase gci, ItemBase bci, PlayerBase player)
void ColourLeatherClothes (ItemBase color_source, PlayerBase player, string color)
void DetermineAction (PlayerBase player)
override void EECargoIn (EntityAI item)
string GetBarrelCloseSoundset ()
string GetBarrelOpenSoundset ()
override int GetDamageSystemVersionChange ()
override string GetDeploySoundset ()
override float GetLiquidThroughputCoef ()
override void InitItemSounds ()
override void InitItemVariables ()
bool IsLocked ()
override bool IsOpen ()
void Lock (float actiontime)
override void OnDebugSpawn ()
override void OnFreezeStateChangeServer ()
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void OnVariablesSynchronized ()
override void OnWasAttached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
override void Open ()
void OpenLoad ()
void ProduceFertilizer (ItemBase guts, ItemBase plant, PlayerBase player)
override void SetActions ()
void SoundBarrelClosePlay ()
void SoundBarrelOpenPlay ()
void TanPelts (ItemBase lime, PlayerBase player)
void Unlock ()
void UpdateVisualState ()

Protected Attributes

ref OpenableBehaviour m_Openable
ref RainProcurementComponentBarrel m_RainProcComponent
ref RainProcurementManager m_RainProcurement

Private Attributes

ref Timer m_BarrelOpener
bool m_IsLocked = false

Detailed Description

Definition at line 1 of file barrel_colorbase.c.

Member Function Documentation

◆ BleachClothes()

void BleachClothes ( ItemBase bleach,
PlayerBase player )
inlineprotected

◆ CanDetachAttachment()

override bool CanDetachAttachment ( EntityAI parent)
inlineprotected

Definition at line 525 of file barrel_colorbase.c.

References GetNumberOfItems().

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprotected

Definition at line 490 of file barrel_colorbase.c.

References GetNumberOfItems(), and IsOpen().

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 501 of file barrel_colorbase.c.

References GetNumberOfItems(), and IsOpen().

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected

Definition at line 512 of file barrel_colorbase.c.

References IsOpen().

◆ CanReleaseCargo()

override bool CanReleaseCargo ( EntityAI cargo)
inlineprotected

Definition at line 520 of file barrel_colorbase.c.

References IsOpen().

◆ Close()

override void Close ( )
inlineprotected

Definition at line 106 of file barrel_colorbase.c.

References m_Openable, m_RainProcComponent, SetTakeable(), and UpdateVisualState().

Referenced by DetermineAction(), and OnWasDetached().

◆ CloseLoad()

void CloseLoad ( )
inlineprotected

Definition at line 115 of file barrel_colorbase.c.

References m_Openable, m_RainProcComponent, SetTakeable(), and UpdateVisualState().

Referenced by OnStoreLoad().

◆ ColourClothes()

void ColourClothes ( ItemBase rci,
ItemBase gci,
ItemBase bci,
PlayerBase player )
inlineprotected

Definition at line 426 of file barrel_colorbase.c.

References Math::Clamp(), g_Game, and Lock().

Referenced by DetermineAction().

◆ ColourLeatherClothes()

void ColourLeatherClothes ( ItemBase color_source,
PlayerBase player,
string color )
inlineprotected

Definition at line 303 of file barrel_colorbase.c.

References g_Game, and Lock().

Referenced by DetermineAction().

◆ DetermineAction()

◆ EECargoIn()

override void EECargoIn ( EntityAI item)
inlineprotected

Definition at line 29 of file barrel_colorbase.c.

◆ GetBarrelCloseSoundset()

string GetBarrelCloseSoundset ( )
inlineprotected

Definition at line 555 of file barrel_colorbase.c.

Referenced by InitItemSounds(), and ActionCloseBarrel::OnExecuteServer().

◆ GetBarrelOpenSoundset()

string GetBarrelOpenSoundset ( )
inlineprotected

Definition at line 550 of file barrel_colorbase.c.

Referenced by InitItemSounds(), and ActionOpenBarrel::OnExecuteServer().

◆ GetDamageSystemVersionChange()

override int GetDamageSystemVersionChange ( )
inlineprotected

Definition at line 24 of file barrel_colorbase.c.

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprotected

Definition at line 545 of file barrel_colorbase.c.

◆ GetLiquidThroughputCoef()

override float GetLiquidThroughputCoef ( )
inlineprotected

Definition at line 561 of file barrel_colorbase.c.

References LIQUID_THROUGHPUT_BARREL.

◆ InitItemSounds()

override void InitItemSounds ( )
inlineprotected

◆ InitItemVariables()

override void InitItemVariables ( )
inlineprotected

◆ IsLocked()

bool IsLocked ( )
inlineprotected

◆ IsOpen()

◆ Lock()

void Lock ( float actiontime)
inlineprotected

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected

Definition at line 576 of file barrel_colorbase.c.

References SetQuantityMax().

◆ OnFreezeStateChangeServer()

override void OnFreezeStateChangeServer ( )
inlineprotected

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

Definition at line 59 of file barrel_colorbase.c.

References CloseLoad(), OpenLoad(), and Serializer::Read().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Definition at line 52 of file barrel_colorbase.c.

References m_Openable, and Serializer::Write().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected

Definition at line 158 of file barrel_colorbase.c.

References UpdateVisualState().

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprotected

Definition at line 130 of file barrel_colorbase.c.

References Open().

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprotected

Definition at line 137 of file barrel_colorbase.c.

References Close().

◆ Open()

override void Open ( )
inlineprotected

◆ OpenLoad()

void OpenLoad ( )
inlineprotected

Definition at line 96 of file barrel_colorbase.c.

References m_Openable, m_RainProcComponent, SetTakeable(), and UpdateVisualState().

Referenced by OnStoreLoad().

◆ ProduceFertilizer()

void ProduceFertilizer ( ItemBase guts,
ItemBase plant,
PlayerBase player )
inlineprotected

Definition at line 251 of file barrel_colorbase.c.

References GameConstants::BAREL_LIME_PER_PLANT, Lock(), and ItemBase::SetQuantity().

Referenced by DetermineAction().

◆ SetActions()

override void SetActions ( )
inlineprotected

Definition at line 566 of file barrel_colorbase.c.

References AddAction().

◆ SoundBarrelClosePlay()

void SoundBarrelClosePlay ( )
protected

◆ SoundBarrelOpenPlay()

void SoundBarrelOpenPlay ( )
protected

◆ TanPelts()

void TanPelts ( ItemBase lime,
PlayerBase player )
inlineprotected

◆ Unlock()

void Unlock ( )
inlineprotected

Definition at line 171 of file barrel_colorbase.c.

References m_IsLocked, and Open().

◆ UpdateVisualState()

void UpdateVisualState ( )
inlineprotected

Definition at line 144 of file barrel_colorbase.c.

References IsOpen().

Referenced by Close(), CloseLoad(), OnVariablesSynchronized(), Open(), and OpenLoad().

Field Documentation

◆ m_BarrelOpener

ref Timer m_BarrelOpener
private

Definition at line 4 of file barrel_colorbase.c.

Referenced by InitItemVariables(), and Lock().

◆ m_IsLocked

bool m_IsLocked = false
private

Definition at line 3 of file barrel_colorbase.c.

Referenced by IsLocked(), Lock(), and Unlock().

◆ m_Openable

ref OpenableBehaviour m_Openable
protected

Definition at line 7 of file barrel_colorbase.c.

Referenced by Close(), CloseLoad(), InitItemVariables(), IsOpen(), OnStoreSave(), Open(), and OpenLoad().

◆ m_RainProcComponent

ref RainProcurementComponentBarrel m_RainProcComponent
protected

Definition at line 6 of file barrel_colorbase.c.

Referenced by Close(), CloseLoad(), InitItemVariables(), Open(), and OpenLoad().

◆ m_RainProcurement

ref RainProcurementManager m_RainProcurement
protected

Definition at line 584 of file barrel_colorbase.c.

Referenced by InitItemVariables().


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