mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-08-25 23:17:29 -04:00
split out class "IniMegaFile" .
This commit is contained in:
parent
c8f7c99c80
commit
fb64321a28
3 changed files with 34 additions and 32 deletions
33
MissionEditor/IniMega.h
Normal file
33
MissionEditor/IniMega.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include <afxcview.h>
|
||||
#include "INIMeta.h"
|
||||
#include "variables.h"
|
||||
|
||||
extern CIniFile rules;
|
||||
|
||||
class IniMegaFile
|
||||
{
|
||||
friend class IniFileGroup;
|
||||
public:
|
||||
static IniFileGroup GetRules();
|
||||
|
||||
static bool IsNullOrEmpty(const CString& value) { return isNullOrEmpty(value); }
|
||||
|
||||
private:
|
||||
static bool isNullOrEmpty(const CString& value);
|
||||
};
|
||||
|
||||
|
||||
IniFileGroup IniMegaFile::GetRules()
|
||||
{
|
||||
IniFileGroup m_group;
|
||||
m_group.Append(rules);
|
||||
m_group.Append(Map->GetIniFile());
|
||||
return m_group;
|
||||
}
|
||||
|
||||
bool IniMegaFile::isNullOrEmpty(const CString& value)
|
||||
{
|
||||
return !value.GetLength() || value == "none" || value == "<none>";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue