fix dumb name, at Bob's request
This commit is contained in:
@@ -238,7 +238,7 @@ namespace OpenRa
|
|||||||
: world.Map.SpawnPoints.ElementAt(client.SpawnPoint - 1);
|
: world.Map.SpawnPoints.ElementAt(client.SpawnPoint - 1);
|
||||||
|
|
||||||
foreach (var ssu in world.players[client.Index].PlayerActor
|
foreach (var ssu in world.players[client.Index].PlayerActor
|
||||||
.traits.WithInterface<ISpawnStartingUnits>())
|
.traits.WithInterface<IOnGameStart>())
|
||||||
ssu.SpawnStartingUnits(world.players[client.Index], sp);
|
ssu.SpawnStartingUnits(world.players[client.Index], sp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ namespace OpenRa.Traits
|
|||||||
{
|
{
|
||||||
class SpawnDefaultUnitsInfo : StatelessTraitInfo<SpawnDefaultUnits> { }
|
class SpawnDefaultUnitsInfo : StatelessTraitInfo<SpawnDefaultUnits> { }
|
||||||
|
|
||||||
class SpawnDefaultUnits : ISpawnStartingUnits
|
class SpawnDefaultUnits : IOnGameStart
|
||||||
{
|
{
|
||||||
public void SpawnStartingUnits(Player p, int2 sp)
|
public void SpawnStartingUnits(Player p, int2 sp)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -104,5 +104,5 @@ namespace OpenRa.Traits
|
|||||||
|
|
||||||
public interface INotifySelection { void SelectionChanged(); }
|
public interface INotifySelection { void SelectionChanged(); }
|
||||||
public interface ILoadWorldHook { void WorldLoaded(World w); }
|
public interface ILoadWorldHook { void WorldLoaded(World w); }
|
||||||
public interface ISpawnStartingUnits { void SpawnStartingUnits(Player p, int2 sp); }
|
public interface IOnGameStart { void SpawnStartingUnits(Player p, int2 sp); }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user