1
0
forked from 0ad/0ad
0ad/source/tools/atlas/GameInterface/Messages.h
Ykkrosh 2790981eae CVSROOT: doesn't seem particularly useful now
ObjectBase: removed support for old actor format
Various: reduced sometimes-unnecessary header inclusions
Atlas: slightly nicer tool and message systems

This was SVN commit r2816.
2005-09-30 00:59:42 +00:00

78 lines
1.8 KiB
C++

#ifndef MESSAGES_H__
#define MESSAGES_H__
#include "MessagesSetup.h"
//////////////////////////////////////////////////////////////////////////
COMMAND(CommandString,
((std::string, name))
);
//////////////////////////////////////////////////////////////////////////
COMMAND(SetContext,
((void*, context))
);
COMMAND(ResizeScreen,
((int, width))
((int, height))
);
//////////////////////////////////////////////////////////////////////////
COMMAND(GenerateMap,
((int, size)) // size in number of patches
);
COMMAND(LoadMap,
((std::wstring, filename))
);
//////////////////////////////////////////////////////////////////////////
COMMAND(RenderStyle,
((bool, wireframe))
);
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
struct eScrollConstantDir { enum { FORWARDS, BACKWARDS, LEFT, RIGHT }; };
INPUT(ScrollConstant,
((int, dir))
((float, speed)) // set speed 0.0f to stop scrolling
);
struct eScrollType { enum { FROM, TO }; };
INPUT(Scroll, // for scrolling by dragging the mouse FROM somewhere TO elsewhere
((int, type))
((Position, pos))
);
INPUT(SmoothZoom,
((float, amount))
);
struct eRotateAroundType { enum { FROM, TO }; };
INPUT(RotateAround,
((int, type))
((Position, pos))
);
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
WORLDCOMMAND(AlterElevation, MERGE,
((Position, pos))
((float, amount))
);
//////////////////////////////////////////////////////////////////////////
#include "MessagesSetup.h"
#endif // MESSAGES_H__