Merge pull request #3256 from Mailaender/debug-trait-removal
Removed all Debug 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;
|
||||
|
||||
Reference in New Issue
Block a user