Snowflake/RPG.Services.Gameserver/RPGGameserver.cs

20 lines
511 B
C#
Raw Normal View History

2024-01-19 14:45:18 +00:00
using RPG.GameCore.Excel;
using RPG.Services.Core;
2024-01-18 22:13:40 +00:00
namespace RPG.Services.Gameserver;
internal class RPGGameserver : RPGServiceBase
{
2024-01-19 14:45:18 +00:00
private readonly ExcelTables _excelTables;
public RPGGameserver(ServiceManager serviceManager, ExcelTables excelTables) : base(serviceManager)
{
_excelTables = excelTables;
}
public override async Task StartAsync(CancellationToken cancellationToken)
2024-01-18 22:13:40 +00:00
{
2024-01-19 14:45:18 +00:00
_excelTables.Load();
await base.StartAsync(cancellationToken);
2024-01-18 22:13:40 +00:00
}
}