2026-05-25 11:37:05 -07:00
|
|
|
/* Copyright (C) 2026 Wildfire Games.
|
2023-12-02 16:30:12 -08:00
|
|
|
* This file is part of 0 A.D.
|
2009-06-20 09:13:29 -07:00
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is free software: you can redistribute it and/or modify
|
2009-06-20 09:13:29 -07:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is distributed in the hope that it will be useful,
|
2009-06-20 09:13:29 -07:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2023-12-02 16:30:12 -08:00
|
|
|
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
|
2009-06-20 09:13:29 -07:00
|
|
|
*/
|
|
|
|
|
|
2007-05-07 09:33:24 -07:00
|
|
|
#ifndef INCLUDED_MESSAGES
|
|
|
|
|
#define INCLUDED_MESSAGES
|
2006-04-23 16:14:18 -07:00
|
|
|
|
2023-05-13 05:08:23 -07:00
|
|
|
#include <cstdint>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
// Opens namespace AtlasMessage, closes it on second inclusion!
|
2006-06-02 22:08:32 -07:00
|
|
|
#ifndef MESSAGES_SKIP_SETUP
|
2025-08-09 12:17:38 -07:00
|
|
|
#include "MessagesSetup.h" // IWYU pragma: keep
|
2006-06-02 22:08:32 -07:00
|
|
|
#endif
|
2006-04-23 16:14:18 -07:00
|
|
|
|
|
|
|
|
// TODO: organisation, documentation, etc
|
|
|
|
|
|
2016-01-23 17:03:39 -08:00
|
|
|
#ifdef _MSC_VER // (can't use MSC_VERSION here since this file is included by Atlas too)
|
|
|
|
|
#pragma warning(push)
|
|
|
|
|
#pragma warning(disable: 4003)
|
|
|
|
|
#endif
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2010-10-21 16:44:54 -07:00
|
|
|
// Initialise some engine code. Must be called before anything else.
|
|
|
|
|
MESSAGE(Init, );
|
|
|
|
|
|
2021-06-06 08:31:55 -07:00
|
|
|
MESSAGE(InitAppWindow,
|
|
|
|
|
((void*, handle)) // Atlas Window handle.
|
|
|
|
|
);
|
|
|
|
|
|
2015-02-19 21:46:24 -08:00
|
|
|
// Initialise SDL-related code. Must be called before SetCanvas and InitGraphics.
|
|
|
|
|
MESSAGE(InitSDL, );
|
|
|
|
|
|
2010-10-21 16:44:54 -07:00
|
|
|
// Initialise graphics-related code. Must be called after the first SetCanvas,
|
|
|
|
|
// and before much else.
|
|
|
|
|
MESSAGE(InitGraphics, );
|
2006-06-02 22:08:32 -07:00
|
|
|
|
2010-10-21 16:44:54 -07:00
|
|
|
// Shut down engine/graphics code.
|
2006-06-02 22:08:32 -07:00
|
|
|
MESSAGE(Shutdown, );
|
|
|
|
|
|
2006-11-11 20:02:36 -08:00
|
|
|
struct eRenderView { enum renderViews { NONE, GAME, ACTOR }; };
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
|
2006-06-02 22:08:32 -07:00
|
|
|
MESSAGE(RenderEnable,
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
);
|
2006-04-23 16:14:18 -07:00
|
|
|
|
2026-06-21 02:30:27 -07:00
|
|
|
MESSAGE(SetSmoothFramerate,
|
|
|
|
|
((bool, enabled))
|
|
|
|
|
);
|
|
|
|
|
|
2006-09-25 18:44:20 -07:00
|
|
|
// SetViewParam: used for hints to the renderer, e.g. to set wireframe mode;
|
|
|
|
|
// unrecognised param names are ignored
|
|
|
|
|
MESSAGE(SetViewParamB,
|
|
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((std::wstring, name))
|
|
|
|
|
((bool, value))
|
|
|
|
|
);
|
2011-12-10 03:53:39 -08:00
|
|
|
MESSAGE(SetViewParamI,
|
2011-12-09 21:11:25 -08:00
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((std::wstring, name))
|
2011-12-10 03:53:39 -08:00
|
|
|
((int, value))
|
2011-12-09 21:11:25 -08:00
|
|
|
);
|
2006-09-25 18:44:20 -07:00
|
|
|
MESSAGE(SetViewParamC,
|
|
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((std::wstring, name))
|
2015-03-15 16:59:48 -07:00
|
|
|
((Color, value))
|
2006-09-25 18:44:20 -07:00
|
|
|
);
|
2010-05-27 16:31:03 -07:00
|
|
|
MESSAGE(SetViewParamS,
|
|
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((std::wstring, name))
|
|
|
|
|
((std::wstring, value))
|
|
|
|
|
);
|
2006-09-25 18:44:20 -07:00
|
|
|
|
2007-02-01 18:17:15 -08:00
|
|
|
MESSAGE(JavaScript,
|
2020-11-30 01:03:20 -08:00
|
|
|
((std::string, command))
|
2007-02-01 18:17:15 -08:00
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2010-06-01 17:36:21 -07:00
|
|
|
MESSAGE(GuiSwitchPage,
|
|
|
|
|
((std::wstring, page))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(GuiMouseButtonEvent,
|
|
|
|
|
((int, button))
|
|
|
|
|
((bool, pressed))
|
|
|
|
|
((Position, pos))
|
2017-05-15 17:09:16 -07:00
|
|
|
((int, clicks))
|
2010-06-01 17:36:21 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(GuiMouseMotionEvent,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(GuiKeyEvent,
|
|
|
|
|
((int, sdlkey)) // SDLKey code
|
|
|
|
|
((int, unichar)) // Unicode character
|
|
|
|
|
((bool, pressed))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(GuiCharEvent,
|
|
|
|
|
((int, sdlkey))
|
|
|
|
|
((int, unichar))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2014-12-29 13:01:54 -08:00
|
|
|
MESSAGE(SimStopMusic, );
|
|
|
|
|
|
2007-01-16 19:25:20 -08:00
|
|
|
MESSAGE(SimStateSave,
|
|
|
|
|
((std::wstring, label)) // named slot to store saved data
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(SimStateRestore,
|
|
|
|
|
((std::wstring, label)) // named slot to find saved data
|
|
|
|
|
);
|
|
|
|
|
|
2010-01-09 11:20:14 -08:00
|
|
|
QUERY(SimStateDebugDump,
|
|
|
|
|
((bool, binary))
|
|
|
|
|
,
|
|
|
|
|
((std::wstring, dump))
|
|
|
|
|
);
|
|
|
|
|
|
2007-01-16 19:25:20 -08:00
|
|
|
MESSAGE(SimPlay,
|
|
|
|
|
((float, speed)) // 0 for pause, 1 for normal speed
|
2013-02-22 15:20:59 -08:00
|
|
|
((bool, simTest)) // true if we're in simulation test mode, false otherwise
|
2007-01-16 19:25:20 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2006-07-12 07:49:10 -07:00
|
|
|
QUERY(Ping, , );
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2007-01-02 10:11:00 -08:00
|
|
|
MESSAGE(SetCanvas,
|
|
|
|
|
((void*, canvas))
|
2011-11-13 04:57:34 -08:00
|
|
|
((int, width))
|
|
|
|
|
((int, height))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(ResizeScreen,
|
|
|
|
|
((int, width))
|
|
|
|
|
((int, height))
|
|
|
|
|
);
|
|
|
|
|
|
Remove the Engine threading when using Atlas
MacOS requires some UI-related API calls to happen on the main thread.
There are several SDL functions that call UI-things, and those were,
since #500 / 08b4d96cf2, in a separate thread.
This crashes on Catalina, instead of simply warning (see #5470).
It is not the first time we had such issues, as originally the Engine
was on the main thread and AtlasUI on a separate thread.
That didn't work on MacOS, so the threading was inverted in #500 /
08b4d96cf2, with AtlasUI on the main thread and the Engine in another
thread.
Unfortunately, this still wasn't enough.
This formally unthreads the engine, running it on a wxTimer, to avoid
these issues.
Future work should focus on:
- Further decoupling the simulation from the engine itself, as what
Atlas really needs is a threaded simulation, not a threaded engine.
- Making the simulation itself more threaded
- Making it possible to do tasks asynchronously under Atlas.
Refs #500
Fixes #5470
Differential Revision: https://code.wildfiregames.com/D2752
This was SVN commit r24361.
2020-12-10 01:42:58 -08:00
|
|
|
QUERY(RenderLoop, ,
|
2026-06-21 02:30:27 -07:00
|
|
|
((bool, smoothFramerate))
|
Remove the Engine threading when using Atlas
MacOS requires some UI-related API calls to happen on the main thread.
There are several SDL functions that call UI-things, and those were,
since #500 / 08b4d96cf2, in a separate thread.
This crashes on Catalina, instead of simply warning (see #5470).
It is not the first time we had such issues, as originally the Engine
was on the main thread and AtlasUI on a separate thread.
That didn't work on MacOS, so the threading was inverted in #500 /
08b4d96cf2, with AtlasUI on the main thread and the Engine in another
thread.
Unfortunately, this still wasn't enough.
This formally unthreads the engine, running it on a wxTimer, to avoid
these issues.
Future work should focus on:
- Further decoupling the simulation from the engine itself, as what
Atlas really needs is a threaded simulation, not a threaded engine.
- Making the simulation itself more threaded
- Making it possible to do tasks asynchronously under Atlas.
Refs #500
Fixes #5470
Differential Revision: https://code.wildfiregames.com/D2752
This was SVN commit r24361.
2020-12-10 01:42:58 -08:00
|
|
|
((double, timeSinceActivity))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2011-04-13 21:01:59 -07:00
|
|
|
// Messages for map panel
|
|
|
|
|
|
|
|
|
|
QUERY(GenerateMap,
|
2011-04-15 21:04:06 -07:00
|
|
|
((std::wstring, filename)) // random map script filename
|
|
|
|
|
((std::string, settings)) // map settings as JSON string
|
2011-04-13 21:01:59 -07:00
|
|
|
,
|
2011-04-15 21:04:06 -07:00
|
|
|
((int, status))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
2012-08-07 11:49:46 -07:00
|
|
|
MESSAGE(ImportHeightmap,
|
|
|
|
|
((std::wstring, filename))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
MESSAGE(LoadMap,
|
|
|
|
|
((std::wstring, filename))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(SaveMap,
|
|
|
|
|
((std::wstring, filename))
|
|
|
|
|
);
|
|
|
|
|
|
Implements skirmish maps, based on patch by sanderd17, fixes #1198. Skirmish maps are like scenarios, except the player can choose their civ during match setup. To create a skirmish map: place some skirmish entities for each player in Atlas (see templates/skirmish/* for examples), uncheck the player's civ in Atlas' player panel if desired, and save in the maps/skirmishes directory. The map will appear in match setup under the "Skirmish" match type.
Implements custom, VFS-based map load/save dialogs for Atlas (replaces
broken native file dialogs), fixes #631, #889.
Fixes map loading/saving to handle arbitrary subdirectories for better
organization.
Adds default settings to Atlas player panel, fixes #1872. Each setting
now has a checkbox to choose whether it should be saved with the map
(avoids writing lots of useless default data for each map).
Adds map preview setting to Atlas, refs #1745.
Cleans up and simplifies some duplicate code.
Fixes optional serialization performance test.
This was SVN commit r13938.
2013-10-03 19:29:16 -07:00
|
|
|
QUERY(GetMapList,
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::wstring>, scenarioFilenames))
|
|
|
|
|
((std::vector<std::wstring>, skirmishFilenames))
|
2018-03-13 13:20:45 -07:00
|
|
|
((std::vector<std::wstring>, tutorialFilenames))
|
Implements skirmish maps, based on patch by sanderd17, fixes #1198. Skirmish maps are like scenarios, except the player can choose their civ during match setup. To create a skirmish map: place some skirmish entities for each player in Atlas (see templates/skirmish/* for examples), uncheck the player's civ in Atlas' player panel if desired, and save in the maps/skirmishes directory. The map will appear in match setup under the "Skirmish" match type.
Implements custom, VFS-based map load/save dialogs for Atlas (replaces
broken native file dialogs), fixes #631, #889.
Fixes map loading/saving to handle arbitrary subdirectories for better
organization.
Adds default settings to Atlas player panel, fixes #1872. Each setting
now has a checkbox to choose whether it should be saved with the map
(avoids writing lots of useless default data for each map).
Adds map preview setting to Atlas, refs #1745.
Cleans up and simplifies some duplicate code.
Fixes optional serialization performance test.
This was SVN commit r13938.
2013-10-03 19:29:16 -07:00
|
|
|
);
|
|
|
|
|
|
2011-04-13 21:01:59 -07:00
|
|
|
QUERY(GetMapSettings,
|
|
|
|
|
,
|
|
|
|
|
((std::string, settings))
|
|
|
|
|
);
|
|
|
|
|
|
2011-08-22 14:45:39 -07:00
|
|
|
COMMAND(SetMapSettings, MERGE,
|
|
|
|
|
((std::string, settings))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(LoadPlayerSettings,
|
|
|
|
|
((bool, newplayers))
|
|
|
|
|
);
|
|
|
|
|
|
2011-06-09 16:47:20 -07:00
|
|
|
QUERY(GetMapSizes,
|
|
|
|
|
,
|
|
|
|
|
((std::string, sizes))
|
|
|
|
|
);
|
|
|
|
|
|
2020-07-20 19:08:50 -07:00
|
|
|
QUERY(GetCurrentMapSize,
|
|
|
|
|
,
|
|
|
|
|
((int, size))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
QUERY(RasterizeMinimap,
|
|
|
|
|
,
|
|
|
|
|
((int, dimension))
|
|
|
|
|
((std::vector<uint8_t>, imageBytes))
|
|
|
|
|
);
|
|
|
|
|
|
2011-04-13 21:01:59 -07:00
|
|
|
QUERY(GetRMSData,
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::string>, data))
|
|
|
|
|
);
|
|
|
|
|
|
2024-09-21 04:45:48 -07:00
|
|
|
QUERY(ExpandBiomes,
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::string>, biomes))
|
|
|
|
|
);
|
|
|
|
|
|
2011-05-29 08:02:02 -07:00
|
|
|
COMMAND(ResizeMap, NOMERGE,
|
|
|
|
|
((int, tiles))
|
2020-07-20 19:08:50 -07:00
|
|
|
((int, offsetX))
|
|
|
|
|
((int, offsetY))
|
2011-05-29 08:02:02 -07:00
|
|
|
);
|
|
|
|
|
|
2011-10-20 16:45:27 -07:00
|
|
|
QUERY(VFSFileExists,
|
|
|
|
|
((std::wstring, path))
|
|
|
|
|
,
|
|
|
|
|
((bool, exists))
|
|
|
|
|
);
|
|
|
|
|
|
2018-03-13 13:20:45 -07:00
|
|
|
QUERY(VFSFileRealPath,
|
|
|
|
|
((std::wstring, path))
|
|
|
|
|
,
|
|
|
|
|
((std::wstring, realPath))
|
|
|
|
|
);
|
|
|
|
|
|
2011-04-13 21:01:59 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Messages for player panel
|
|
|
|
|
|
|
|
|
|
QUERY(GetCivData,
|
|
|
|
|
,
|
2022-02-04 22:24:45 -08:00
|
|
|
((std::vector<std::vector<std::wstring>>, data))
|
2011-04-13 21:01:59 -07:00
|
|
|
);
|
|
|
|
|
|
2020-07-18 10:39:59 -07:00
|
|
|
QUERY(GetVictoryConditionData,
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::string>, data))
|
|
|
|
|
);
|
|
|
|
|
|
2011-04-13 21:01:59 -07:00
|
|
|
QUERY(GetPlayerDefaults,
|
|
|
|
|
,
|
|
|
|
|
((std::string, defaults))
|
|
|
|
|
);
|
|
|
|
|
|
2011-06-13 16:32:41 -07:00
|
|
|
QUERY(GetAIData,
|
|
|
|
|
,
|
|
|
|
|
((std::string, data))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
MESSAGE(RenderStyle,
|
|
|
|
|
((bool, wireframe))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(MessageTrace,
|
|
|
|
|
((bool, enable))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(Screenshot,
|
2012-03-05 16:15:48 -08:00
|
|
|
((bool, big))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
MESSAGE(Brush,
|
|
|
|
|
((int, width)) // number of vertices
|
|
|
|
|
((int, height))
|
|
|
|
|
((std::vector<float>, data)) // width*height array
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(BrushPreview,
|
|
|
|
|
((bool, enable))
|
|
|
|
|
((Position, pos)) // only used if enable==true
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
QUERY(GetTerrainGroups,
|
|
|
|
|
, // no inputs
|
2011-04-13 21:01:59 -07:00
|
|
|
((std::vector<std::wstring>, groupNames))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
2021-12-30 08:24:07 -08:00
|
|
|
QUERY(GetTerrainGroupTextures,
|
|
|
|
|
((std::wstring, groupName)),
|
|
|
|
|
((std::vector<std::wstring>, names))
|
|
|
|
|
);
|
|
|
|
|
|
2007-06-14 05:11:22 -07:00
|
|
|
#ifndef MESSAGES_SKIP_STRUCTS
|
2012-04-16 19:43:52 -07:00
|
|
|
struct sTerrainTexturePreview
|
2006-04-23 16:14:18 -07:00
|
|
|
{
|
|
|
|
|
Shareable<std::wstring> name;
|
2010-09-10 14:02:10 -07:00
|
|
|
Shareable<bool> loaded;
|
2011-04-13 21:01:59 -07:00
|
|
|
Shareable<int> imageWidth;
|
|
|
|
|
Shareable<int> imageHeight;
|
2021-12-30 08:24:07 -08:00
|
|
|
Shareable<std::vector<unsigned char>> imageData; // RGB*width*height
|
2006-04-23 16:14:18 -07:00
|
|
|
};
|
2012-04-16 19:43:52 -07:00
|
|
|
SHAREABLE_STRUCT(sTerrainTexturePreview);
|
2007-06-14 05:11:22 -07:00
|
|
|
#endif
|
2006-04-23 16:14:18 -07:00
|
|
|
|
|
|
|
|
QUERY(GetTerrainGroupPreviews,
|
2011-04-13 21:01:59 -07:00
|
|
|
((std::wstring, groupName))
|
|
|
|
|
((int, imageWidth))
|
|
|
|
|
((int, imageHeight))
|
2006-04-23 16:14:18 -07:00
|
|
|
,
|
2012-04-16 19:43:52 -07:00
|
|
|
((std::vector<sTerrainTexturePreview>, previews))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
2010-05-27 16:31:03 -07:00
|
|
|
QUERY(GetTerrainPassabilityClasses,
|
|
|
|
|
, // no inputs
|
2011-04-13 21:01:59 -07:00
|
|
|
((std::vector<std::wstring>, classNames))
|
2010-05-27 16:31:03 -07:00
|
|
|
);
|
2006-04-23 16:14:18 -07:00
|
|
|
|
2012-04-16 19:43:52 -07:00
|
|
|
QUERY(GetTerrainTexturePreview,
|
|
|
|
|
((std::wstring, name))
|
|
|
|
|
((int, imageWidth))
|
|
|
|
|
((int, imageHeight))
|
|
|
|
|
,
|
|
|
|
|
((sTerrainTexturePreview, preview))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2007-06-14 05:11:22 -07:00
|
|
|
#ifndef MESSAGES_SKIP_STRUCTS
|
2006-04-23 16:14:18 -07:00
|
|
|
struct sObjectsListItem
|
|
|
|
|
{
|
|
|
|
|
Shareable<std::wstring> id;
|
|
|
|
|
Shareable<std::wstring> name;
|
|
|
|
|
Shareable<int> type; // 0 = entity, 1 = actor
|
|
|
|
|
};
|
2006-04-24 22:10:47 -07:00
|
|
|
SHAREABLE_STRUCT(sObjectsListItem);
|
2007-06-14 05:11:22 -07:00
|
|
|
#endif
|
2006-04-23 16:14:18 -07:00
|
|
|
|
|
|
|
|
QUERY(GetObjectsList,
|
|
|
|
|
, // no inputs
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((std::vector<sObjectsListItem>, objects)) // sorted by .name
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
2007-06-14 05:11:22 -07:00
|
|
|
#ifndef MESSAGES_SKIP_STRUCTS
|
2006-05-03 19:44:03 -07:00
|
|
|
struct sObjectSettings
|
2006-04-24 22:10:47 -07:00
|
|
|
{
|
2012-02-27 15:16:31 -08:00
|
|
|
Shareable<int> player;
|
2006-08-06 11:41:07 -07:00
|
|
|
Shareable<std::vector<std::wstring> > selections;
|
2006-05-30 22:27:02 -07:00
|
|
|
|
|
|
|
|
// Some settings are immutable and therefore are ignored (and should be left
|
|
|
|
|
// empty) when passed from the editor to the game:
|
|
|
|
|
|
2011-04-13 21:01:59 -07:00
|
|
|
Shareable<std::vector<std::vector<std::wstring> > > variantGroups;
|
2006-04-24 22:10:47 -07:00
|
|
|
};
|
2006-05-03 19:44:03 -07:00
|
|
|
SHAREABLE_STRUCT(sObjectSettings);
|
2007-06-14 05:11:22 -07:00
|
|
|
#endif
|
2006-04-24 22:10:47 -07:00
|
|
|
|
2014-06-17 06:14:25 -07:00
|
|
|
// transform de local entity to a real entity
|
|
|
|
|
MESSAGE(ObjectPreviewToEntity,);
|
|
|
|
|
|
|
|
|
|
//Query for get selected objects
|
|
|
|
|
QUERY(GetCurrentSelection,
|
|
|
|
|
, //No inputs
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Moving Preview(s) object together, default is using the firs element in vector
|
|
|
|
|
MESSAGE(MoveObjectPreview,
|
|
|
|
|
((Position,pos))
|
|
|
|
|
);
|
|
|
|
|
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
// Preview object in the game world - creates a temporary unit at the given
|
|
|
|
|
// position, and removes it when the preview is next changed
|
2006-04-23 16:14:18 -07:00
|
|
|
MESSAGE(ObjectPreview,
|
|
|
|
|
((std::wstring, id)) // or empty string => disable
|
2006-05-03 19:44:03 -07:00
|
|
|
((sObjectSettings, settings))
|
2006-04-23 16:14:18 -07:00
|
|
|
((Position, pos))
|
|
|
|
|
((bool, usetarget)) // true => use 'target' for orientation; false => use 'angle'
|
|
|
|
|
((Position, target))
|
|
|
|
|
((float, angle))
|
2013-02-02 18:16:52 -08:00
|
|
|
((unsigned int, actorseed))
|
2014-06-17 06:14:25 -07:00
|
|
|
((bool, cleanObjectPreviews))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
COMMAND(CreateObject, NOMERGE,
|
|
|
|
|
((std::wstring, id))
|
2006-05-03 19:44:03 -07:00
|
|
|
((sObjectSettings, settings))
|
2006-04-23 16:14:18 -07:00
|
|
|
((Position, pos))
|
|
|
|
|
((bool, usetarget)) // true => use 'target' for orientation; false => use 'angle'
|
|
|
|
|
((Position, target))
|
|
|
|
|
((float, angle))
|
2013-02-02 18:16:52 -08:00
|
|
|
((unsigned int, actorseed))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
// Set an actor to be previewed on its own (i.e. without the game world).
|
|
|
|
|
// (Use RenderEnable to make it visible.)
|
|
|
|
|
MESSAGE(SetActorViewer,
|
|
|
|
|
((std::wstring, id))
|
2019-06-03 13:19:53 -07:00
|
|
|
((std::string, animation))
|
2012-04-16 18:26:24 -07:00
|
|
|
((int, playerID))
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((float, speed))
|
2006-09-22 10:43:00 -07:00
|
|
|
((bool, flushcache)) // true => unload all actor files before starting the preview (because we don't have proper hotloading yet)
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
);
|
2006-04-23 16:14:18 -07:00
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
QUERY(Exit,,); // no inputs nor outputs
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2010-04-17 04:28:54 -07:00
|
|
|
struct eScrollConstantDir { enum { FORWARDS, BACKWARDS, LEFT, RIGHT, CLOCKWISE, ANTICLOCKWISE }; };
|
|
|
|
|
MESSAGE(ScrollConstant, // set a constant scrolling(/rotation) rate
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((int, dir)) // eScrollConstantDir
|
2006-04-23 16:14:18 -07:00
|
|
|
((float, speed)) // set speed 0.0f to stop scrolling
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
struct eScrollType { enum { FROM, TO }; };
|
|
|
|
|
MESSAGE(Scroll, // for scrolling by dragging the mouse FROM somewhere TO elsewhere
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((int, type)) // eScrollType
|
2006-04-23 16:14:18 -07:00
|
|
|
((Position, pos))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(SmoothZoom,
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((int, view)) // eRenderView
|
2006-04-23 16:14:18 -07:00
|
|
|
((float, amount))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
struct eRotateAroundType { enum { FROM, TO }; };
|
|
|
|
|
MESSAGE(RotateAround,
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((int, type)) // eRotateAroundType
|
|
|
|
|
((Position, pos))
|
|
|
|
|
);
|
|
|
|
|
|
2026-07-17 21:03:11 -07:00
|
|
|
MESSAGE(RotateY,
|
|
|
|
|
((float, angle))
|
|
|
|
|
);
|
|
|
|
|
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
MESSAGE(LookAt,
|
|
|
|
|
((int, view)) // eRenderView
|
2006-04-23 16:14:18 -07:00
|
|
|
((Position, pos))
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((Position, target))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
2011-02-11 15:56:55 -08:00
|
|
|
MESSAGE(CameraReset, );
|
|
|
|
|
|
2011-06-13 16:32:41 -07:00
|
|
|
QUERY(GetView,
|
|
|
|
|
,
|
|
|
|
|
((sCameraInfo, info))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(SetView,
|
|
|
|
|
((sCameraInfo, info))
|
|
|
|
|
);
|
|
|
|
|
|
2026-07-10 02:16:46 -07:00
|
|
|
MESSAGE(SetBirdsEyeView,
|
|
|
|
|
((bool, enabled))
|
|
|
|
|
);
|
2026-05-25 11:37:05 -07:00
|
|
|
|
2006-06-02 22:08:32 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2007-06-14 05:11:22 -07:00
|
|
|
#ifndef MESSAGES_SKIP_STRUCTS
|
2006-06-02 22:08:32 -07:00
|
|
|
struct sEnvironmentSettings
|
|
|
|
|
{
|
2014-07-03 13:07:15 -07:00
|
|
|
Shareable<std::wstring> watertype; // range 0..1 corresponds to min..max terrain height; out-of-bounds values allowed
|
2006-06-21 15:37:31 -07:00
|
|
|
Shareable<float> waterheight; // range 0..1 corresponds to min..max terrain height; out-of-bounds values allowed
|
2006-09-18 11:09:07 -07:00
|
|
|
Shareable<float> waterwaviness; // range ???
|
|
|
|
|
Shareable<float> watermurkiness; // range ???
|
2014-07-03 13:07:15 -07:00
|
|
|
Shareable<float> windangle;
|
|
|
|
|
|
2015-03-15 16:59:48 -07:00
|
|
|
Shareable<Color> watercolor;
|
|
|
|
|
Shareable<Color> watertint;
|
2006-07-12 07:49:10 -07:00
|
|
|
|
|
|
|
|
Shareable<float> sunrotation; // range -pi..+pi
|
2006-06-21 15:37:31 -07:00
|
|
|
Shareable<float> sunelevation; // range -pi/2 .. +pi/2
|
2006-06-02 22:08:32 -07:00
|
|
|
|
2015-03-15 16:59:48 -07:00
|
|
|
// emulate 'HDR' by allowing overly bright suncolor. this is
|
|
|
|
|
// multiplied on to suncolor after converting to float
|
|
|
|
|
// (struct Color stores as normal u8, 0..255)
|
2007-05-29 15:47:26 -07:00
|
|
|
Shareable<float> sunoverbrightness; // range 1..3
|
|
|
|
|
|
2011-03-26 13:17:21 -07:00
|
|
|
// support different lighting models ("old" for the version compatible with old scenarios,
|
|
|
|
|
// "standard" for the new normal model that supports much brighter lighting)
|
2012-10-15 03:34:23 -07:00
|
|
|
Shareable<std::wstring> posteffect;
|
2011-03-26 13:17:21 -07:00
|
|
|
|
2006-06-21 15:37:31 -07:00
|
|
|
Shareable<std::wstring> skyset;
|
2006-06-11 00:03:59 -07:00
|
|
|
|
2015-03-15 16:59:48 -07:00
|
|
|
Shareable<Color> suncolor;
|
2021-01-17 05:10:00 -08:00
|
|
|
Shareable<Color> ambientcolor;
|
2015-03-15 16:59:48 -07:00
|
|
|
Shareable<Color> fogcolor;
|
2016-11-23 03:18:37 -08:00
|
|
|
|
2012-10-15 03:34:23 -07:00
|
|
|
Shareable<float> fogfactor;
|
|
|
|
|
Shareable<float> fogmax;
|
2016-11-23 03:18:37 -08:00
|
|
|
|
2012-10-15 03:34:23 -07:00
|
|
|
Shareable<float> brightness;
|
|
|
|
|
Shareable<float> contrast;
|
|
|
|
|
Shareable<float> saturation;
|
|
|
|
|
Shareable<float> bloom;
|
2006-06-02 22:08:32 -07:00
|
|
|
};
|
|
|
|
|
SHAREABLE_STRUCT(sEnvironmentSettings);
|
2007-06-14 05:11:22 -07:00
|
|
|
#endif
|
2006-06-02 22:08:32 -07:00
|
|
|
|
|
|
|
|
QUERY(GetEnvironmentSettings,
|
|
|
|
|
// no inputs
|
|
|
|
|
,
|
|
|
|
|
((sEnvironmentSettings, settings))
|
|
|
|
|
);
|
|
|
|
|
|
2011-08-22 14:45:39 -07:00
|
|
|
COMMAND(SetEnvironmentSettings, MERGE, // merge lots of small changes into one undoable command
|
2006-06-02 22:08:32 -07:00
|
|
|
((sEnvironmentSettings, settings))
|
|
|
|
|
);
|
|
|
|
|
|
2019-07-09 11:16:55 -07:00
|
|
|
COMMAND(RecalculateWaterData, NOMERGE, ((float, unused)));
|
|
|
|
|
|
|
|
|
|
COMMAND(PickWaterHeight, NOMERGE, ((Position, screenPos)));
|
2014-01-05 08:15:20 -08:00
|
|
|
|
2006-06-21 15:37:31 -07:00
|
|
|
QUERY(GetSkySets,
|
|
|
|
|
// no inputs
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::wstring>, skysets))
|
|
|
|
|
);
|
|
|
|
|
|
2012-10-15 03:34:23 -07:00
|
|
|
QUERY(GetPostEffects,
|
|
|
|
|
// no inputs
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::wstring>, posteffects))
|
|
|
|
|
);
|
|
|
|
|
|
2006-06-21 15:37:31 -07:00
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
COMMAND(AlterElevation, MERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((float, amount))
|
|
|
|
|
);
|
|
|
|
|
|
2010-08-05 13:43:31 -07:00
|
|
|
COMMAND(SmoothElevation, MERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((float, amount))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
COMMAND(FlattenElevation, MERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((float, amount))
|
|
|
|
|
);
|
|
|
|
|
|
2013-08-16 07:46:54 -07:00
|
|
|
COMMAND(PikeElevation, MERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((float, amount))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
struct ePaintTerrainPriority { enum { HIGH, LOW }; };
|
|
|
|
|
COMMAND(PaintTerrain, MERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((std::wstring, texture))
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
((int, priority)) // ePaintTerrainPriority
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
2011-05-29 08:02:02 -07:00
|
|
|
COMMAND(ReplaceTerrain, NOMERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((std::wstring, texture))
|
|
|
|
|
);
|
|
|
|
|
|
2011-08-17 16:44:52 -07:00
|
|
|
COMMAND(FillTerrain, NOMERGE,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
((std::wstring, texture))
|
|
|
|
|
);
|
|
|
|
|
|
2012-04-16 19:43:52 -07:00
|
|
|
QUERY(GetTerrainTexture,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
,
|
|
|
|
|
((std::wstring, texture))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2006-05-03 19:44:03 -07:00
|
|
|
QUERY(PickObject,
|
2012-02-26 21:32:35 -08:00
|
|
|
((Position, pos))
|
|
|
|
|
((bool, selectActors))
|
|
|
|
|
,
|
|
|
|
|
((ObjectID, id))
|
|
|
|
|
((int, offsetx)) // offset of object centre from input position
|
|
|
|
|
((int, offsety)) //
|
|
|
|
|
);
|
2006-04-23 16:14:18 -07:00
|
|
|
|
2012-02-26 21:32:35 -08:00
|
|
|
QUERY(PickObjectsInRect,
|
|
|
|
|
((Position, start))
|
|
|
|
|
((Position, end))
|
|
|
|
|
((bool, selectActors))
|
|
|
|
|
,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
QUERY(PickSimilarObjects,
|
2006-04-23 16:14:18 -07:00
|
|
|
((ObjectID, id))
|
2012-02-26 21:32:35 -08:00
|
|
|
,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
);
|
|
|
|
|
|
2015-01-14 01:11:11 -08:00
|
|
|
MESSAGE(ResetSelectionColor, );
|
|
|
|
|
|
2012-02-26 21:32:35 -08:00
|
|
|
COMMAND(MoveObjects, MERGE,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
((ObjectID, pivot))
|
2006-04-23 16:14:18 -07:00
|
|
|
((Position, pos))
|
|
|
|
|
);
|
|
|
|
|
|
2015-02-06 14:23:50 -08:00
|
|
|
COMMAND(RotateObjectsFromCenterPoint, MERGE,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
((Position, target))
|
|
|
|
|
((bool, rotateObject))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
COMMAND(RotateObject, MERGE,
|
2015-02-06 14:23:50 -08:00
|
|
|
((std::vector<ObjectID>, ids))
|
2006-04-23 16:14:18 -07:00
|
|
|
((Position, target))
|
|
|
|
|
);
|
|
|
|
|
|
2011-08-22 14:45:39 -07:00
|
|
|
COMMAND(DeleteObjects, NOMERGE,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
2006-04-23 16:14:18 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
MESSAGE(SetSelectionPreview,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
);
|
|
|
|
|
|
2006-05-03 19:44:03 -07:00
|
|
|
QUERY(GetObjectSettings,
|
2012-02-26 21:32:35 -08:00
|
|
|
((int, view)) // eRenderView
|
|
|
|
|
((ObjectID, id))
|
|
|
|
|
,
|
|
|
|
|
((sObjectSettings, settings))
|
|
|
|
|
);
|
2006-05-03 19:44:03 -07:00
|
|
|
|
|
|
|
|
COMMAND(SetObjectSettings, NOMERGE,
|
2006-09-27 09:54:23 -07:00
|
|
|
((int, view)) // eRenderView
|
2006-05-03 19:44:03 -07:00
|
|
|
((ObjectID, id))
|
|
|
|
|
((sObjectSettings, settings))
|
|
|
|
|
);
|
|
|
|
|
|
2014-06-17 06:14:25 -07:00
|
|
|
QUERY(GetObjectMapSettings,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
,
|
|
|
|
|
((std::wstring, xmldata))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
2011-08-22 14:45:39 -07:00
|
|
|
QUERY(GetPlayerObjects,
|
|
|
|
|
((int, player))
|
|
|
|
|
,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
);
|
|
|
|
|
|
2012-02-26 21:32:35 -08:00
|
|
|
MESSAGE(SetBandbox,
|
|
|
|
|
((bool, show))
|
|
|
|
|
((int, sx0))
|
|
|
|
|
((int, sy0))
|
|
|
|
|
((int, sx1))
|
|
|
|
|
((int, sy1))
|
|
|
|
|
);
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2007-02-26 18:14:18 -08:00
|
|
|
QUERY(GetCinemaPaths,
|
# Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.
This was SVN commit r4261.
2006-08-28 10:36:42 -07:00
|
|
|
, // no inputs
|
2007-02-26 18:14:18 -08:00
|
|
|
((std::vector<AtlasMessage::sCinemaPath> , paths))
|
2006-07-12 07:49:10 -07:00
|
|
|
);
|
2006-07-05 20:17:44 -07:00
|
|
|
|
2006-08-21 19:24:44 -07:00
|
|
|
QUERY(GetCameraInfo,
|
2006-07-05 20:17:44 -07:00
|
|
|
,
|
2006-08-21 19:24:44 -07:00
|
|
|
((AtlasMessage::sCameraInfo, info))
|
2006-07-12 07:49:10 -07:00
|
|
|
);
|
2006-07-05 20:17:44 -07:00
|
|
|
|
2017-04-30 16:47:16 -07:00
|
|
|
QUERY(PickPathNode,
|
|
|
|
|
((Position, pos))
|
|
|
|
|
,
|
|
|
|
|
((AtlasMessage::sCinemaPathNode, node))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
QUERY(PickAxis,
|
|
|
|
|
((AtlasMessage::sCinemaPathNode, node))
|
|
|
|
|
((Position, pos))
|
|
|
|
|
,
|
|
|
|
|
((int, axis))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
COMMAND(AddPathNode, NOMERGE,
|
|
|
|
|
((AtlasMessage::sCinemaPathNode, node))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
COMMAND(DeletePathNode, NOMERGE,
|
|
|
|
|
((AtlasMessage::sCinemaPathNode, node))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
COMMAND(MovePathNode, NOMERGE,
|
|
|
|
|
((AtlasMessage::sCinemaPathNode, node))
|
|
|
|
|
((int, axis))
|
|
|
|
|
((Position, from))
|
|
|
|
|
((Position, to))
|
|
|
|
|
);
|
|
|
|
|
|
2017-04-17 20:30:16 -07:00
|
|
|
COMMAND(AddCinemaPath, NOMERGE, ((std::wstring, pathName)));
|
|
|
|
|
|
|
|
|
|
COMMAND(DeleteCinemaPath, NOMERGE, ((std::wstring, pathName)));
|
|
|
|
|
|
2007-02-26 18:14:18 -08:00
|
|
|
COMMAND(SetCinemaPaths, NOMERGE,
|
|
|
|
|
((std::vector<AtlasMessage::sCinemaPath>, paths))
|
2006-07-12 07:49:10 -07:00
|
|
|
);
|
|
|
|
|
|
2017-04-08 19:12:20 -07:00
|
|
|
COMMAND(SetCinemaPathsDrawing, NOMERGE, ((bool, drawPaths)));
|
|
|
|
|
|
2006-08-21 19:24:44 -07:00
|
|
|
MESSAGE(CinemaEvent,
|
2007-02-26 18:14:18 -08:00
|
|
|
((std::wstring, path))
|
2006-07-05 20:17:44 -07:00
|
|
|
((int, mode))
|
2006-07-12 07:49:10 -07:00
|
|
|
((float, t))
|
2006-08-21 19:24:44 -07:00
|
|
|
((bool, drawCurrent))
|
|
|
|
|
((bool, lines))
|
2006-07-12 07:49:10 -07:00
|
|
|
);
|
|
|
|
|
|
2017-04-30 16:47:16 -07:00
|
|
|
MESSAGE(ClearPathNodePreview,);
|
|
|
|
|
|
2006-07-12 07:49:10 -07:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2006-07-05 20:17:44 -07:00
|
|
|
|
2015-02-01 13:23:06 -08:00
|
|
|
QUERY(GetSelectedObjectsTemplateNames,
|
|
|
|
|
((std::vector<ObjectID>, ids))
|
|
|
|
|
,
|
|
|
|
|
((std::vector<std::string>, names))
|
|
|
|
|
);
|
|
|
|
|
|
2006-11-24 11:45:04 -08:00
|
|
|
|
2016-01-23 17:03:39 -08:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
#pragma warning(pop)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2006-06-02 22:08:32 -07:00
|
|
|
#ifndef MESSAGES_SKIP_SETUP
|
2025-08-09 12:17:38 -07:00
|
|
|
#include "MessagesSetup.h" // IWYU pragma: keep
|
2006-06-02 22:08:32 -07:00
|
|
|
#endif
|
2006-04-23 16:14:18 -07:00
|
|
|
|
2007-05-07 09:33:24 -07:00
|
|
|
#endif // INCLUDED_MESSAGES
|