using StatelessTraitInfo<> for some things
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class SeedsOreInfo : ITraitInfo
|
||||
{
|
||||
public object Create(Actor self) { return new SeedsOre(self); }
|
||||
}
|
||||
class SeedsOreInfo : StatelessTraitInfo<SeedsOre> {}
|
||||
|
||||
class SeedsOre : ITick
|
||||
{
|
||||
public SeedsOre( Actor self ) {}
|
||||
|
||||
const double OreSeedProbability = .05; // todo: push this out into rules
|
||||
|
||||
public void Tick(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user