List<Input> Inputs { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Inputs property of the MapClass class provides a list of inputs associated with this map entity class. Each input is represented by an instance of the Editor.Input class, which defines the actions or events that can be triggered on the entity within the map editor.

Usage

To access the inputs of a MapClass instance, you can use the Inputs property. This property returns a List<Editor.Input>, allowing you to iterate over the inputs, add new inputs, or modify existing ones.

Example usage:

var mapClass = new MapClass();
foreach (var input in mapClass.Inputs)
{
    // Process each input
    Console.WriteLine(input.Name);
}

Example

var mapClass = new MapClass();

// Add a new input to the map class
var newInput = new Editor.Input("Trigger", "Triggers an event");
mapClass.Inputs.Add(newInput);

// Iterate through all inputs
foreach (var input in mapClass.Inputs)
{
    // Output the name of each input
    Console.WriteLine(input.Name);
}