removed now redundant debug player-resource traits
This commit is contained in:
@@ -23,42 +23,6 @@ namespace OpenRA.Traits
|
||||
public object Create(ActorInitializer init) { return new PlayerResources(init.self, this); }
|
||||
}
|
||||
|
||||
public class DebugResourceCashInfo : ITraitInfo, Requires<PlayerResourcesInfo>
|
||||
{
|
||||
public object Create(ActorInitializer init) { return new DebugResourceCash(init.self); }
|
||||
}
|
||||
|
||||
public class DebugResourceCash : ISync
|
||||
{
|
||||
readonly PlayerResources pr;
|
||||
public DebugResourceCash(Actor self) { pr = self.Trait<PlayerResources>(); }
|
||||
[Sync] public int foo { get { return pr.Cash; } }
|
||||
}
|
||||
|
||||
public class DebugResourceOreInfo : ITraitInfo, Requires<PlayerResourcesInfo>
|
||||
{
|
||||
public object Create(ActorInitializer init) { return new DebugResourceOre(init.self); }
|
||||
}
|
||||
|
||||
public class DebugResourceOre : ISync
|
||||
{
|
||||
readonly PlayerResources pr;
|
||||
public DebugResourceOre(Actor self) { pr = self.Trait<PlayerResources>(); }
|
||||
[Sync] public int foo { get { return pr.Ore; } }
|
||||
}
|
||||
|
||||
public class DebugResourceOreCapacityInfo : ITraitInfo
|
||||
{
|
||||
public object Create(ActorInitializer init) { return new DebugResourceOreCapacity(init.self); }
|
||||
}
|
||||
|
||||
public class DebugResourceOreCapacity : ISync
|
||||
{
|
||||
readonly PlayerResources pr;
|
||||
public DebugResourceOreCapacity(Actor self) { pr = self.Trait<PlayerResources>(); }
|
||||
[Sync] public int foo { get { return pr.OreCapacity; } }
|
||||
}
|
||||
|
||||
public class PlayerResources : ITick, ISync
|
||||
{
|
||||
readonly Player Owner;
|
||||
|
||||
@@ -518,9 +518,6 @@ Player:
|
||||
PlayerColorPalette:
|
||||
BasePalette: player
|
||||
RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
|
||||
DebugResourceCash:
|
||||
DebugResourceOre:
|
||||
DebugResourceOreCapacity:
|
||||
GpsWatcher:
|
||||
Shroud:
|
||||
BaseAttackNotifier:
|
||||
|
||||
Reference in New Issue
Block a user