Skip to content

Commit a30909d

Browse files
authored
Merge pull request #24 from alrun3/unit-costs
fix: remove incorrect static modifier on unit properties
2 parents 257f58e + 705d300 commit a30909d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

WCSharp.Api/unit.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ internal unit()
3737
public static extern bool IsUnitType(int unitTypeId, unittype unitType);
3838

3939
/// @CSharpLua.Get = "GetUnitGoldCost(GetUnitTypeId({this}))"
40-
public static extern int GoldCost { get; }
40+
public extern int GoldCost { get; }
4141
/// @CSharpLua.Get = "GetUnitGoldCost(GetUnitTypeId({this}))"
42-
public static extern int WoodCost { get; }
42+
public extern int WoodCost { get; }
4343
/// @CSharpLua.Get = "GetUnitBuildTime(GetUnitTypeId({this}))"
44-
public static extern int BuildTime { get; }
44+
public extern int BuildTime { get; }
4545

4646
/// @CSharpLua.Get = "GetUnitX({this})"
4747
/// @CSharpLua.Set = "SetUnitX({this}, {0})"

0 commit comments

Comments
 (0)