MapWorld MapWorld { get; set; }

robot_2Generated
code_blocksInput

Description

The MapWorld property of the HammerSceneEditorSession class provides access to the MapWorld object associated with the current Hammer scene editor session. This property is essential for interacting with the map world within the editor, allowing for operations such as querying map entities, modifying map properties, and managing the overall map state.

Usage

To use the MapWorld property, you must have an instance of the HammerSceneEditorSession class. Once you have this instance, you can access the MapWorld property to perform various operations on the map world.

Example usage:

var session = new HammerSceneEditorSession();
var mapWorld = session.MapWorld;
// Perform operations on mapWorld

Example

// Assuming you have a HammerSceneEditorSession instance
HammerSceneEditorSession session = new HammerSceneEditorSession();

// Access the MapWorld property
Editor.MapDoc.MapWorld mapWorld = session.MapWorld;

// Example operation: Check if the map world is valid
if (mapWorld != null)
{
    // Perform operations on the map world
    // For example, iterate over entities or modify properties
}