Require explicit ICreatePlayers

This commit is contained in:
reaperrr
2017-09-27 21:54:52 +02:00
committed by abcdefg30
parent d7c2c6afc4
commit 2b391d5724
3 changed files with 4 additions and 2 deletions

View File

@@ -307,6 +307,8 @@ namespace OpenRA.Traits
public interface INotifySelection { void SelectionChanged(); }
public interface IWorldLoaded { void WorldLoaded(World w, WorldRenderer wr); }
[RequireExplicitImplementation]
public interface ICreatePlayers { void CreatePlayers(World w); }
public interface IBotInfo : ITraitInfoInterface

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.Traits
public class CreateMPPlayers : ICreatePlayers
{
public void CreatePlayers(World w)
void ICreatePlayers.CreatePlayers(World w)
{
var players = new MapPlayers(w.Map.PlayerDefinitions).Players;
var worldPlayers = new List<Player>();

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Common.Traits
this.info = info;
}
public void CreatePlayers(World w)
void ICreatePlayers.CreatePlayers(World w)
{
if (w.Type != WorldType.Editor)
return;