mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 14:23:58 +00:00
add chat command
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user