mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 21:34:43 +01:00
feat: add in game command handler
This commit is contained in:
@@ -71,12 +71,11 @@ public class ServerOption
|
||||
|
||||
public class ServerProfile
|
||||
{
|
||||
public string Name { get; set; } = "Server";
|
||||
public string Name { get; set; } = "Ai-chan";
|
||||
public int Uid { get; set; } = 80;
|
||||
public string Signature { get; set; } = "Type /help for a list of commands";
|
||||
public int Level { get; set; } = 1;
|
||||
public int HeadIcon { get; set; } = 200105;
|
||||
public int ChatBubbleId { get; set; } = 220001;
|
||||
public int DisplayAvatarId { get; set; } = 1001;
|
||||
public int DisplayAvatarLevel { get; set; } = 1;
|
||||
public int AvatarId { get; set; } = 3201;
|
||||
public int DressId { get; set; } = 593201;
|
||||
public int FrameId { get; set; } = 200001;
|
||||
public int HeadId { get; set; } = 161080;
|
||||
|
||||
}
|
||||
@@ -11,16 +11,16 @@ public class PlayerData : BaseDatabaseDataHelper
|
||||
{
|
||||
public string? Name { get; set; } = "";
|
||||
public string? Signature { get; set; } = "KianaPS";
|
||||
public uint Level { get; set; } = 88;
|
||||
public uint Exp { get; set; } = 0;
|
||||
public uint HCoin { get; set; } = 0;
|
||||
public uint Stamina { get; set; } = 240;
|
||||
public uint HeadIcon { get; set; } = 161090;
|
||||
public uint HeadFrame { get; set; } = 200001;
|
||||
public uint WarshipId { get; set; } = 400004;
|
||||
public uint PhonePendantId { get; set; } = 350005;
|
||||
public uint AssistantAvatarId { get; set; } = 101;
|
||||
public uint BirthDay { get; set; } = 0;
|
||||
public int Level { get; set; } = 88;
|
||||
public int Exp { get; set; } = 0;
|
||||
public int HCoin { get; set; } = 0;
|
||||
public int Stamina { get; set; } = 240;
|
||||
public int HeadIcon { get; set; } = 161090;
|
||||
public int HeadFrame { get; set; } = 200001;
|
||||
public int WarshipId { get; set; } = 400004;
|
||||
public int PhonePendantId { get; set; } = 350005;
|
||||
public int AssistantAvatarId { get; set; } = 101;
|
||||
public int BirthDay { get; set; } = 0;
|
||||
[SugarColumn(IsJson = true)] public WarshipAvatarData WarshipAvatar { get; set; } = new();
|
||||
[SugarColumn(IsNullable = true)] public long LastActiveTime { get; set; }
|
||||
public long RegisterTime { get; set; } = Extensions.GetUnixSec();
|
||||
@@ -35,23 +35,23 @@ public class PlayerData : BaseDatabaseDataHelper
|
||||
return new GetMainDataRsp
|
||||
{
|
||||
IsAll = true,
|
||||
AssistantAvatarId = 0,
|
||||
Birthday = BirthDay,
|
||||
AssistantAvatarId = (uint)AssistantAvatarId,
|
||||
Birthday = (uint)BirthDay,
|
||||
Nickname = Name,
|
||||
Level = Level,
|
||||
Exp = Exp,
|
||||
Hcoin = HCoin,
|
||||
CustomHeadId = HeadIcon,
|
||||
Level = (uint)Level,
|
||||
Exp = (uint)Exp,
|
||||
Hcoin = (uint)HCoin,
|
||||
CustomHeadId = (uint)HeadIcon,
|
||||
RegisterTime = (uint)RegisterTime,
|
||||
WarshipAvatar = new Proto.WarshipAvatarData
|
||||
{
|
||||
WarshipFirstAvatarId = 0,
|
||||
WarshipSecondAvatarId = 0,
|
||||
WarshipFirstAvatarId = (uint)WarshipAvatar.FirstAvatarId,
|
||||
WarshipSecondAvatarId = (uint)WarshipAvatar.SecondAvatarId,
|
||||
},
|
||||
SelfDesc = Signature,
|
||||
UseFrameId = HeadFrame,
|
||||
OnPhonePendantId = PhonePendantId,
|
||||
Stamina = Stamina,
|
||||
UseFrameId = (uint)HeadFrame,
|
||||
OnPhonePendantId = (uint)PhonePendantId,
|
||||
Stamina = (uint)Stamina,
|
||||
StaminaRecoverConfigTime = GameConstants.STAMINA_RECOVERY_TIME,
|
||||
StaminaRecoverLeftTime = GameConstants.STAMINA_RECOVERY_TIME,
|
||||
EquipmentSizeLimit = GameConstants.INVENTORY_MAX_EQUIPMENT,
|
||||
@@ -59,7 +59,7 @@ public class PlayerData : BaseDatabaseDataHelper
|
||||
LevelLockId = 1,
|
||||
WarshipTheme = new WarshipThemeData
|
||||
{
|
||||
WarshipId=0
|
||||
WarshipId=(uint)WarshipId
|
||||
},
|
||||
TotalLoginDays = 1
|
||||
};
|
||||
@@ -68,6 +68,6 @@ public class PlayerData : BaseDatabaseDataHelper
|
||||
|
||||
public class WarshipAvatarData
|
||||
{
|
||||
public uint FirstAvatarId { get; set; } = 101;
|
||||
public uint SecondAvatarId { get; set; } = 0;
|
||||
public int FirstAvatarId { get; set; } = 101;
|
||||
public int SecondAvatarId { get; set; } = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user