Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cvar.h')
-rw-r--r--src/core/cvar.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/cvar.h b/src/core/cvar.h
index fa04c49..660f03e 100644
--- a/src/core/cvar.h
+++ b/src/core/cvar.h
@@ -21,9 +21,9 @@ public:
Cvar_t &operator=(int other);
Cvar_t &operator=(float other);
- inline unsigned int flags() const { return cvar_flags; }
- inline float value() const { return(cvar_value); }
- const std::string &text() const { return(cvar_text); }
+ unsigned int flags() const;
+ float value() const;
+ const std::string &text() const;
private:
std::string cvar_text;
@@ -49,7 +49,7 @@ Cvar get(const char *name, const char *value, int flags=0);
* its value will not be changed. If the cvar does not exist,
* it will be created
*/
-Cvar get(const char *name, int value, int flags=0);
+Cvar get(const char *name, float value, int flags=0);
/// set a cvar value
/** If the a cvar with the given name already exists in the registry,
@@ -60,19 +60,19 @@ Cvar set(const char *name, const char *value, int flags=0);
/** If the a cvar with the given name already exists in the registry,
* its value will be replaced
*/
-Cvar set(const char *name, int value, int flags=0);
+Cvar set(const char *name, float value, int flags=0);
/// delete a cvar from the registry
-void unset(const char *cvarname);
+void unset(const char *name);
/// delete a cvar from the registry
-void unset(const std::string &cvarname);
+void unset(const std::string &name);
/// search for a named cvar, returns 0 if not found
-Cvar find(const std::string &cvarname);
+Cvar find(const std::string &name);
/// search for a named cvar, returns 0 if not found
-Cvar find(const char *cvarname);
+Cvar find(const char *name);
/// list the cvar registry
void list();