|
|
@ -6,6 +6,7 @@ namespace ET |
|
|
|
[FriendClass(typeof (Construct))] |
|
|
|
[FriendClass(typeof (Construct))] |
|
|
|
[FriendClass(typeof (Building))] |
|
|
|
[FriendClass(typeof (Building))] |
|
|
|
[FriendClass(typeof (Farmland))] |
|
|
|
[FriendClass(typeof (Farmland))] |
|
|
|
|
|
|
|
[FriendClass(typeof(Unit))] |
|
|
|
public static class ConstructOperate |
|
|
|
public static class ConstructOperate |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static Construct CreateConstruct(Unit unit, int configId, float x, float y, long id = 0, long buildingId = 0) |
|
|
|
public static Construct CreateConstruct(Unit unit, int configId, float x, float y, long id = 0, long buildingId = 0) |
|
|
@ -178,6 +179,7 @@ namespace ET |
|
|
|
{ |
|
|
|
{ |
|
|
|
var farmland = build.AddChild<Farmland>(); |
|
|
|
var farmland = build.AddChild<Farmland>(); |
|
|
|
farmland.FarmlandState = FarmlandState.FARMLAND_STATE_FREE; |
|
|
|
farmland.FarmlandState = FarmlandState.FARMLAND_STATE_FREE; |
|
|
|
|
|
|
|
unit.FarmlandDic[farmland.Id] = farmland; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|