DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс FryingPan
+ Граф наследования:FryingPan:

Защищенные члены

void FryingPan ()
 DEPRECATED.
 
void ~FryingPan ()
 
override bool IsContainer ()
 
override bool CanHaveTemperature ()
 
override float GetQuantityNormalizedScripted ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
override void SetActions ()
 
override void EEDelete (EntityAI parent)
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
void RemoveAudioVisualsOnClient ()
 
void RefreshAudioVisualsOnClient (CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
 
void RefreshAudioVisuals (CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
 
void RemoveAudioVisuals ()
 
void ParticleCookingStart (int particle_id)
 
void ParticleCookingStop ()
 
void SoundCookingStart (string sound_name)
 DEPRECATED.
 
void SoundCookingStop ()
 

Защищенные данные

CookingMethodType m_CookingMethod
 
bool m_CookingIsDone
 
bool m_CookingIsEmpty
 
bool m_CookingIsBurned
 
Particle m_ParticleCooking
 
int m_ParticlePlaying = ParticleList.INVALID
 
int PARTICLE_BAKING_START = ParticleList.COOKING_BAKING_START
 
int PARTICLE_BAKING_DONE = ParticleList.COOKING_BAKING_DONE
 
int PARTICLE_DRYING_START = ParticleList.COOKING_DRYING_START
 
int PARTICLE_DRYING_DONE = ParticleList.COOKING_DRYING_DONE
 
int PARTICLE_BURNING_DONE = ParticleList.COOKING_BURNING_DONE
 
SoundOnVehicle m_SoundCooking
 
EffectSound m_SoundEffectCooking
 DEPRECATED.
 
string m_SoundPlaying = ""
 
const string SOUND_BAKING_START = "Baking_SoundSet"
 
const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"
 DEPRECATED.
 
const string SOUND_DRYING_START = "Drying_SoundSet"
 DEPRECATED.
 
const string SOUND_DRYING_DONE = "Drying_Done_SoundSet"
 DEPRECATED.
 
const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"
 DEPRECATED.
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от Inventory_Base
void HescoBox ()
 
override bool HasProxyParts ()
 
override bool CanPutIntoHands (EntityAI parent)
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
void RefreshVisuals ()
 
int GetState ()
 
void SetState (int state)
 
bool CanBeFilledAtPosition (vector position)
 
bool CanBeManipulated ()
 
void Fold ()
 
void Unfold ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override void RefreshPhysics ()
 
void Fill ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool IsDeployable ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
- Закрытые данные унаследованные от Inventory_Base
int m_State
 
ref EffectSound m_DeployLoopSound
 DEPRECATED.
 

Подробное описание

Конструктор(ы)

◆ FryingPan()

void FryingPan ( )
inlineprotected

DEPRECATED.

31 {
32 RegisterNetSyncVariableInt( "m_CookingMethod", CookingMethodType.NONE, CookingMethodType.COUNT );
33 RegisterNetSyncVariableBool( "m_CookingIsDone" );
34 RegisterNetSyncVariableBool( "m_CookingIsEmpty" );
35 RegisterNetSyncVariableBool( "m_CookingIsBurned" );
36 }
CookingMethodType
Definition Cooking.c:2

◆ ~FryingPan()

void ~FryingPan ( )
inlineprotected
37{}

Методы

◆ CanHaveTemperature()

override bool CanHaveTemperature ( )
inlineprotected
45 {
46 return true;
47 }

◆ CanLoadItemIntoCargo()

override bool CanLoadItemIntoCargo ( EntityAI item)
inlineprotected
97 {
98 if ( !super.CanLoadItemIntoCargo( item ) )
99 return false;
100
101 if ( IsCargoException4x3( item ) )
102 return false;
103
104 //can 'this' be attached to the item (->assumed smaller size than item)?
105 int slotId;
106 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
107 {
108 slotId = GetInventory().GetSlotId(i);
109 if (item.GetInventory().HasAttachmentSlot(slotId))
110 {
111 //Print("CanLoadItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
112 return false;
113 }
114 }
115
116 return true;
117 }
bool IsCargoException4x3(EntityAI item)
Definition ItemBase.c:9426
Definition EntityAI.c:95

Перекрестные ссылки IsCargoException4x3().

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
55 {
56 if ( !super.CanPutInCargo( parent ) )
57 return false;
58
59 if ( parent && IsCargoException4x3( parent ) )
60 return false;
61
62 //is 'parent' somewhere in cargo?
63 if (parent && !parent.GetInventory().AreChildrenAccessible())
64 return false;
65
66 return true;
67 }

Перекрестные ссылки IsCargoException4x3().

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected
70 {
71 if ( !super.CanReceiveItemIntoCargo( item ) )
72 return false;
73
75 return false;
76
77 //is 'this' somewhere in cargo?
78 if (!GetInventory().AreChildrenAccessible())
79 return false;
80
81 //can 'this' be attached to the item (->assumed smaller size than item)?
82 int slotId;
83 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
84 {
85 slotId = GetInventory().GetSlotId(i);
86 if (item.GetInventory().HasAttachmentSlot(slotId))
87 {
88 //Print("CanReceiveItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
89 return false;
90 }
91 }
92
93 return true;
94 }

Перекрестные ссылки IsCargoException4x3().

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprotected
130 {
131 super.EEDelete( parent );
132
133 //remove audio visuals
135 }
void RemoveAudioVisuals()
Definition FryingPan.c:208

Перекрестные ссылки RemoveAudioVisuals().

◆ GetQuantityNormalizedScripted()

override float GetQuantityNormalizedScripted ( )
inlineprotected
50 {
51 return 1.0;
52 }

◆ IsContainer()

override bool IsContainer ( )
inlineprotected
40 {
41 return true;
42 }

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected
146 {
147 super.OnVariablesSynchronized();
148
149 //refresh audio visuals
151 {
153 }
154 else
155 {
157 }
158 }
bool m_CookingIsBurned
Definition FryingPan.c:7
bool m_CookingIsEmpty
Definition FryingPan.c:6
void RefreshAudioVisuals(CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
Definition FryingPan.c:177
bool m_CookingIsDone
Definition FryingPan.c:5
CookingMethodType m_CookingMethod
Definition FryingPan.c:4

Перекрестные ссылки m_CookingIsBurned, m_CookingIsDone, m_CookingIsEmpty, m_CookingMethod, RefreshAudioVisuals() и RemoveAudioVisuals().

◆ ParticleCookingStart()

void ParticleCookingStart ( int particle_id)
inlineprotected
214 {
216 {
217 //stop previous particles
219
220 //create new
221 if ( GetGame() && ( !GetGame().IsDedicatedServer() ) )
222 {
223 vector local_pos = MiscGameplayFunctions.GetSteamPosition( GetHierarchyParent() );
224 //TODO set steam position to pot (proxy) memory point (new hierarchy needed)
225 //m_ParticleCooking = Particle.Create( particle_id, this, local_pos );
226 m_ParticleCooking = ParticleManager.GetInstance().PlayInWorld( particle_id, local_pos );
228 }
229 }
230 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
int particle_id
Definition SmokeSimulation.c:28
Particle m_ParticleCooking
Definition FryingPan.c:10
int m_ParticlePlaying
Definition FryingPan.c:11
void ParticleCookingStop()
Definition FryingPan.c:231
Definition EnConvert.c:106
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_ParticleCooking, m_ParticlePlaying, particle_id, ParticleCookingStop() и ParticleManager().

Используется в RefreshAudioVisuals().

◆ ParticleCookingStop()

void ParticleCookingStop ( )
inlineprotected
232 {
233 if ( m_ParticleCooking && GetGame() && ( !GetGame().IsDedicatedServer() ) )
234 {
238 }
239 }
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:266
Definition ParticleList.c:12
static const int INVALID
Definition ParticleList.c:20

Перекрестные ссылки GetGame(), ParticleList::INVALID, m_ParticleCooking, m_ParticlePlaying и Particle::Stop().

Используется в ParticleCookingStart() и RemoveAudioVisuals().

◆ RefreshAudioVisuals()

void RefreshAudioVisuals ( CookingMethodType cooking_method,
bool is_done,
bool is_empty,
bool is_burned )
inlineprotected
178 {
179 int particleId;
180
181 //if at least one of the food items is burned
182 if (is_burned)
183 {
185 }
186 //proper cooking methods
187 else
188 {
189 if (cooking_method == CookingMethodType.BAKING)
190 {
191 if (is_done)
193 else
195 }
196 else if (cooking_method == CookingMethodType.DRYING)
197 {
198 if (is_done)
200 else
202 }
203 }
204
206 }
int PARTICLE_BAKING_DONE
Definition FryingPan.c:14
int PARTICLE_DRYING_DONE
Definition FryingPan.c:16
int PARTICLE_DRYING_START
Definition FryingPan.c:15
int PARTICLE_BAKING_START
Definition FryingPan.c:13
void ParticleCookingStart(int particle_id)
Definition FryingPan.c:213
int PARTICLE_BURNING_DONE
Definition FryingPan.c:17

Перекрестные ссылки PARTICLE_BAKING_DONE, PARTICLE_BAKING_START, PARTICLE_BURNING_DONE, PARTICLE_DRYING_DONE, PARTICLE_DRYING_START и ParticleCookingStart().

Используется в OnVariablesSynchronized().

◆ RefreshAudioVisualsOnClient()

void RefreshAudioVisualsOnClient ( CookingMethodType cooking_method,
bool is_done,
bool is_empty,
bool is_burned )
inlineprotected
168 {
173
174 Synchronize();
175 }
void Synchronize()
Definition FryingPan.c:137

Перекрестные ссылки m_CookingIsBurned, m_CookingIsDone, m_CookingIsEmpty, m_CookingMethod и Synchronize().

◆ RemoveAudioVisuals()

void RemoveAudioVisuals ( )
inlineprotected
209 {
211 }

Перекрестные ссылки ParticleCookingStop().

Используется в EEDelete() и OnVariablesSynchronized().

◆ RemoveAudioVisualsOnClient()

void RemoveAudioVisualsOnClient ( )
inlineprotected
161 {
163
164 Synchronize();
165 }

Перекрестные ссылки m_CookingMethod и Synchronize().

◆ SetActions()

override void SetActions ( )
inlineprotected
120 {
121 super.SetActions();
122
125 AddAction(ActionAttach);
127 }
void ActionDetach()
Definition ActionDetach.c:10
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionCreateIndoorFireplace.c:2
Definition ActionCreateIndoorOven.c:2

Перекрестные ссылки ActionDetach() и AddAction().

◆ SoundCookingStart()

void SoundCookingStart ( string sound_name)
protected

DEPRECATED.

◆ SoundCookingStop()

void SoundCookingStop ( )
protected

◆ Synchronize()

void Synchronize ( )
inlineprotected
138 {
139 if ( GetGame() && GetGame().IsServer() )
140 {
141 SetSynchDirty();
142 }
143 }

Перекрестные ссылки GetGame().

Используется в RefreshAudioVisualsOnClient() и RemoveAudioVisualsOnClient().

Поля

◆ m_CookingIsBurned

bool m_CookingIsBurned
protected

◆ m_CookingIsDone

bool m_CookingIsDone
protected

◆ m_CookingIsEmpty

bool m_CookingIsEmpty
protected

◆ m_CookingMethod

◆ m_ParticleCooking

Particle m_ParticleCooking
protected

Используется в ParticleCookingStart() и ParticleCookingStop().

◆ m_ParticlePlaying

int m_ParticlePlaying = ParticleList.INVALID
protected

Используется в ParticleCookingStart() и ParticleCookingStop().

◆ m_SoundCooking

SoundOnVehicle m_SoundCooking
protected

◆ m_SoundEffectCooking

EffectSound m_SoundEffectCooking
protected

DEPRECATED.

◆ m_SoundPlaying

string m_SoundPlaying = ""
protected

◆ PARTICLE_BAKING_DONE

int PARTICLE_BAKING_DONE = ParticleList.COOKING_BAKING_DONE
protected

Используется в RefreshAudioVisuals().

◆ PARTICLE_BAKING_START

int PARTICLE_BAKING_START = ParticleList.COOKING_BAKING_START
protected

Используется в RefreshAudioVisuals().

◆ PARTICLE_BURNING_DONE

int PARTICLE_BURNING_DONE = ParticleList.COOKING_BURNING_DONE
protected

Используется в RefreshAudioVisuals().

◆ PARTICLE_DRYING_DONE

int PARTICLE_DRYING_DONE = ParticleList.COOKING_DRYING_DONE
protected

Используется в RefreshAudioVisuals().

◆ PARTICLE_DRYING_START

int PARTICLE_DRYING_START = ParticleList.COOKING_DRYING_START
protected

Используется в RefreshAudioVisuals().

◆ SOUND_BAKING_DONE

const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"
protected

DEPRECATED.

◆ SOUND_BAKING_START

const string SOUND_BAKING_START = "Baking_SoundSet"
protected

◆ SOUND_BURNING_DONE

const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"
protected

DEPRECATED.

◆ SOUND_DRYING_DONE

const string SOUND_DRYING_DONE = "Drying_Done_SoundSet"
protected

DEPRECATED.

◆ SOUND_DRYING_START

const string SOUND_DRYING_START = "Drying_SoundSet"
protected

DEPRECATED.


Объявления и описания членов класса находятся в файле: