mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
code reformatted .
This commit is contained in:
parent
76d336504f
commit
1de6ad56c2
265 changed files with 18240 additions and 21591 deletions
|
@ -1,21 +1,21 @@
|
|||
/*
|
||||
FinalSun/FinalAlert 2 Mission Editor
|
||||
FinalSun/FinalAlert 2 Mission Editor
|
||||
|
||||
Copyright (C) 1999-2024 Electronic Arts, Inc.
|
||||
Authored by Matthias Wagner
|
||||
Copyright (C) 1999-2024 Electronic Arts, Inc.
|
||||
Authored by Matthias Wagner
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(AFX_LOADING_H__5D5C3284_8962_11D3_B63B_AAA51FD322E3__INCLUDED_)
|
||||
|
@ -66,7 +66,7 @@ struct EXPANDMIX
|
|||
HMIXFILE hUbn;
|
||||
HMIXFILE hBuildings;
|
||||
HMIXFILE hMarble;
|
||||
EXPANDMIX() {memset(this, 0, sizeof(EXPANDMIX));};
|
||||
EXPANDMIX() { memset(this, 0, sizeof(EXPANDMIX)); };
|
||||
};
|
||||
|
||||
class CFinalSunDlg;
|
||||
|
@ -78,7 +78,7 @@ class CFinalSunDlg;
|
|||
|
||||
struct FindShpResult
|
||||
{
|
||||
FindShpResult(HMIXFILE mixfile_, TheaterChar mixfile_theater_, CString filename_, TheaterChar theat_, HTSPALETTE palette_): mixfile(mixfile_), mixfile_theater(mixfile_theater_), filename(filename_), theat(theat_), palette(palette_) { }
|
||||
FindShpResult(HMIXFILE mixfile_, TheaterChar mixfile_theater_, CString filename_, TheaterChar theat_, HTSPALETTE palette_) : mixfile(mixfile_), mixfile_theater(mixfile_theater_), filename(filename_), theat(theat_), palette(palette_) { }
|
||||
HMIXFILE mixfile;
|
||||
TheaterChar mixfile_theater;
|
||||
CString filename;
|
||||
|
@ -88,7 +88,7 @@ struct FindShpResult
|
|||
|
||||
class CLoading : public CDialog
|
||||
{
|
||||
// Construction
|
||||
// Construction
|
||||
public:
|
||||
void CreateConvTable(RGBTRIPLE* pal, int* iPal);
|
||||
void FetchPalettes();
|
||||
|
@ -97,18 +97,18 @@ public:
|
|||
void FreeAll();
|
||||
void FreeTileSet();
|
||||
BOOL InitDirectDraw();
|
||||
|
||||
void InitTMPs(CProgressCtrl* prog=NULL);
|
||||
|
||||
void InitTMPs(CProgressCtrl* prog = NULL);
|
||||
void InitPalettes();
|
||||
|
||||
|
||||
~CLoading();
|
||||
void Unload();
|
||||
BOOL InitMixFiles();
|
||||
void InitSHPs(CProgressCtrl* prog=NULL);
|
||||
void InitSHPs(CProgressCtrl* prog = NULL);
|
||||
void LoadTSIni(LPCTSTR lpFilename, CIniFile* lpIniFile, BOOL bIsExpansion, BOOL bCheckEditorDir = FALSE);
|
||||
void CreateINI();
|
||||
CLoading(CWnd* pParent = NULL); // Standardconstructor
|
||||
void InitPics(CProgressCtrl* prog=NULL);
|
||||
void InitPics(CProgressCtrl* prog = NULL);
|
||||
void Load();
|
||||
BOOL LoadUnitGraphic(const CString& lpUnittype);
|
||||
void LoadBuildingSubGraphic(const CString& subkey, const CIniFileSection& artSection, BOOL bAlwaysSetChar, char theat, HMIXFILE hShpMix, SHPHEADER& shp_h, BYTE*& shp);
|
||||
|
@ -118,10 +118,10 @@ public:
|
|||
HTSPALETTE GetUnitPalette(char theat);
|
||||
std::optional<FindShpResult> FindUnitShp(const CString& image, char preferred_theat, const CIniFileSection& artSection);
|
||||
char cur_theat;
|
||||
|
||||
|
||||
// Dialog data
|
||||
//{{AFX_DATA(CLoading)
|
||||
|
||||
// Dialog data
|
||||
//{{AFX_DATA(CLoading)
|
||||
enum { IDD = IDD_LOADING };
|
||||
CStatic m_Version;
|
||||
CStatic m_BuiltBy;
|
||||
|
@ -133,7 +133,7 @@ public:
|
|||
// Overwriteables
|
||||
// class wizard generated overwriteables
|
||||
//{{AFX_VIRTUAL(CLoading)
|
||||
protected:
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-support
|
||||
virtual void PostNcDestroy();
|
||||
//}}AFX_VIRTUAL
|
||||
|
@ -159,7 +159,7 @@ private:
|
|||
HTSPALETTE m_hPalIsoTemp;
|
||||
HTSPALETTE m_hPalIsoSnow;
|
||||
HTSPALETTE m_hPalIsoUrb;
|
||||
|
||||
|
||||
HTSPALETTE m_hPalUnitTemp;
|
||||
HTSPALETTE m_hPalUnitSnow;
|
||||
HTSPALETTE m_hPalUnitUrb;
|
||||
|
@ -178,7 +178,7 @@ private:
|
|||
HTSPALETTE m_hPalUnitDes;
|
||||
HTSPALETTE m_hPalUnitUbn;
|
||||
|
||||
HMIXFILE FindFileInMix(LPCTSTR lpFilename, TheaterChar* pTheaterChar=NULL);
|
||||
HMIXFILE FindFileInMix(LPCTSTR lpFilename, TheaterChar* pTheaterChar = NULL);
|
||||
HMIXFILE m_hLocal;
|
||||
HMIXFILE m_hSno;
|
||||
HMIXFILE m_hTem;
|
||||
|
@ -211,8 +211,8 @@ private:
|
|||
BOOL loaded;
|
||||
|
||||
std::unique_ptr<VoxelNormalTables> m_voxelNormalTables;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue