Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ResourceStoragePolicyBase.c
Go to the documentation of this file.
2{
3 override bool _WB_GetCustomTitle(BaseContainer source, out string title)
4 {
6
7 source.Get("m_eStorageType", storageType);
8
9 title = SCR_Enum.GetEnumName(EResourceContainerStorageType, storageType);
10 string firstLetter = title[0];
11
12 title.Replace("_", " ");
13 title.ToLower();
14 firstLetter.ToUpper();
15
16 title = string.Format("%2%3 - %1", source.GetClassName(), firstLetter, title.Substring(1, title.Length() - 1));
17
18 return true;
19 }
20};
21
24{
25 [Attribute(uiwidget: UIWidgets.Object)]
27
28 //------------------------------------------------------------------------------------------------
33
34 //------------------------------------------------------------------------------------------------
36 {
37 return false;
38 }
39
40 //------------------------------------------------------------------------------------------------
42 {
43 m_StorageQueue = queue;
44 }
45
46 //------------------------------------------------------------------------------------------------
48 {
49 #ifdef WORKBENCH
51 m_StorageQueue.Reset();
52 else
53 Debug.Error2("SCR_ResourceStoragePolicyBase::m_StorageQueue is null.", "A resource container storage queue has to be present.");
54 #else
55 m_StorageQueue.Reset();
56 #endif
57 }
58}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
EResourceContainerStorageType
Definition Debug.c:13
SCR_ResourceContainerStorageQueue GetStorageQueue()
ref SCR_ResourceContainerStorageQueue m_StorageQueue
bool IsStorageTypeValid(EResourceContainerStorageType storageType)
void SetStorageQueue(notnull SCR_ResourceContainerStorageQueue queue)
SCR_FieldOfViewSettings Attribute