KCP gameserver with packet dispatch, scene streaming, combat, gacha and the shop, plus a small HTTP server for the login flow and the wish history page. Game data under assets is pulled out of the client instead of being typed by hand. The excel tables come from the packed bin container and the spawn points from the compiled scene scripts.
23 lines
1.2 KiB
C#
23 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
using Yuanshen.Common.Data.Excel.Attributes;
|
|
|
|
namespace Yuanshen.Common.Data.Excel;
|
|
|
|
[Excel(ExcelType.Avatar, "AvatarExcelConfigData.json")]
|
|
public sealed class AvatarExcel : ExcelItem
|
|
{
|
|
[JsonPropertyName("id")] public uint Id { get; set; }
|
|
[JsonPropertyName("qualityType")] public string QualityType { get; set; } = string.Empty;
|
|
[JsonPropertyName("iconName")] public string IconName { get; set; } = string.Empty;
|
|
[JsonPropertyName("weaponType")] public string WeaponType { get; set; } = "WEAPON_SWORD_ONE_HAND";
|
|
[JsonPropertyName("skillDepotId")] public uint SkillDepotId { get; set; }
|
|
[JsonPropertyName("initialWeapon")] public uint InitialWeapon { get; set; }
|
|
[JsonPropertyName("hp_base")] public double HpBase { get; set; }
|
|
[JsonPropertyName("attack_base")] public double AttackBase { get; set; }
|
|
[JsonPropertyName("defense_base")] public double DefenseBase { get; set; }
|
|
[JsonPropertyName("critical")] public double Critical { get; set; }
|
|
[JsonPropertyName("criticalHurt")] public double CriticalHurt { get; set; }
|
|
[JsonPropertyName("chargeEfficiency")] public double ChargeEfficiency { get; set; }
|
|
|
|
public override uint ExcelId => Id;
|
|
}
|