25 lines
608 B
C#
25 lines
608 B
C#
using cfg.FightCfg;
|
|
using Framework;
|
|
namespace Gameplay.Building.Data
|
|
{
|
|
public class BuildConfigData
|
|
{
|
|
|
|
public DataBuild rawConfig;
|
|
|
|
public EFightBuildType buildType;
|
|
|
|
public BuildConfigData(int buildId)
|
|
{
|
|
rawConfig = TableManager.Instance.Tables.BuildConfig.GetOrDefault(buildId);
|
|
if (rawConfig == null)
|
|
{
|
|
DebugUtil.LogError("BuildConfigData: rawConfig is null, buildId: " + buildId);
|
|
return;
|
|
}
|
|
buildType = (EFightBuildType)rawConfig.BuildType;
|
|
}
|
|
|
|
}
|
|
}
|