Files
firestorm/Gameleap/code/mw4/Tools/EffectEdit/contents.hpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

46 lines
886 B
C++

#pragma once
#include "effectdata.hpp"
class CContentData : public CDataBase
{
private:
CString m_Path;
CString m_File;
bool m_Dirty;
CString m_EffectName[32];
void StripComment (CString& str);
public:
CContentData (CString& path);
~CContentData (void);
void ReadData (CString file);
void WriteData (void);
void InitialData (CString file);
int FindMatIndex (CString& mat);
const CString EffectName (int id) const
{
ASSERT (id >=0);
ASSERT (id < 32);
CString toret;
int index;
index = m_EffectName[id].Find ("content\\effects\\");
toret = m_EffectName[id].Right (m_EffectName[id].GetLength () - index - strlen ("content\\effects\\"));
return toret;
}
void EffectName (CString& name,int id)
{
ASSERT (id >=0);
ASSERT (id < 32);
m_Dirty = true;
name.MakeLower ();
m_EffectName[id] = name;
}
};