Combine IMapGenerator interfaces.
This removes the need to instantiate a dummy trait instance and is more idiomatic.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
7ee79a0e64
commit
23b7b56c28
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user