Ore.cs is dead. Long live ResourceLayer.cs.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace OpenRA.Traits
|
||||
World w;
|
||||
|
||||
public ResourceTypeInfo[] resourceTypes;
|
||||
public CellContents[,] content = new CellContents[128, 128];
|
||||
CellContents[,] content = new CellContents[128, 128];
|
||||
|
||||
public ResourceLayer(Actor self)
|
||||
{
|
||||
@@ -185,6 +185,8 @@ namespace OpenRA.Traits
|
||||
}
|
||||
}
|
||||
|
||||
public ResourceTypeInfo GetResource(int2 p) { return content[p.X, p.Y].type; }
|
||||
|
||||
public struct CellContents
|
||||
{
|
||||
public ResourceTypeInfo type;
|
||||
|
||||
Reference in New Issue
Block a user