Xonotic
datasource.qh
Go to the documentation of this file.
1 #pragma once
2 
5  STATIC_ATTRIB(DataSource, false, entity, NULL);
11  METHOD(DataSource, getEntry, entity(entity this, int i, void(string name, string icon) returns)) { return DataSource_false; }
13  METHOD(DataSource, indexOf, int(entity this, string find)) { return -1; }
15  METHOD(DataSource, reload, int(entity this, string filter)) { return 0; }
17  METHOD(DataSource, destroy, void(entity this)) { }
19 
20 
22  ATTRIB(StringSource, StringSource_str, string);
23  ATTRIB(StringSource, StringSource_sep, string);
24  CONSTRUCTOR(StringSource, string str, string sep);
25  METHOD(StringSource, getEntry, entity(entity this, int i, void(string name, string icon) returns));
26  METHOD(StringSource, reload, int(entity this, string filter));
27 ENDCLASS(StringSource)
28 
29 CLASS(CvarStringSource, StringSource)
30  ATTRIB(CvarStringSource, CvarStringSource_cvar, string);
31  CONSTRUCTOR(CvarStringSource, string cv, string sep);
32  METHOD(CvarStringSource, getEntry, entity(entity this, int i, void(string name, string icon) returns));
33  METHOD(CvarStringSource, reload, int(entity this, string filter));
34 ENDCLASS(CvarStringSource)
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
#define false
Definition: csprogsdefs.qh:6
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define NULL
Definition: post.qh:17
entity this
Definition: self.qh:83
#define STATIC_ATTRIB(cname, name, type, val)
Definition: oo.qh:231
#define ENDCLASS(cname)
Definition: oo.qh:269
#define CONSTRUCTOR(cname,...)
Definition: oo.qh:201
#define true
Definition: csprogsdefs.qh:5