23 lines
486 B
C#
23 lines
486 B
C#
using NBC;
|
|
using NBF.Utils;
|
|
|
|
namespace NBF
|
|
{
|
|
public static class IConfigTableExtensions
|
|
{
|
|
public static string GetName(this IConfigTable config)
|
|
{
|
|
return config.Key.GetName();
|
|
}
|
|
|
|
public static string GetDesc(this IConfigTable config)
|
|
{
|
|
return config.Key.GetDesc();
|
|
}
|
|
|
|
public static string GetModelPath(this ItemConfig config)
|
|
{
|
|
return "gfx/" + config.Model;
|
|
}
|
|
}
|
|
} |