Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
datasource.qh
Go to the documentation of this file.
1#pragma once
2
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));
28
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));
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void getEntry()
get entry i passing name and icon through returns if it is not null returns DataSource_false if out o...
Definition datasource.qc:28
ATTRIB(CvarStringSource, CvarStringSource_cvar, string)
CvarStringSource(string cv, string sep)
Definition datasource.qc:22
virtual void reload()
reload all entries matching filter returning how many matches were found
Definition datasource.qc:34
virtual void reload()
reload all entries matching filter returning how many matches were found
Definition datasource.qh:15
virtual void getEntry()
get entry i passing name and icon through returns if it is not null returns DataSource_false if out o...
Definition datasource.qh:11
static entity false
Definition datasource.qh:5
virtual void indexOf()
return the index of the first match for find.
Definition datasource.qh:13
virtual void destroy()
cleanup on shutdown.
Definition datasource.qh:17
static entity true
Definition datasource.qh:4
StringSource(string str, string sep)
Definition datasource.qc:3
ATTRIB(StringSource, StringSource_str, string)
virtual void getEntry()
get entry i passing name and icon through returns if it is not null returns DataSource_false if out o...
Definition datasource.qc:9
virtual void reload()
reload all entries matching filter returning how many matches were found
Definition datasource.qc:17
string name
Definition menu.qh:30
entity find(entity start,.string field, string match)
#define NEW(cname,...)
Definition oo.qh:117
#define STATIC_ATTRIB(cname, name, type, val)
Definition oo.qh:243
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define CONSTRUCTOR(cname,...)
Definition oo.qh:213
#define NULL
Definition post.qh:14
entity this
Definition self.qh:72