30 lines
781 B
C#
30 lines
781 B
C#
using Gameplay.Building.Data;
|
|
using Gameplay.Building.Impl;
|
|
namespace Gameplay.Building
|
|
{
|
|
public static class UnitBuildFactory
|
|
{
|
|
|
|
public static UnitBuild CreateBuild(EFightBuildType buildType, uint uId, int troopId)
|
|
{
|
|
UnitBuild unitBuild = null;
|
|
switch (buildType)
|
|
{
|
|
case EFightBuildType.WatchTower:
|
|
var watchTower = new BuildWatchTower(uId, troopId);
|
|
unitBuild = watchTower;
|
|
break;
|
|
}
|
|
if (unitBuild != null)
|
|
{
|
|
}
|
|
else
|
|
{
|
|
DebugUtil.LogError("暂未实现的建筑类型:" + buildType);
|
|
}
|
|
return unitBuild;
|
|
}
|
|
|
|
}
|
|
}
|