Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
Model Class Reference
Inheritance diagram for Model:
Collaboration diagram for Model:

Public Member Functions

 Model (string() path)
 ATTRIB (Model, model_str, string())
 ATTRIB (Model, model_str_, string)
virtual void model_precache ()

Public Attributes

int m_id = 0

Detailed Description

Definition at line 3 of file model.qh.

Constructor & Destructor Documentation

◆ Model()

Model::Model ( string() path)
inline

Definition at line 7 of file model.qh.

8 {
10 this.model_str = path;
11 }
Model(string() path)
Definition model.qh:7
#define CONSTRUCT(cname,...)
Definition oo.qh:123

References Model(), CONSTRUCT, and CONSTRUCTOR.

Referenced by Model(), ATTRIB(), ATTRIB(), and model_precache().

Member Function Documentation

◆ ATTRIB() [1/2]

Model::ATTRIB ( Model ,
model_str ,
string()  )

References Model(), and ATTRIB().

Referenced by ATTRIB(), and ATTRIB().

◆ ATTRIB() [2/2]

Model::ATTRIB ( Model ,
model_str_ ,
string  )

References Model(), and ATTRIB().

◆ model_precache()

virtual void Model::model_precache ( )
inlinevirtual

Definition at line 12 of file model.qh.

13 {
14 TC(Model, this);
15 string s = this.model_str();
16 if (s != "" && s != "null" && !fexists(s)) {
17 LOG_WARNF("Missing model: \"%s\"", s);
18 return;
19 }
20 //profile(sprintf("precache_model(\"%s\")", s));
21 precache_model(s);
22 strcpy(this.model_str_, s);
23 }
ERASEABLE bool fexists(string f)
Definition file.qh:4
#define TC(T, sym)
Definition _all.inc:82
#define LOG_WARNF(...)
Definition log.qh:62
#define strcpy(this, s)
Definition string.qh:52

References Model(), fexists(), LOG_WARNF, model_precache(), strcpy, and TC.

Referenced by model_precache().

Member Data Documentation

◆ m_id

int Model::m_id = 0

Definition at line 4 of file model.qh.


The documentation for this class was generated from the following file: