Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
assetstatus.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#if defined(_MSC_VER)
20#pragma once
21#endif
22
23#ifndef WW3D_ASSET_STATUS_H
24#define WW3D_ASSET_STATUS_H
25
26#include "always.h"
27#include "hashtemplate.h"
28
30{
31public:
32 enum {
40 };
41
44
45 void Enable_Reporting(bool enable) { Reporting=enable; }
46 void Enable_Load_On_Demand_Reporting(bool enable) { LoadOnDemandReporting=enable; }
47
48 void Report_Load_On_Demand_RObj(const char* name);
49 void Report_Load_On_Demand_HAnim(const char* name);
50 void Report_Load_On_Demand_HTree(const char* name);
51
52 void Report_Missing_RObj(const char* name);
53 void Report_Missing_HAnim(const char* name);
54 void Report_Missing_HTree(const char* name);
55
56 static AssetStatusClass* Peek_Instance() { return &Instance; }
57
58private:
59 bool Reporting;
60 bool LoadOnDemandReporting;
61 static AssetStatusClass Instance;
63
64 void Add_To_Report(int index, const char* name);
65
66};
67
68#endif
void Report_Missing_HTree(const char *name)
void Enable_Load_On_Demand_Reporting(bool enable)
Definition assetstatus.h:46
void Report_Load_On_Demand_RObj(const char *name)
void Enable_Reporting(bool enable)
Definition assetstatus.h:45
void Report_Missing_RObj(const char *name)
void Report_Missing_HAnim(const char *name)
void Report_Load_On_Demand_HTree(const char *name)
static AssetStatusClass * Peek_Instance()
Definition assetstatus.h:56
void Report_Load_On_Demand_HAnim(const char *name)