forked from mirrors/0ad
3d26549032
This was SVN commit r3802.
21 lines
329 B
C++
21 lines
329 B
C++
#include "precompiled.h"
|
|
|
|
#include "MessageHandler.h"
|
|
|
|
#include "../Brushes.h"
|
|
|
|
namespace AtlasMessage {
|
|
|
|
MESSAGEHANDLER(Brush)
|
|
{
|
|
g_CurrentBrush.SetData(msg->width, msg->height, *msg->data);
|
|
}
|
|
|
|
MESSAGEHANDLER(BrushPreview)
|
|
{
|
|
g_CurrentBrush.SetRenderEnabled(msg->enable);
|
|
msg->pos->GetWorldSpace(g_CurrentBrush.m_Centre);
|
|
}
|
|
|
|
}
|