KafkaSR/RPG.Services.Gameserver/RPGGameserver.cs

20 lines
511 B
C#
Raw Normal View History

2024-01-29 23:49:21 +00:00
using RPG.GameCore.Excel;
using RPG.Services.Core;
namespace RPG.Services.Gameserver;
internal class RPGGameserver : RPGServiceBase
{
private readonly ExcelTables _excelTables;
public RPGGameserver(ServiceManager serviceManager, ExcelTables excelTables) : base(serviceManager)
{
_excelTables = excelTables;
}
public override async Task StartAsync(CancellationToken cancellationToken)
{
_excelTables.Load();
await base.StartAsync(cancellationToken);
}
}