etqw-sdk/source/game/decls/DeclKeyBinding.h
2008-05-29 00:00:00 +00:00

27 lines
665 B
C++

// Copyright (C) 2007 Id Software, Inc.
//
#ifndef __DECLKEYBINDING_H__
#define __DECLKEYBINDING_H__
class sdDeclKeyBinding : public idDecl {
public:
sdDeclKeyBinding( void );
virtual ~sdDeclKeyBinding( void );
virtual const char* DefaultDefinition( void ) const;
virtual bool Parse( const char *text, const int textLength );
virtual void FreeData( void );
const idDict& GetKeys() const { return keys; }
const sdDeclLocStr* GetTitle() const { return title; }
private:
bool ParseKeys( idParser& src );
private:
idDict keys;
const sdDeclLocStr* title;
};
#endif // __DECLKEYBINDING_H__