feat: add npc info (level and aggro radius)

This commit is contained in:
k0t9i
2023-01-31 00:32:26 +04:00
parent a8734a4ca0
commit 89cec4f40f
11 changed files with 26504 additions and 20 deletions

View File

@@ -60,7 +60,8 @@ namespace Client
{
IConfiguration config = new ConfigurationBuilder()
.AddJsonFile("config.json", optional: false, reloadOnChange: true)
.AddJsonFile("experience.json", optional: false, reloadOnChange: true)
.AddJsonFile("Assets/data/experience.json", optional: false, reloadOnChange: true)
.AddJsonFile("Assets/data/npcInfo.json", optional: false, reloadOnChange: true)
.Build();
services
@@ -84,6 +85,7 @@ namespace Client
)
)
.AddSingleton(typeof(ExperienceHelperInterface), typeof(ConfigurationExperienceHelper))
.AddSingleton(typeof(NpcInfoHelperInterface), typeof(ConfigurationNpcInfoHelper))
.AddTransient(typeof(EntityFactoryInterface<Hero>), typeof(EntityFactory<Hero>))
.AddTransient(typeof(EntityFactoryInterface<Drop>), typeof(EntityFactory<Drop>))