How electronicarts/cnc_remastered_collection works
CnC Remastered Map Editor is a desktop application for creating and editing Tiberian Dawn and Red Alert maps. The principal workflow is to open or create a map, edit its terrain and placed objects with tools, configure scenario settings, and view the result in the map panel. Game-specific plugins supply type data; asset managers load rendering resources. The README also identifies Steam Workshop support. Some subsystem links are based on source-tree names and documented capabilities; only startup, selected asset loading, and Steamworks API excerpts were sampled.
Main entry points: MainForm.cs Main window · Program.cs Application startup · Map.cs Map state · TilesetManager.cs Tileset manager
Components 21
Editor interface
- Application startup
CnCTDRAMapEditor/Program.cs - Main window
CnCTDRAMapEditor/MainForm.cs - Editor controls
CnCTDRAMapEditor/Controls/MapPanel.cs - Map and scenario settings
CnCTDRAMapEditor/Dialogs/MapSettingsDialog.cs
Map editing
- Map editing tools
CnCTDRAMapEditor/Tools/BuildingTool.cs - Map state
CnCTDRAMapEditor/Model/Map.cs - Cell grid
CnCTDRAMapEditor/Model/CellGrid.cs - Map entities
CnCTDRAMapEditor/Model/Building.cs - Triggers and teams
CnCTDRAMapEditor/Model/Trigger.cs - Undo and redo
CnCTDRAMapEditor/Utility/UndoRedoList.cs - Map file encoding
CnCTDRAMapEditor/Utility/INI.cs
Game data and rendering
- Map renderer
CnCTDRAMapEditor/Render/MapRenderer.cs - Game plugins
CnCTDRAMapEditor/Interface/IGamePlugin.cs - Red Alert data
CnCTDRAMapEditor/RedAlert/GamePlugin.cs - Tiberian Dawn data
CnCTDRAMapEditor/TiberianDawn/GamePlugin.cs - Game asset archives
CnCTDRAMapEditor/Utility/MegafileManager.cs - Texture manager
CnCTDRAMapEditor/Utility/TextureManager.cs - Tileset manager
CnCTDRAMapEditor/Utility/TilesetManager.cs
External integration
- Steam Workshop integration
CnCTDRAMapEditor/Utility/SteamworksUGC.cs
Other components
- Map editor user
- Steam services
Connections 22
- Map editor user → Main window: uses
- Application startup → Game asset archives: loads archives
- Application startup → Texture manager: initializes
- Application startup → Tileset manager: initializes
- Application startup → Main window: launches
- Main window → Editor controls: presents
- Main window → Map editing tools: dispatches editing
- Main window → Map and scenario settings: opens settings
- Main window → Map file encoding: loads and saves
- Map editing tools → Map state: edits
- Map editing tools → Undo and redo: records changes
- Map state → Cell grid: uses grid
- Map state → Map entities: contains entities
- Map state → Triggers and teams: contains scenario data
- Editor controls → Map renderer: requests rendering
- Map renderer → Tileset manager: gets tile data
- Tileset manager → Texture manager: uses textures
- Tileset manager → Game asset archives: loads definitions
- Game plugins → Red Alert data: implemented by
- Game plugins → Tiberian Dawn data: implemented by
- Application startup → Steam Workshop integration: initializes optionally
- Steam Workshop integration → Steam services: uses Workshop API