Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TutorialInventoryPrefabSearchPredicate.c
Go to the documentation of this file.
2{
3 ResourceName m_sSeachPrefab;
4
5 //------------------------------------------------------------------------------------------------
6 override bool IsMatch(BaseInventoryStorageComponent storage, IEntity item, array<GenericComponent> queriedComponents, array<BaseItemAttributeData> queriedAttributes)
7 {
8 if (SCR_StringHelper.IsEmptyOrWhiteSpace(m_sSeachPrefab))
9 return false;
10
11 EntityPrefabData prefabData = item.GetPrefabData();
12 if (!prefabData)
13 return false;
14
15 return prefabData.GetPrefabName() == m_sSeachPrefab;
16 };
17}
proto external EntityPrefabData GetPrefabData()
static bool IsEmptyOrWhiteSpace(string input)