Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ResourceConsumtionResponse.c
Go to the documentation of this file.
2{
3 SUFFICIENT, // Sufficient Resource Available
4 INSUFICIENT, // Insufficient Resource Available
5 UNAVAILABLE // No Resource Available
6}
7
8// TODO: rename Consumtion -> Consumption
10{
11 protected float m_fAvailableResource;
12 protected float m_fResourceMultiplier;
13 protected float m_fRange;
15
16 //------------------------------------------------------------------------------------------------
17 void SCR_ResourceConsumtionResponse(float availableResource = 0, float resourceMultiplier = 0, float range = 0, EResourceReason reasonCode = EResourceReason.UNAVAILABLE)
18 {
19 m_fAvailableResource = availableResource;
20 m_fResourceMultiplier = resourceMultiplier;
21 m_fRange = range;
22 m_eReason = reasonCode;
23 }
24
25 //------------------------------------------------------------------------------------------------
27 {
29 }
30
31 //------------------------------------------------------------------------------------------------
33 {
35 }
36
37 //------------------------------------------------------------------------------------------------
38 float GetRange()
39 {
40 return m_fRange;
41 }
42
43 //------------------------------------------------------------------------------------------------
45 {
46 return m_eReason;
47 }
48
49 //------------------------------------------------------------------------------------------------
50 void SetAvailableResource(float availableResource)
51 {
52 m_fAvailableResource = availableResource;
53 }
54
55 //------------------------------------------------------------------------------------------------
56 void SetResourceMultiplier(float resourceMultiplier)
57 {
58 m_fResourceMultiplier = resourceMultiplier;
59 }
60
61 //------------------------------------------------------------------------------------------------
62 void SetRange(float range)
63 {
64 m_fRange = range;
65 }
66
67 //------------------------------------------------------------------------------------------------
68 void SetReason(EResourceReason reasonCode)
69 {
70 m_eReason = reasonCode;
71 }
72}
73
74// //! classname typo fix
75// class SCR_ResourceConsumptionResponse : SCR_ResourceConsumtionResponse
76// {
77// }
void SetReason(EResourceReason reasonCode)
float m_fResourceMultiplier
void SetResourceMultiplier(float resourceMultiplier)
enum EResourceReason m_fAvailableResource
void SCR_ResourceConsumtionResponse(float availableResource=0, float resourceMultiplier=0, float range=0, EResourceReason reasonCode=EResourceReason.UNAVAILABLE)
void SetRange(float range)
float GetResourceMultiplier()
float GetAvailableSupply()
EResourceReason GetReason()
EResourceReason m_eReason
void SetAvailableResource(float availableResource)