]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/getreplies.qh
Merge branch 'master' into terencehill/freezetag_updates
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / getreplies.qh
index 12dcd0ad33982fddd37dedaa19a3bcc68de9ec63..f45bbe0166f5158bee09a82a28778318feb7888c 100644 (file)
@@ -1,21 +1,4 @@
-#ifndef GETREPLIES_H
-#define GETREPLIES_H
-
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
-    #include "../../dpdefs/progsdefs.qh"
-    #include "../../dpdefs/dpextensions.qh"
-    #include "../sys-post.qh"
-    #include "../../common/constants.qh"
-    #include "../../common/util.qh"
-    #include "../../common/counting.qh"
-    #include "../../common/monsters/monsters.qh"
-    #include "../defs.qh"
-    #include "../../common/mapinfo.qh"
-    #include "getreplies.qh"
-    #include "../race.qh"
-#endif
+#pragma once
 
 // ======================================================
 //  Declarations for reply messages, re-worked by Samual
 // ======================================================
 
 // ladder bullshit todo
-const float LADDER_FIRSTPOINT = 100;
-#define LADDER_CNT 10 // position X still gives LADDER_FIRSTPOINT/X points
-const float LADDER_SIZE = 30;  // ladder shows the top X players
+const int LADDER_FIRSTPOINT = 100;
+#define LADDER_CNT 10       // position X still gives LADDER_FIRSTPOINT/X points
+const int LADDER_SIZE = 30; // ladder shows the top X players
 
 string top_uids[LADDER_SIZE];
 float top_scores[LADDER_SIZE];
 
-// allow functions to be used in other code like g_world.qc and race.qc
+// allow functions to be used in other code like world.qc and race.qc
 string getrecords(float page);
-string getrankings(void);
-string getladder(void);
-string getmaplist(void);
-string getlsmaps(void);
-string getmonsterlist(void);
-#endif
\ No newline at end of file
+string getrankings();
+string getladder();
+string getmaplist();
+string getlsmaps();
+string getmonsterlist();
+
+void GetCvars_handleFloat(entity this, entity store, string thisname, float f, .float field, string name);
+
+void GetCvars_handleString(entity this, entity store, string thisname, float f, .string field, string name);
+
+void GetCvars(entity this, entity store, int f);