Remove direct access to MapPreview.Rules.
This commit is contained in:
@@ -54,7 +54,7 @@ namespace OpenRA.Traits
|
||||
[Desc("Display order for the explore map checkbox in the lobby.")]
|
||||
public readonly int ExploredMapCheckboxDisplayOrder = 0;
|
||||
|
||||
IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(Ruleset rules)
|
||||
IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview map)
|
||||
{
|
||||
yield return new LobbyBooleanOption("explored", ExploredMapCheckboxLabel, ExploredMapCheckboxDescription,
|
||||
ExploredMapCheckboxVisible, ExploredMapCheckboxDisplayOrder, ExploredMapCheckboxEnabled, ExploredMapCheckboxLocked);
|
||||
|
||||
@@ -530,7 +530,7 @@ namespace OpenRA.Traits
|
||||
[RequireExplicitImplementation]
|
||||
public interface ILobbyOptions : ITraitInfoInterface
|
||||
{
|
||||
IEnumerable<LobbyOption> LobbyOptions(Ruleset rules);
|
||||
IEnumerable<LobbyOption> LobbyOptions(MapPreview map);
|
||||
}
|
||||
|
||||
public class LobbyOption
|
||||
|
||||
Reference in New Issue
Block a user