add chat command

This commit is contained in:
Naruse
2026-04-27 00:40:08 +08:00
parent 9c67e36ca3
commit 4ee9fd6908
7 changed files with 121 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
namespace MikuSB.Configuration;
using MikuSB.Proto;
namespace MikuSB.Configuration;
public class ConfigContainer
{
@@ -74,7 +76,10 @@ public class ServerOption
public class ServerProfile
{
public string Name { get; set; } = "Miku-chan";
public string Signature { get; set; } = "SnowBreak Private Server";
public int Uid { get; set; } = 80;
public int Level { get; set; } = 100;
public Sex Gender { get; set; } = Sex.Female;
}
public class ProxyOptions

View File

@@ -23,6 +23,20 @@ public class PlayerGameData : BaseDatabaseDataHelper
var result = DatabaseHelper.GetInstance<PlayerGameData>((int)uid);
return result;
}
public PlayerProfile ToProfileProto()
{
var proto = new PlayerProfile
{
Pid = (uint)Uid,
Account = Name,
Name = Name,
Level = Level,
Sex = Gender,
Sign = Signature,
};
return proto;
}
}