fix compile failure

This commit is contained in:
Chris Forbes
2011-02-03 19:52:55 +13:00
committed by Paul Chote
parent 73a08624ef
commit 4aaafd18f1
4 changed files with 29 additions and 23 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRA.FileFormats;
namespace OpenRA.Traits
{
public class SubCellInit : IActorInit<SubCell>
{
[FieldFromYamlKey]
public readonly int value = 0;
public SubCellInit() { }
public SubCellInit(int init)
{
value = init;
}
public SubCell Value(World world)
{
return (SubCell)value;
}
}
}