Combine IMapGenerator interfaces.

This removes the need to instantiate a dummy
trait instance and is more idiomatic.
This commit is contained in:
Paul Chote
2025-03-02 08:39:56 +00:00
committed by Gustas Kažukauskas
parent 7ee79a0e64
commit 23b7b56c28
6 changed files with 29 additions and 62 deletions

View File

@@ -973,10 +973,7 @@ namespace OpenRA.Mods.Common.Traits
{
string Type { get; }
string Name { get; }
}
public interface IMapGenerator
{
/// <summary>
/// Get the generator settings available for this map.
/// Returns null if not compatible with the given map.
@@ -993,7 +990,5 @@ namespace OpenRA.Mods.Common.Traits
/// Thrown if the map could not be generated with the requested configuration. Map should be discarded.
/// </exception>
void Generate(Map map, MiniYaml settings);
IMapGeneratorInfo Info { get; }
}
}