DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetBaseClassPath()

string PluginBase::GetBaseClassPath ( string config_class_path,
string class_path,
string config_class )
inlineprivate

См. определение в файле PluginConfigViewer.c строка 46

47 {
48 if ( class_path == "" )
49 {
50 return "";
51 }
52
53 int start = config_class_path.Length();
54 int count = class_path.Length() - start;
55 string class_path_without_config_class = GetOnlyChildPath( config_class_path, class_path );
56
57 ref TStringArray full_path = new TStringArray;
58 GetGame().ConfigGetFullPath( config_class_path, full_path );
59
60 if ( full_path.Count() > 1 && class_path_without_config_class != "" )
61 {
62 return GetBaseClassPathRecursive( config_class + " " + full_path.Get(1), class_path_without_config_class, config_class );
63 }
64 else
65 {
66 return "";
67 }
68 }
proto native void ConfigGetFullPath(string path, out TStringArray full_path)
string GetBaseClassPathRecursive(string config_class_path, string class_path, string config_class)
Определения PluginConfigViewer.c:92
string GetOnlyChildPath(string config_class_path, string class_path)
Определения PluginConfigViewer.c:28
proto native CGame GetGame()
array< string > TStringArray
Определения EnScript.c:685
proto native int Length()
Returns length of string.

Перекрестные ссылки CGame::ConfigGetFullPath(), string::Get(), GetBaseClassPathRecursive(), GetGame(), GetOnlyChildPath() и string::Length().

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