Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ResavePlugin
+ Граф наследования:ResavePlugin:

Закрытые члены

void Resave (string file)
 
override void Run ()
 
override void RunCommandline ()
 
bool OK ()
 
bool Cancel ()
 

Закрытые данные

string Extension
 
WBModuleDef m_module
 

Подробное описание

Методы

◆ Cancel()

bool Cancel ( )
inlineprivate
45 {
46 return false;
47 }

◆ OK()

bool OK ( )
inlineprivate
39 {
40 return true;
41 }

◆ Resave()

void Resave ( string file)
inlineprivate
9 {
10 Print("Resaving: " + file);
12 m_module.Save();
13 }
Definition EntityAI.c:95
WBModuleDef m_module
Definition ResaveTool.c:6
proto native external bool Save()
proto native external bool SetOpenedResource(string filename)
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки Print(), WBModuleDef::Save() и WBModuleDef::SetOpenedResource().

◆ Run()

override void Run ( )
inlineprivate
16 {
17 if (Workbench.ScriptDialog("Resave", "Which files you want to resave?", this))
18 {
19 m_module = Workbench.GetModule("ResourceManager");
21 }
22 }
void Resave(string file)
Definition ResaveTool.c:8
string Extension
Definition ResaveTool.c:5
Definition workbenchApi.c:7
static proto bool SearchResources(string filter, func callback)
static proto native WBModuleDef GetModule(string type)
static proto int ScriptDialog(string caption, string text, Class data)

Перекрестные ссылки Workbench::GetModule(), Workbench::ScriptDialog() и Workbench::SearchResources().

◆ RunCommandline()

override void RunCommandline ( )
inlineprivate
25 {
26 m_module = Workbench.GetModule("ResourceManager");
27
28 if (m_module.GetCmdLine("-extension", Extension))
29 {
30 Extension.Replace("\"", "");
31 }
32
34 Workbench.GetModule("ResourceManager").Close();
35 }
proto external bool GetCmdLine(string name, out string value)
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.

Перекрестные ссылки WBModuleDef::GetCmdLine(), Workbench::GetModule(), string::Replace() и Workbench::SearchResources().

Поля

◆ Extension

string Extension
private

◆ m_module

WBModuleDef m_module
private

Объявления и описания членов класса находятся в файле: