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

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

void LargeTentBackPack ()
 
void ~LargeTentBackPack ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
void PlayRepackingLoopSound ()
 
void StopRepackingLoopSound ()
 
override void SetActions ()
 

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

EffectSound m_RepackingLoopSound
 

Закрытые члены

override bool IsClothing ()
 
- Закрытые члены унаследованные от Clothing
void InitGlobalExclusionValues ()
 
void CheckParent ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
void OnLightCreated ()
 
void CreateHeadtorchLight ()
 
void AttachLightOnHead (EntityAI person)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void SetActions ()
 
override bool IsLightSource ()
 
override ItemBase GetLightSourceItem ()
 
override void OnInvisibleSet (bool invisible)
 

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

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

◆ ~LargeTentBackPack()

void ~LargeTentBackPack ( )
inlineprotected
11 {
13 }
EffectSound m_RepackingLoopSound
Definition LargeTentBackPack.c:3
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Definition EffectManager.c:267

Перекрестные ссылки SEffectManager::DestroyEffect() и m_RepackingLoopSound.

Методы

◆ IsClothing()

override bool IsClothing ( )
inlineprivate
4 {
5 return true;
6 }

◆ LargeTentBackPack()

void LargeTentBackPack ( )
inlineprotected
6 {
8 }
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5

Перекрестные ссылки m_RepackingLoopSound.

◆ OnRPC()

override void OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
inlineprotected
16 {
17 super.OnRPC(sender, rpc_type, ctx);
18
19 Param1<bool> p = new Param1<bool>(false);
20
21 if (!ctx.Read(p))
22 return;
23
24 bool play = p.param1;
25
26 switch (rpc_type)
27 {
28 case SoundTypeTent.REPACK:
29
30 if ( play )
31 {
33 }
34 else
35 {
37 }
38
39 break;
40 }
41 }
SoundTypeTent
Definition LargeTent.c:2
void StopRepackingLoopSound()
Definition LargeTentBackPack.c:51
void PlayRepackingLoopSound()
Definition LargeTentBackPack.c:43
Definition EntityAI.c:95

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

◆ PlayRepackingLoopSound()

void PlayRepackingLoopSound ( )
inlineprotected
44 {
46 {
47 m_RepackingLoopSound = SEffectManager.PlaySound( "largetent_deploy_SoundSet", GetPosition(), 0.5, 0.5 );
48 }
49 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
bool IsSoundPlaying()
Get whether EffectSound is currently playing.
Definition EffectSound.c:274
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:165

Перекрестные ссылки GetPosition, m_RepackingLoopSound и SEffectManager::PlaySound().

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

◆ SetActions()

override void SetActions ( )
inlineprotected
58 {
59 super.SetActions();
60
61 //AddAction(ActionRepackTent);
62 }

◆ StopRepackingLoopSound()

void StopRepackingLoopSound ( )
inlineprotected
52 {
55 }
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
Definition EffectSound.c:885
void SoundStop()
Stops sound.
Definition EffectSound.c:217

Перекрестные ссылки m_RepackingLoopSound.

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

Поля

◆ m_RepackingLoopSound

EffectSound m_RepackingLoopSound
protected

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