mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-08 16:46:04 +00:00
7ebdefec4b
This was SVN commit r2875.
21 lines
347 B
C++
21 lines
347 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);
|
|
}
|
|
|
|
}
|