rename SeedsOre -> SeedsResource, since that wasnt accurate anymore.

This commit is contained in:
Chris Forbes
2010-03-03 21:39:15 +13:00
parent 070caa5acb
commit 915e824c88
3 changed files with 6 additions and 6 deletions

View File

@@ -23,16 +23,16 @@ using System;
namespace OpenRA.Traits namespace OpenRA.Traits
{ {
class SeedsOreInfo : ITraitInfo class SeedsResourceInfo : ITraitInfo
{ {
public readonly float Chance = .05f; public readonly float Chance = .05f;
public readonly int Interval = 5; public readonly int Interval = 5;
public readonly string ResourceType = "Ore"; public readonly string ResourceType = "Ore";
public object Create(Actor self) { return new SeedsOre(); } public object Create(Actor self) { return new SeedsResource(); }
} }
class SeedsOre : ITick class SeedsResource : ITick
{ {
int ticks; int ticks;
@@ -40,7 +40,7 @@ namespace OpenRA.Traits
{ {
if (--ticks <= 0) if (--ticks <= 0)
{ {
var info = self.Info.Traits.Get<SeedsOreInfo>(); var info = self.Info.Traits.Get<SeedsResourceInfo>();
var resourceType = self.World.WorldActor.Info.Traits var resourceType = self.World.WorldActor.Info.Traits
.WithInterface<ResourceTypeInfo>() .WithInterface<ResourceTypeInfo>()
.FirstOrDefault(t => t.Name == info.ResourceType); .FirstOrDefault(t => t.Name == info.ResourceType);

View File

@@ -37,6 +37,6 @@ MINE:
Inherits: ^Building Inherits: ^Building
RenderBuilding: RenderBuilding:
Palette: terrain Palette: terrain
SeedsOre: SeedsResource:
ResourceType: Tiberium ResourceType: Tiberium
-Selectable: -Selectable:

View File

@@ -1920,7 +1920,7 @@ TC05:
MINE: MINE:
Inherits: ^Building Inherits: ^Building
SeedsOre: SeedsResource:
-Selectable: -Selectable:
BOXES01: BOXES01: