You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.6 KiB
C
42 lines
1.6 KiB
C
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the Terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// Hilfsfunktionen zur Ausgabe von der Konsole
|
|
// Hilfsfunktionen zum Parsen von Variablen
|
|
//:-----------------------------------------------------------------------------
|
|
|
|
#include "../lib_base.h"
|
|
#include "../ll3d_math.h"
|
|
#include "../ll3d_vec2.h"
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Parse argument <Var> = <Argument>
|
|
// returns true on success, target is modified
|
|
// returns false on parse error, target variable is not modified
|
|
//---------------------------------------------------------------------------
|
|
|
|
bool GetValue_HEX ( const char *Type, int &hex );
|
|
bool GetValue_HEX ( const char *Type, int &hex );
|
|
bool GetValue_INT ( const char *Type, int &integer );
|
|
bool GetValue_STR ( const char *Type, char *zielstring, int len );
|
|
bool GetValue_STR ( const char *Type, char **zielstring );
|
|
bool GetValue_RECT ( const char *Type, llgfx_sRECT &zielrect );
|
|
bool GetValue_BOOL ( const char *Type, bool &tbool );
|
|
bool GetValue_LINE ( const char *Type, char *zielstring, int len );
|
|
bool GetValue_LINE ( const char *Type, char **zielstring );
|
|
bool GetValue_Vec2f ( const char *Type, ll3d::CVec2f &zielvec );
|
|
bool GetValue_FLOAT ( const char *Type, float &zielfloat );
|
|
bool GetValue_COLOR ( const char *Type, TxU32 &zielfarbe );
|
|
|
|
//---------------------------------------------------------------------------
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|