DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Refridgerator.c
См. документацию.
1class Refridgerator extends ItemBase
2{
3 SoundOnVehicle m_SoundLoopEntity;
4
5 override bool IsElectricAppliance()
6 {
7 return true;
8 }
9
10 override void OnInitEnergy()
11 {
12 m_SoundLoopEntity = NULL;
13 }
14
15 //--- POWER EVENTS
16 override void OnWorkStart()
17 {
18 // TO DO: Slow down or stop the aging of food inside of the fridge when such functionality is created.
19
20 m_SoundLoopEntity = PlaySoundLoop("powerGeneratorLoop", 50); // using placeholder sound
21 }
22
23 override void OnWork( float consumed_energy )
24 {
25
26 }
27
28 override void OnWorkStop()
29 {
30 // TO DO: Allow food inside the fridge to start aging again.
31
33 m_SoundLoopEntity = NULL;
34 }
35
36 //--- ACTION EVENTS
37 override void OnSwitchOn()
38 {
39
40 }
41
42 override void OnSwitchOff()
43 {
44
45 }
46
47 //================================================================
48 // ADVANCED PLACEMENT
49 //================================================================
50
51 override string GetDeploySoundset()
52 {
53 return "placeRefridgerator_SoundSet";
54 }
55
70}
ActionPlaceObjectCB ActiondeployObjectCB ActionPlaceObject()
Определения ActionPlaceObject.c:11
void AddAction(typename actionName)
Определения AdvancedCommunication.c:220
void RemoveAction(typename actionName)
Определения AdvancedCommunication.c:252
Определения ActionPlugIn.c:2
proto native void ObjectDelete(Object obj)
override void OnSwitchOn()
Определения Refridgerator.c:37
override void OnWork(float consumed_energy)
Определения Refridgerator.c:23
override void OnWorkStart()
Определения Refridgerator.c:16
override bool IsElectricAppliance()
Определения Refridgerator.c:5
override void SetActions()
Определения Refridgerator.c:56
override void OnInitEnergy()
Определения Refridgerator.c:10
override string GetDeploySoundset()
Определения Refridgerator.c:51
override void OnWorkStop()
Определения Refridgerator.c:28
override void OnSwitchOff()
Определения Refridgerator.c:42
SoundOnVehicle m_SoundLoopEntity
Определения Refridgerator.c:3
Определения InventoryItem.c:731
proto native CGame GetGame()