LCOV - code coverage report
Current view: top level - source/tools/atlas/GameInterface - Messages.h (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 0 229 0.0 %
Date: 2026-12-03 01:19:39 Functions: 0 205 0.0 %

          Line data    Source code
       1             : /* Copyright (C) 2026 Wildfire Games.
       2             :  * This file is part of 0 A.D.
       3             :  *
       4             :  * 0 A.D. is free software: you can redistribute it and/or modify
       5             :  * it under the terms of the GNU General Public License as published by
       6             :  * the Free Software Foundation, either version 2 of the License, or
       7             :  * (at your option) any later version.
       8             :  *
       9             :  * 0 A.D. is distributed in the hope that it will be useful,
      10             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12             :  * GNU General Public License for more details.
      13             :  *
      14             :  * You should have received a copy of the GNU General Public License
      15             :  * along with 0 A.D.  If not, see <http://www.gnu.org/licenses/>.
      16             :  */
      17             : 
      18             : #ifndef INCLUDED_MESSAGES
      19             : #define INCLUDED_MESSAGES
      20             : 
      21             : #include <cstdint>
      22             : #include <string>
      23             : #include <vector>
      24             : 
      25             : // Opens namespace AtlasMessage, closes it on second inclusion!
      26             : #ifndef MESSAGES_SKIP_SETUP
      27             : #include "MessagesSetup.h" // IWYU pragma: keep
      28             : #endif
      29             : 
      30             : // TODO: organisation, documentation, etc
      31             : 
      32             : #ifdef _MSC_VER // (can't use MSC_VERSION here since this file is included by Atlas too)
      33             : #pragma warning(push)
      34             : #pragma warning(disable: 4003)
      35             : #endif
      36             : 
      37             : //////////////////////////////////////////////////////////////////////////
      38             : 
      39             : // Initialise some engine code. Must be called before anything else.
      40           0 : MESSAGE(Init, );
      41             : 
      42           0 : MESSAGE(InitAppWindow,
      43             :         ((void*, handle)) // Atlas Window handle.
      44           0 :         );
      45             : 
      46             : // Initialise SDL-related code. Must be called before SetCanvas and InitGraphics.
      47           0 : MESSAGE(InitSDL, );
      48             : 
      49             : // Initialise graphics-related code. Must be called after the first SetCanvas,
      50             : // and before much else.
      51           0 : MESSAGE(InitGraphics, );
      52             : 
      53             : // Shut down engine/graphics code.
      54           0 : MESSAGE(Shutdown, );
      55             : 
      56           0 : struct eRenderView { enum renderViews { NONE, GAME, ACTOR }; };
      57             : 
      58           0 : MESSAGE(RenderEnable,
      59             :         ((int, view)) // eRenderView
      60           0 :         );
      61             : 
      62           0 : MESSAGE(SetSmoothFramerate,
      63             :         ((bool, enabled))
      64           0 :         );
      65             : 
      66             : // SetViewParam: used for hints to the renderer, e.g. to set wireframe mode;
      67             : // unrecognised param names are ignored
      68           0 : MESSAGE(SetViewParamB,
      69             :         ((int, view)) // eRenderView
      70             :         ((std::wstring, name))
      71             :         ((bool, value))
      72           0 :         );
      73           0 : MESSAGE(SetViewParamI,
      74             :         ((int, view)) // eRenderView
      75             :         ((std::wstring, name))
      76             :         ((int, value))
      77           0 :         );
      78           0 : MESSAGE(SetViewParamC,
      79             :         ((int, view)) // eRenderView
      80             :         ((std::wstring, name))
      81             :         ((Color, value))
      82           0 :         );
      83           0 : MESSAGE(SetViewParamS,
      84             :         ((int, view)) // eRenderView
      85             :         ((std::wstring, name))
      86             :         ((std::wstring, value))
      87           0 :         );
      88             : 
      89           0 : MESSAGE(JavaScript,
      90             :         ((std::string, command))
      91           0 :         );
      92             : 
      93             : //////////////////////////////////////////////////////////////////////////
      94             : 
      95           0 : MESSAGE(GuiSwitchPage,
      96             :         ((std::wstring, page))
      97           0 :         );
      98             : 
      99           0 : MESSAGE(GuiMouseButtonEvent,
     100             :         ((int, button))
     101             :         ((bool, pressed))
     102             :         ((Position, pos))
     103             :         ((int, clicks))
     104           0 :         );
     105             : 
     106           0 : MESSAGE(GuiMouseMotionEvent,
     107             :         ((Position, pos))
     108           0 :         );
     109             : 
     110           0 : MESSAGE(GuiKeyEvent,
     111             :         ((int, sdlkey)) // SDLKey code
     112             :         ((int, unichar)) // Unicode character
     113             :         ((bool, pressed))
     114           0 :         );
     115             : 
     116           0 : MESSAGE(GuiCharEvent,
     117             :         ((int, sdlkey))
     118             :         ((int, unichar))
     119           0 :         );
     120             : 
     121             : //////////////////////////////////////////////////////////////////////////
     122             : 
     123           0 : MESSAGE(SimStopMusic, );
     124             : 
     125           0 : MESSAGE(SimStateSave,
     126             :         ((std::wstring, label)) // named slot to store saved data
     127           0 :         );
     128             : 
     129           0 : MESSAGE(SimStateRestore,
     130             :         ((std::wstring, label)) // named slot to find saved data
     131           0 :         );
     132             : 
     133           0 : QUERY(SimStateDebugDump,
     134             :         ((bool, binary))
     135             :         ,
     136             :         ((std::wstring, dump))
     137           0 :         );
     138             : 
     139           0 : MESSAGE(SimPlay,
     140             :         ((float, speed)) // 0 for pause, 1 for normal speed
     141             :         ((bool, simTest)) // true if we're in simulation test mode, false otherwise
     142           0 :         );
     143             : 
     144             : //////////////////////////////////////////////////////////////////////////
     145             : 
     146           0 : QUERY(Ping, , );
     147             : 
     148             : //////////////////////////////////////////////////////////////////////////
     149             : 
     150           0 : MESSAGE(SetCanvas,
     151             :         ((void*, canvas))
     152             :         ((int, width))
     153             :         ((int, height))
     154           0 :         );
     155             : 
     156           0 : MESSAGE(ResizeScreen,
     157             :         ((int, width))
     158             :         ((int, height))
     159           0 :         );
     160             : 
     161           0 : QUERY(RenderLoop, ,
     162             :       ((bool, smoothFramerate))
     163             :       ((double, timeSinceActivity))
     164           0 :       );
     165             : 
     166             : //////////////////////////////////////////////////////////////////////////
     167             : // Messages for map panel
     168             : 
     169           0 : QUERY(GenerateMap,
     170             :         ((std::wstring, filename))              // random map script filename
     171             :         ((std::string, settings))               // map settings as JSON string
     172             :         ,
     173             :         ((int, status))
     174           0 :         );
     175             : 
     176           0 : MESSAGE(ImportHeightmap,
     177             :         ((std::wstring, filename))
     178           0 :         );
     179             : 
     180           0 : MESSAGE(LoadMap,
     181             :         ((std::wstring, filename))
     182           0 :         );
     183             : 
     184           0 : MESSAGE(SaveMap,
     185             :         ((std::wstring, filename))
     186           0 :         );
     187             : 
     188           0 : QUERY(GetMapList,
     189             :         ,
     190             :         ((std::vector<std::wstring>, scenarioFilenames))
     191             :         ((std::vector<std::wstring>, skirmishFilenames))
     192             :         ((std::vector<std::wstring>, tutorialFilenames))
     193           0 :         );
     194             : 
     195           0 : QUERY(GetMapSettings,
     196             :         ,
     197             :         ((std::string, settings))
     198           0 :         );
     199             : 
     200           0 : COMMAND(SetMapSettings, MERGE,
     201             :         ((std::string, settings))
     202           0 :         );
     203             : 
     204           0 : MESSAGE(LoadPlayerSettings,
     205             :         ((bool, newplayers))
     206           0 :         );
     207             : 
     208           0 : QUERY(GetMapSizes,
     209             :         ,
     210             :         ((std::string, sizes))
     211           0 :         );
     212             : 
     213           0 : QUERY(GetCurrentMapSize,
     214             :         ,
     215             :         ((int, size))
     216           0 :         );
     217             : 
     218           0 : QUERY(RasterizeMinimap,
     219             :         ,
     220             :         ((int, dimension))
     221             :         ((std::vector<uint8_t>, imageBytes))
     222           0 :         );
     223             : 
     224           0 : QUERY(GetRMSData,
     225             :         ,
     226             :         ((std::vector<std::string>, data))
     227           0 :         );
     228             : 
     229           0 : QUERY(ExpandBiomes,
     230             :         ,
     231             :         ((std::vector<std::string>, biomes))
     232           0 :         );
     233             : 
     234           0 : COMMAND(ResizeMap, NOMERGE,
     235             :         ((int, tiles))
     236             :         ((int, offsetX))
     237             :         ((int, offsetY))
     238           0 :         );
     239             : 
     240           0 : QUERY(VFSFileExists,
     241             :         ((std::wstring, path))
     242             :         ,
     243             :         ((bool, exists))
     244           0 :         );
     245             : 
     246           0 : QUERY(VFSFileRealPath,
     247             :         ((std::wstring, path))
     248             :         ,
     249             :         ((std::wstring, realPath))
     250           0 :         );
     251             : 
     252             : //////////////////////////////////////////////////////////////////////////
     253             : // Messages for player panel
     254             : 
     255           0 : QUERY(GetCivData,
     256             :         ,
     257             :         ((std::vector<std::vector<std::wstring>>, data))
     258           0 :         );
     259             : 
     260           0 : QUERY(GetVictoryConditionData,
     261             :         ,
     262             :         ((std::vector<std::string>, data))
     263           0 :         );
     264             : 
     265           0 : QUERY(GetPlayerDefaults,
     266             :         ,
     267             :         ((std::string, defaults))
     268           0 :         );
     269             : 
     270           0 : QUERY(GetAIData,
     271             :         ,
     272             :         ((std::string, data))
     273           0 :         );
     274             : 
     275             : //////////////////////////////////////////////////////////////////////////
     276             : 
     277           0 : MESSAGE(RenderStyle,
     278             :         ((bool, wireframe))
     279           0 :         );
     280             : 
     281           0 : MESSAGE(MessageTrace,
     282             :         ((bool, enable))
     283           0 :         );
     284             : 
     285           0 : MESSAGE(Screenshot,
     286             :         ((bool, big))
     287           0 :         );
     288             : 
     289             : //////////////////////////////////////////////////////////////////////////
     290             : 
     291           0 : MESSAGE(Brush,
     292             :         ((int, width)) // number of vertices
     293             :         ((int, height))
     294             :         ((std::vector<float>, data)) // width*height array
     295           0 :         );
     296             : 
     297           0 : MESSAGE(BrushPreview,
     298             :         ((bool, enable))
     299             :         ((Position, pos)) // only used if enable==true
     300           0 :         );
     301             : 
     302             : //////////////////////////////////////////////////////////////////////////
     303             : //////////////////////////////////////////////////////////////////////////
     304             : 
     305           0 : QUERY(GetTerrainGroups,
     306             :       , // no inputs
     307             :       ((std::vector<std::wstring>, groupNames))
     308           0 :       );
     309             : 
     310           0 : QUERY(GetTerrainGroupTextures,
     311             :       ((std::wstring, groupName)),
     312             :       ((std::vector<std::wstring>, names))
     313           0 :       );
     314             : 
     315             : #ifndef MESSAGES_SKIP_STRUCTS
     316           0 : struct sTerrainTexturePreview
     317             : {
     318             :     Shareable<std::wstring> name;
     319             :     Shareable<bool> loaded;
     320             :     Shareable<int> imageWidth;
     321             :     Shareable<int> imageHeight;
     322             :     Shareable<std::vector<unsigned char>> imageData; // RGB*width*height
     323             : };
     324           0 : SHAREABLE_STRUCT(sTerrainTexturePreview);
     325             : #endif
     326             : 
     327           0 : QUERY(GetTerrainGroupPreviews,
     328             :       ((std::wstring, groupName))
     329             :       ((int, imageWidth))
     330             :       ((int, imageHeight))
     331             :       ,
     332             :       ((std::vector<sTerrainTexturePreview>, previews))
     333           0 :       );
     334             : 
     335           0 : QUERY(GetTerrainPassabilityClasses,
     336             :       , // no inputs
     337             :       ((std::vector<std::wstring>, classNames))
     338           0 :       );
     339             : 
     340           0 : QUERY(GetTerrainTexturePreview,
     341             :         ((std::wstring, name))
     342             :         ((int, imageWidth))
     343             :         ((int, imageHeight))
     344             :         ,
     345             :         ((sTerrainTexturePreview, preview))
     346           0 :         );
     347             : 
     348             : //////////////////////////////////////////////////////////////////////////
     349             : 
     350             : #ifndef MESSAGES_SKIP_STRUCTS
     351           0 : struct sObjectsListItem
     352             : {
     353             :     Shareable<std::wstring> id;
     354             :     Shareable<std::wstring> name;
     355             :     Shareable<int> type; // 0 = entity, 1 = actor
     356             : };
     357           0 : SHAREABLE_STRUCT(sObjectsListItem);
     358             : #endif
     359             : 
     360           0 : QUERY(GetObjectsList,
     361             :       , // no inputs
     362             :       ((std::vector<sObjectsListItem>, objects)) // sorted by .name
     363           0 :       );
     364             : 
     365             : #ifndef MESSAGES_SKIP_STRUCTS
     366           0 : struct sObjectSettings
     367             : {
     368             :     Shareable<int> player;
     369             :     Shareable<std::vector<std::wstring> > selections;
     370             : 
     371             :     // Some settings are immutable and therefore are ignored (and should be left
     372             :     // empty) when passed from the editor to the game:
     373             : 
     374             :     Shareable<std::vector<std::vector<std::wstring> > > variantGroups;
     375             : };
     376           0 : SHAREABLE_STRUCT(sObjectSettings);
     377             : #endif
     378             : 
     379             : // transform de local entity to a real entity
     380           0 : MESSAGE(ObjectPreviewToEntity,);
     381             : 
     382             : //Query for get selected objects
     383           0 : QUERY(GetCurrentSelection,
     384             :     , //No inputs
     385             :     ((std::vector<ObjectID>, ids))
     386           0 :     );
     387             : 
     388             : // Moving Preview(s) object together, default is using the firs element in vector
     389           0 : MESSAGE(MoveObjectPreview,
     390             :         ((Position,pos))
     391           0 :         );
     392             : 
     393             : // Preview object in the game world - creates a temporary unit at the given
     394             : // position, and removes it when the preview is next changed
     395           0 : MESSAGE(ObjectPreview,
     396             :         ((std::wstring, id)) // or empty string => disable
     397             :         ((sObjectSettings, settings))
     398             :         ((Position, pos))
     399             :         ((bool, usetarget)) // true => use 'target' for orientation; false => use 'angle'
     400             :         ((Position, target))
     401             :         ((float, angle))
     402             :         ((unsigned int, actorseed))
     403             :         ((bool, cleanObjectPreviews))
     404           0 :         );
     405             : 
     406           0 : COMMAND(CreateObject, NOMERGE,
     407             :         ((std::wstring, id))
     408             :         ((sObjectSettings, settings))
     409             :         ((Position, pos))
     410             :         ((bool, usetarget)) // true => use 'target' for orientation; false => use 'angle'
     411             :         ((Position, target))
     412             :         ((float, angle))
     413             :         ((unsigned int, actorseed))
     414           0 :         );
     415             : 
     416             : // Set an actor to be previewed on its own (i.e. without the game world).
     417             : // (Use RenderEnable to make it visible.)
     418           0 : MESSAGE(SetActorViewer,
     419             :         ((std::wstring, id))
     420             :         ((std::string, animation))
     421             :         ((int, playerID))
     422             :         ((float, speed))
     423             :         ((bool, flushcache)) // true => unload all actor files before starting the preview (because we don't have proper hotloading yet)
     424           0 :         );
     425             : 
     426             : //////////////////////////////////////////////////////////////////////////
     427             : 
     428           0 : QUERY(Exit,,); // no inputs nor outputs
     429             : 
     430             : //////////////////////////////////////////////////////////////////////////
     431             : //////////////////////////////////////////////////////////////////////////
     432             : 
     433           0 : struct eScrollConstantDir { enum { FORWARDS, BACKWARDS, LEFT, RIGHT, CLOCKWISE, ANTICLOCKWISE }; };
     434           0 : MESSAGE(ScrollConstant, // set a constant scrolling(/rotation) rate
     435             :         ((int, view)) // eRenderView
     436             :         ((int, dir)) // eScrollConstantDir
     437             :         ((float, speed)) // set speed 0.0f to stop scrolling
     438           0 :         );
     439             : 
     440           0 : struct eScrollType { enum { FROM, TO }; };
     441           0 : MESSAGE(Scroll, // for scrolling by dragging the mouse FROM somewhere TO elsewhere
     442             :         ((int, view)) // eRenderView
     443             :         ((int, type)) // eScrollType
     444             :         ((Position, pos))
     445           0 :         );
     446             : 
     447           0 : MESSAGE(SmoothZoom,
     448             :         ((int, view)) // eRenderView
     449             :         ((float, amount))
     450           0 :         );
     451             : 
     452           0 : struct eRotateAroundType { enum { FROM, TO }; };
     453           0 : MESSAGE(RotateAround,
     454             :         ((int, view)) // eRenderView
     455             :         ((int, type)) // eRotateAroundType
     456             :         ((Position, pos))
     457           0 :         );
     458             : 
     459           0 : MESSAGE(RotateY,
     460             :         ((float, angle))
     461           0 :         );
     462             : 
     463           0 : MESSAGE(LookAt,
     464             :         ((int, view)) // eRenderView
     465             :         ((Position, pos))
     466             :         ((Position, target))
     467           0 :         );
     468             : 
     469           0 : MESSAGE(CameraReset, );
     470             : 
     471           0 : QUERY(GetView,
     472             :         ,
     473             :         ((sCameraInfo, info))
     474           0 :         );
     475             : 
     476           0 : MESSAGE(SetView,
     477             :         ((sCameraInfo, info))
     478           0 :         );
     479             : 
     480           0 : MESSAGE(SetBirdsEyeView,
     481             :         ((bool, enabled))
     482           0 :         );
     483             : 
     484             : //////////////////////////////////////////////////////////////////////////
     485             : 
     486             : #ifndef MESSAGES_SKIP_STRUCTS
     487           0 : struct sEnvironmentSettings
     488             : {
     489             :     Shareable<std::wstring> watertype; // range 0..1 corresponds to min..max terrain height; out-of-bounds values allowed
     490             :     Shareable<float> waterheight; // range 0..1 corresponds to min..max terrain height; out-of-bounds values allowed
     491             :     Shareable<float> waterwaviness; // range ???
     492             :     Shareable<float> watermurkiness; // range ???
     493             :     Shareable<float> windangle;
     494             : 
     495             :     Shareable<Color> watercolor;
     496             :     Shareable<Color> watertint;
     497             : 
     498             :     Shareable<float> sunrotation; // range -pi..+pi
     499             :     Shareable<float> sunelevation; // range -pi/2 .. +pi/2
     500             : 
     501             :     // emulate 'HDR' by allowing overly bright suncolor. this is
     502             :     // multiplied on to suncolor after converting to float
     503             :     // (struct Color stores as normal std::uint8_t, 0..255)
     504             :     Shareable<float> sunoverbrightness; // range 1..3
     505             : 
     506             :     // support different lighting models ("old" for the version compatible with old scenarios,
     507             :     // "standard" for the new normal model that supports much brighter lighting)
     508             :     Shareable<std::wstring> posteffect;
     509             : 
     510             :     Shareable<std::wstring> skyset;
     511             : 
     512             :     Shareable<Color> suncolor;
     513             :     Shareable<Color> ambientcolor;
     514             :     Shareable<Color> fogcolor;
     515             : 
     516             :     Shareable<float> fogfactor;
     517             :     Shareable<float> fogmax;
     518             : 
     519             :     Shareable<float> brightness;
     520             :     Shareable<float> contrast;
     521             :     Shareable<float> saturation;
     522             :     Shareable<float> bloom;
     523             : };
     524           0 : SHAREABLE_STRUCT(sEnvironmentSettings);
     525             : #endif
     526             : 
     527           0 : QUERY(GetEnvironmentSettings,
     528             :       // no inputs
     529             :       ,
     530             :       ((sEnvironmentSettings, settings))
     531           0 :       );
     532             : 
     533           0 : COMMAND(SetEnvironmentSettings, MERGE,  // merge lots of small changes into one undoable command
     534             :         ((sEnvironmentSettings, settings))
     535           0 :         );
     536             : 
     537           0 : COMMAND(RecalculateWaterData, NOMERGE, ((float, unused)));
     538             : 
     539           0 : COMMAND(PickWaterHeight, NOMERGE, ((Position, screenPos)));
     540             : 
     541           0 : QUERY(GetSkySets,
     542             :       // no inputs
     543             :       ,
     544             :       ((std::vector<std::wstring>, skysets))
     545           0 :       );
     546             : 
     547           0 : QUERY(GetPostEffects,
     548             :       // no inputs
     549             :       ,
     550             :       ((std::vector<std::wstring>, posteffects))
     551           0 :       );
     552             : 
     553             : 
     554             : //////////////////////////////////////////////////////////////////////////
     555             : //////////////////////////////////////////////////////////////////////////
     556             : 
     557           0 : COMMAND(AlterElevation, MERGE,
     558             :         ((Position, pos))
     559             :         ((float, amount))
     560           0 :         );
     561             : 
     562           0 : COMMAND(SmoothElevation, MERGE,
     563             :         ((Position, pos))
     564             :         ((float, amount))
     565           0 :         );
     566             : 
     567           0 : COMMAND(FlattenElevation, MERGE,
     568             :         ((Position, pos))
     569             :         ((float, amount))
     570           0 :         );
     571             : 
     572           0 : COMMAND(PikeElevation, MERGE,
     573             :         ((Position, pos))
     574             :         ((float, amount))
     575           0 :         );
     576             : 
     577           0 : struct ePaintTerrainPriority { enum { HIGH, LOW }; };
     578           0 : COMMAND(PaintTerrain, MERGE,
     579             :         ((Position, pos))
     580             :         ((std::wstring, texture))
     581             :         ((int, priority)) // ePaintTerrainPriority
     582           0 :         );
     583             : 
     584           0 : COMMAND(ReplaceTerrain, NOMERGE,
     585             :         ((Position, pos))
     586             :         ((std::wstring, texture))
     587           0 :         );
     588             : 
     589           0 : COMMAND(FillTerrain, NOMERGE,
     590             :         ((Position, pos))
     591             :         ((std::wstring, texture))
     592           0 :         );
     593             : 
     594           0 : QUERY(GetTerrainTexture,
     595             :         ((Position, pos))
     596             :         ,
     597             :         ((std::wstring, texture))
     598           0 :         );
     599             : 
     600             : //////////////////////////////////////////////////////////////////////////
     601             : 
     602           0 : QUERY(PickObject,
     603             :         ((Position, pos))
     604             :         ((bool, selectActors))
     605             :         ,
     606             :         ((ObjectID, id))
     607             :         ((int, offsetx))  // offset of object centre from input position
     608             :         ((int, offsety)) //
     609           0 :         );
     610             : 
     611           0 : QUERY(PickObjectsInRect,
     612             :         ((Position, start))
     613             :         ((Position, end))
     614             :         ((bool, selectActors))
     615             :         ,
     616             :         ((std::vector<ObjectID>, ids))
     617           0 :         );
     618             : 
     619           0 : QUERY(PickSimilarObjects,
     620             :         ((ObjectID, id))
     621             :         ,
     622             :         ((std::vector<ObjectID>, ids))
     623           0 :         );
     624             : 
     625           0 : MESSAGE(ResetSelectionColor, );
     626             : 
     627           0 : COMMAND(MoveObjects, MERGE,
     628             :         ((std::vector<ObjectID>, ids))
     629             :         ((ObjectID, pivot))
     630             :         ((Position, pos))
     631           0 :         );
     632             : 
     633           0 : COMMAND(RotateObjectsFromCenterPoint, MERGE,
     634             :         ((std::vector<ObjectID>, ids))
     635             :         ((Position, target))
     636             :         ((bool, rotateObject))
     637           0 :         );
     638             : 
     639           0 : COMMAND(RotateObject, MERGE,
     640             :         ((std::vector<ObjectID>, ids))
     641             :         ((Position, target))
     642           0 :         );
     643             : 
     644           0 : COMMAND(DeleteObjects, NOMERGE,
     645             :         ((std::vector<ObjectID>, ids))
     646           0 :         );
     647             : 
     648           0 : MESSAGE(SetSelectionPreview,
     649             :         ((std::vector<ObjectID>, ids))
     650           0 :         );
     651             : 
     652           0 : QUERY(GetObjectSettings,
     653             :         ((int, view)) // eRenderView
     654             :         ((ObjectID, id))
     655             :         ,
     656             :         ((sObjectSettings, settings))
     657           0 :         );
     658             : 
     659           0 : COMMAND(SetObjectSettings, NOMERGE,
     660             :         ((int, view)) // eRenderView
     661             :         ((ObjectID, id))
     662             :         ((sObjectSettings, settings))
     663           0 :         );
     664             : 
     665           0 : QUERY(GetObjectMapSettings,
     666             :         ((std::vector<ObjectID>, ids))
     667             :         ,
     668             :         ((std::wstring, xmldata))
     669           0 :         );
     670             : 
     671             : 
     672           0 : QUERY(GetPlayerObjects,
     673             :         ((int, player))
     674             :         ,
     675             :         ((std::vector<ObjectID>, ids))
     676           0 :         );
     677             : 
     678           0 : MESSAGE(SetBandbox,
     679             :         ((bool, show))
     680             :         ((int, sx0))
     681             :         ((int, sy0))
     682             :         ((int, sx1))
     683             :         ((int, sy1))
     684           0 :         );
     685             : 
     686             : //////////////////////////////////////////////////////////////////////////
     687             : 
     688           0 : QUERY(GetCinemaPaths,
     689             :       , // no inputs
     690             :       ((std::vector<AtlasMessage::sCinemaPath> , paths))
     691           0 :       );
     692             : 
     693           0 : QUERY(GetCameraInfo,
     694             :       ,
     695             :       ((AtlasMessage::sCameraInfo, info))
     696           0 :       );
     697             : 
     698           0 : QUERY(PickPathNode,
     699             :     ((Position, pos))
     700             :     ,
     701             :     ((AtlasMessage::sCinemaPathNode, node))
     702           0 :     );
     703             : 
     704           0 : QUERY(PickAxis,
     705             :     ((AtlasMessage::sCinemaPathNode, node))
     706             :     ((Position, pos))
     707             :     ,
     708             :     ((int, axis))
     709           0 :     );
     710             : 
     711           0 : COMMAND(AddPathNode, NOMERGE,
     712             :     ((AtlasMessage::sCinemaPathNode, node))
     713           0 :     );
     714             : 
     715           0 : COMMAND(DeletePathNode, NOMERGE,
     716             :     ((AtlasMessage::sCinemaPathNode, node))
     717           0 :     );
     718             : 
     719           0 : COMMAND(MovePathNode, NOMERGE,
     720             :     ((AtlasMessage::sCinemaPathNode, node))
     721             :     ((int, axis))
     722             :     ((Position, from))
     723             :     ((Position, to))
     724           0 :     );
     725             : 
     726           0 : COMMAND(AddCinemaPath, NOMERGE, ((std::wstring, pathName)));
     727             : 
     728           0 : COMMAND(DeleteCinemaPath, NOMERGE, ((std::wstring, pathName)));
     729             : 
     730           0 : COMMAND(SetCinemaPaths, NOMERGE,
     731             :         ((std::vector<AtlasMessage::sCinemaPath>, paths))
     732           0 :         );
     733             : 
     734           0 : COMMAND(SetCinemaPathsDrawing, NOMERGE, ((bool, drawPaths)));
     735             : 
     736           0 : MESSAGE(CinemaEvent,
     737             :         ((std::wstring, path))
     738             :         ((int, mode))
     739             :         ((float, t))
     740             :         ((bool, drawCurrent))
     741             :         ((bool, lines))
     742           0 :         );
     743             : 
     744           0 : MESSAGE(ClearPathNodePreview,);
     745             : 
     746             : //////////////////////////////////////////////////////////////////////////
     747             : 
     748           0 : QUERY(GetSelectedObjectsTemplateNames,
     749             :         ((std::vector<ObjectID>, ids))
     750             :         ,
     751             :         ((std::vector<std::string>, names))
     752           0 :         );
     753             : 
     754             : 
     755             : #ifdef _MSC_VER
     756             : #pragma warning(pop)
     757             : #endif
     758             : 
     759             : 
     760             : #ifndef MESSAGES_SKIP_SETUP
     761             : #include "MessagesSetup.h" // IWYU pragma: keep
     762             : #endif
     763             : 
     764             : #endif // INCLUDED_MESSAGES

Generated by: LCOV version 1.16