This commit is contained in:
ALIENJACK\alien 2025-01-13 17:58:47 +08:00
commit 9152a19b77
9 changed files with 1156 additions and 388 deletions

View File

@ -89,8 +89,16 @@
/// </summary> /// </summary>
OnRomStarStateChanged, OnRomStarStateChanged,
/// <summary> /// <summary>
/// 网络即时存档列表更新 /// 网络即时存档拉取成功
/// </summary> /// </summary>
OnNetGameSavListUpdate, OnNetGameSavListGot,
/// <summary>
/// 网络即时存档删除
/// </summary>
OnNetGameSavDeleted,
/// <summary>
/// 网络即时存档上传成功
/// </summary>
OnNetUploaded,
} }
} }

View File

@ -3,14 +3,12 @@ using AxibugEmuOnline.Client.Common;
using AxibugEmuOnline.Client.Event; using AxibugEmuOnline.Client.Event;
using AxibugEmuOnline.Client.Network; using AxibugEmuOnline.Client.Network;
using AxibugProtobuf; using AxibugProtobuf;
using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace AxibugEmuOnline.Client.Manager namespace AxibugEmuOnline.Client.Manager
{ {
public class AppGameSavMgr public class AppGameSavMgr
{ {
Dictionary<int, Protobuf_Mine_GameSavInfo[]> dictRomId2SavInfo = new Dictionary<int, Protobuf_Mine_GameSavInfo[]>();
public AppGameSavMgr() public AppGameSavMgr()
{ {
NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavGetGameSavList, RecvGetGameSavList); NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavGetGameSavList, RecvGetGameSavList);
@ -18,20 +16,6 @@ namespace AxibugEmuOnline.Client.Manager
NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavUploadGameSav, RecvUpLoadGameSav); NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavUploadGameSav, RecvUpLoadGameSav);
} }
/// <summary>
/// 从数据层取存档列表数据一般是OnNetGameSavListUpdate事件来了之后来取数据
/// </summary>
/// <param name="RomID"></param>
/// <returns></returns>
public Protobuf_Mine_GameSavInfo[] GetRomSaveIDList(int RomID)
{
if (!dictRomId2SavInfo.ContainsKey(RomID))
{
dictRomId2SavInfo[RomID] = null;
}
return dictRomId2SavInfo[RomID];
}
/// <summary> /// <summary>
/// 发送请求即时存档列表 /// 发送请求即时存档列表
/// </summary> /// </summary>
@ -49,14 +33,13 @@ namespace AxibugEmuOnline.Client.Manager
void RecvGetGameSavList(byte[] reqData) void RecvGetGameSavList(byte[] reqData)
{ {
Protobuf_Mine_GetGameSavList_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_GetGameSavList_RESP>(reqData); Protobuf_Mine_GetGameSavList_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_GetGameSavList_RESP>(reqData);
Protobuf_Mine_GameSavInfo[] savArr = new Protobuf_Mine_GameSavInfo[4];
Protobuf_Mine_GameSavInfo[] savArr = GetRomSaveIDList(msg.RomID);
for (int i = 0; i < savArr.Length; i++) for (int i = 0; i < savArr.Length; i++)
{ {
Protobuf_Mine_GameSavInfo info = msg.SavDataList.FirstOrDefault(w => w.SavDataIdx == i); Protobuf_Mine_GameSavInfo info = msg.SavDataList.FirstOrDefault(w => w.SavDataIdx == i);
savArr[i] = info; savArr[i] = info;
} }
Eventer.Instance.PostEvent(EEvent.OnNetGameSavListUpdate, msg.RomID); Eventer.Instance.PostEvent(EEvent.OnNetGameSavListGot, msg.RomID, savArr);
} }
/// <summary> /// <summary>
@ -64,7 +47,7 @@ namespace AxibugEmuOnline.Client.Manager
/// </summary> /// </summary>
/// <param name="RomID"></param> /// <param name="RomID"></param>
/// <param name="SavDataIdx"></param> /// <param name="SavDataIdx"></param>
public void SendDelGameSavList(int RomID,int SavDataIdx) public void SendDelGameSavList(int RomID, int SavDataIdx)
{ {
Protobuf_Mine_DelGameSav req = new Protobuf_Mine_DelGameSav() Protobuf_Mine_DelGameSav req = new Protobuf_Mine_DelGameSav()
{ {
@ -78,10 +61,7 @@ namespace AxibugEmuOnline.Client.Manager
void RecvDelGameSavList(byte[] reqData) void RecvDelGameSavList(byte[] reqData)
{ {
Protobuf_Mine_DelGameSav_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_DelGameSav_RESP>(reqData); Protobuf_Mine_DelGameSav_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_DelGameSav_RESP>(reqData);
Eventer.Instance.PostEvent(EEvent.OnNetGameSavDeleted, msg.RomID, msg.SavDataIdx);
Protobuf_Mine_GameSavInfo[] savArr = GetRomSaveIDList(msg.RomID);
savArr[msg.SavDataIdx] = null;
Eventer.Instance.PostEvent(EEvent.OnNetGameSavListUpdate, msg.RomID);
} }
/// <summary> /// <summary>
@ -89,7 +69,7 @@ namespace AxibugEmuOnline.Client.Manager
/// </summary> /// </summary>
/// <param name="RomID"></param> /// <param name="RomID"></param>
/// <param name="SavDataIdx"></param> /// <param name="SavDataIdx"></param>
public void SendUpLoadGameSav(int RomID,int SavDataIdx, byte[] RawData, byte[] SavImgData) public void SendUpLoadGameSav(int RomID, int SavDataIdx, byte[] RawData, byte[] SavImgData)
{ {
//压缩 //压缩
byte[] compressRawData = Helper.CompressByteArray(RawData); byte[] compressRawData = Helper.CompressByteArray(RawData);
@ -115,10 +95,7 @@ namespace AxibugEmuOnline.Client.Manager
void RecvUpLoadGameSav(byte[] reqData) void RecvUpLoadGameSav(byte[] reqData)
{ {
Protobuf_Mine_UpLoadGameSav_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_UpLoadGameSav_RESP>(reqData); Protobuf_Mine_UpLoadGameSav_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_UpLoadGameSav_RESP>(reqData);
Eventer.Instance.PostEvent(EEvent.OnNetUploaded, msg.RomID,msg.SavDataIdx, msg.UploadSevInfo);
Protobuf_Mine_GameSavInfo[] savArr = GetRomSaveIDList(msg.RomID);
savArr[msg.UploadSevInfo.SavDataIdx] = msg.UploadSevInfo;
Eventer.Instance.PostEvent(EEvent.OnNetGameSavListUpdate, msg.RomID);
} }
/// <summary> /// <summary>

View File

@ -109,62 +109,63 @@ namespace AxibugProtobuf {
"bmV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3lzdGVtEAISDQoJR2FtZV9HZWFyEAMSDAoIR2FtZV9Cb3kQ", "Q29udHJvbBAMEhYKEk5pbnRlbmRvM0RTQ29udHJvbBANKqIBCg9Sb21QbGF0",
"BBISCg5HYW1lX0JveV9Db2xvchAFEhEKDUNvbGVjb19WaXNpb24QBhILCgdT", "Zm9ybVR5cGUSCwoHSW52YWxpZBAAEgcKA05lcxABEhEKDU1hc3Rlcl9TeXN0",
"Q18zMDAwEAcSCwoHU0dfMTAwMBAIEggKA0FsbBDnBypwCg1Sb29tR2FtZVN0", "ZW0QAhINCglHYW1lX0dlYXIQAxIMCghHYW1lX0JveRAEEhIKDkdhbWVfQm95",
"YXRlEhIKDk5vbmVfR2FtZVN0YXRlEAASDAoIT25seUhvc3QQARIRCg1XYWl0", "X0NvbG9yEAUSEQoNQ29sZWNvX1Zpc2lvbhAGEgsKB1NDXzMwMDAQBxILCgdT",
"UmF3VXBkYXRlEAISDQoJV2FpdFJlYWR5EAMSCQoFUGF1c2UQBBIQCgxJbk9u", "R18xMDAwEAgSCAoDQWxsEOcHKnAKDVJvb21HYW1lU3RhdGUSEgoOTm9uZV9H",
"bGluZUdhbWUQBSpOChFMb2dpblJlc3VsdFN0YXR1cxIhCh1Mb2dpblJlc3Vs", "YW1lU3RhdGUQABIMCghPbmx5SG9zdBABEhEKDVdhaXRSYXdVcGRhdGUQAhIN",
"dFN0YXR1c19CYXNlRGVmYXVsdBAAEgYKAk9LEAESDgoKQWNjb3VudEVychAC", "CglXYWl0UmVhZHkQAxIJCgVQYXVzZRAEEhAKDEluT25saW5lR2FtZRAFKk4K",
"QgJIAWIGcHJvdG8z")); "EUxvZ2luUmVzdWx0U3RhdHVzEiEKHUxvZ2luUmVzdWx0U3RhdHVzX0Jhc2VE",
"ZWZhdWx0EAASBgoCT0sQARIOCgpBY2NvdW50RXJyEAJCAkgBYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.RomPlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.RomPlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
@ -213,11 +214,11 @@ namespace AxibugProtobuf {
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Game_Mark_RESP), global::AxibugProtobuf.Protobuf_Game_Mark_RESP.Parser, new[]{ "RomID", "IsStar", "Stars" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Game_Mark_RESP), global::AxibugProtobuf.Protobuf_Game_Mark_RESP.Parser, new[]{ "RomID", "IsStar", "Stars" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList.Parser, new[]{ "RomID" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList.Parser, new[]{ "RomID" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP.Parser, new[]{ "RomID", "SavDataList" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP.Parser, new[]{ "RomID", "SavDataList" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GameSavInfo), global::AxibugProtobuf.Protobuf_Mine_GameSavInfo.Parser, new[]{ "BHadSaveData", "SavDataIdx", "RomID", "GamePlatformType", "SavDate", "SavName", "Note", "SavImgUrl", "SavUrl" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GameSavInfo), global::AxibugProtobuf.Protobuf_Mine_GameSavInfo.Parser, new[]{ "BHadSaveData", "SavID", "Uid", "SavDataIdx", "RomID", "GamePlatformType", "SavDate", "SavName", "Note", "SavImgUrl", "SavUrl" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav), global::AxibugProtobuf.Protobuf_Mine_DelGameSav.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav), global::AxibugProtobuf.Protobuf_Mine_DelGameSav.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav.Parser, new[]{ "RomID", "SavDataIdx", "SavImg", "StateRaw" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav.Parser, new[]{ "RomID", "SavDataIdx", "Name", "Note", "SavImg", "StateRaw" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP.Parser, new[]{ "RomID", "UploadSevInfo" }, null, null, null, null) new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx", "UploadSevInfo" }, null, null, null, null)
})); }));
} }
#endregion #endregion
@ -10191,6 +10192,8 @@ namespace AxibugProtobuf {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Mine_GameSavInfo(Protobuf_Mine_GameSavInfo other) : this() { public Protobuf_Mine_GameSavInfo(Protobuf_Mine_GameSavInfo other) : this() {
bHadSaveData_ = other.bHadSaveData_; bHadSaveData_ = other.bHadSaveData_;
savID_ = other.savID_;
uid_ = other.uid_;
savDataIdx_ = other.savDataIdx_; savDataIdx_ = other.savDataIdx_;
romID_ = other.romID_; romID_ = other.romID_;
gamePlatformType_ = other.gamePlatformType_; gamePlatformType_ = other.gamePlatformType_;
@ -10221,8 +10224,36 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "SavID" field.</summary>
public const int SavIDFieldNumber = 2;
private long savID_;
/// <summary>
///即时存档唯一ID用于今后分享
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long SavID {
get { return savID_; }
set {
savID_ = value;
}
}
/// <summary>Field number for the "uid" field.</summary>
public const int UidFieldNumber = 3;
private long uid_;
/// <summary>
///所属用户UID用于今后分享
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Uid {
get { return uid_; }
set {
uid_ = value;
}
}
/// <summary>Field number for the "SavDataIdx" field.</summary> /// <summary>Field number for the "SavDataIdx" field.</summary>
public const int SavDataIdxFieldNumber = 2; public const int SavDataIdxFieldNumber = 4;
private int savDataIdx_; private int savDataIdx_;
/// <summary> /// <summary>
///即时存档下标(其中第0个是自动存档位置) ///即时存档下标(其中第0个是自动存档位置)
@ -10236,7 +10267,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "RomID" field.</summary> /// <summary>Field number for the "RomID" field.</summary>
public const int RomIDFieldNumber = 3; public const int RomIDFieldNumber = 5;
private int romID_; private int romID_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int RomID { public int RomID {
@ -10247,7 +10278,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "GamePlatformType" field.</summary> /// <summary>Field number for the "GamePlatformType" field.</summary>
public const int GamePlatformTypeFieldNumber = 4; public const int GamePlatformTypeFieldNumber = 6;
private global::AxibugProtobuf.RomPlatformType gamePlatformType_ = global::AxibugProtobuf.RomPlatformType.Invalid; private global::AxibugProtobuf.RomPlatformType gamePlatformType_ = global::AxibugProtobuf.RomPlatformType.Invalid;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::AxibugProtobuf.RomPlatformType GamePlatformType { public global::AxibugProtobuf.RomPlatformType GamePlatformType {
@ -10258,7 +10289,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavDate" field.</summary> /// <summary>Field number for the "SavDate" field.</summary>
public const int SavDateFieldNumber = 5; public const int SavDateFieldNumber = 7;
private string savDate_ = ""; private string savDate_ = "";
/// <summary> /// <summary>
///存档时间 ///存档时间
@ -10272,7 +10303,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavName" field.</summary> /// <summary>Field number for the "SavName" field.</summary>
public const int SavNameFieldNumber = 6; public const int SavNameFieldNumber = 8;
private string savName_ = ""; private string savName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string SavName { public string SavName {
@ -10283,7 +10314,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "Note" field.</summary> /// <summary>Field number for the "Note" field.</summary>
public const int NoteFieldNumber = 7; public const int NoteFieldNumber = 9;
private string note_ = ""; private string note_ = "";
/// <summary> /// <summary>
///备注 ///备注
@ -10297,7 +10328,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavImgUrl" field.</summary> /// <summary>Field number for the "SavImgUrl" field.</summary>
public const int SavImgUrlFieldNumber = 8; public const int SavImgUrlFieldNumber = 10;
private string savImgUrl_ = ""; private string savImgUrl_ = "";
/// <summary> /// <summary>
///即时存档截图Url ///即时存档截图Url
@ -10311,7 +10342,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavUrl" field.</summary> /// <summary>Field number for the "SavUrl" field.</summary>
public const int SavUrlFieldNumber = 9; public const int SavUrlFieldNumber = 11;
private string savUrl_ = ""; private string savUrl_ = "";
/// <summary> /// <summary>
///即时存档下载Url ///即时存档下载Url
@ -10338,6 +10369,8 @@ namespace AxibugProtobuf {
return true; return true;
} }
if (BHadSaveData != other.BHadSaveData) return false; if (BHadSaveData != other.BHadSaveData) return false;
if (SavID != other.SavID) return false;
if (Uid != other.Uid) return false;
if (SavDataIdx != other.SavDataIdx) return false; if (SavDataIdx != other.SavDataIdx) return false;
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (GamePlatformType != other.GamePlatformType) return false; if (GamePlatformType != other.GamePlatformType) return false;
@ -10353,6 +10386,8 @@ namespace AxibugProtobuf {
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (BHadSaveData != false) hash ^= BHadSaveData.GetHashCode(); if (BHadSaveData != false) hash ^= BHadSaveData.GetHashCode();
if (SavID != 0L) hash ^= SavID.GetHashCode();
if (Uid != 0L) hash ^= Uid.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode(); if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) hash ^= GamePlatformType.GetHashCode(); if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) hash ^= GamePlatformType.GetHashCode();
@ -10381,36 +10416,44 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteBool(BHadSaveData); output.WriteBool(BHadSaveData);
} }
if (SavDataIdx != 0) { if (SavID != 0L) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt64(SavID);
}
if (Uid != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Uid);
}
if (SavDataIdx != 0) {
output.WriteRawTag(32);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (RomID != 0) { if (RomID != 0) {
output.WriteRawTag(24); output.WriteRawTag(40);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) { if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) {
output.WriteRawTag(32); output.WriteRawTag(48);
output.WriteEnum((int) GamePlatformType); output.WriteEnum((int) GamePlatformType);
} }
if (SavDate.Length != 0) { if (SavDate.Length != 0) {
output.WriteRawTag(42); output.WriteRawTag(58);
output.WriteString(SavDate); output.WriteString(SavDate);
} }
if (SavName.Length != 0) { if (SavName.Length != 0) {
output.WriteRawTag(50); output.WriteRawTag(66);
output.WriteString(SavName); output.WriteString(SavName);
} }
if (Note.Length != 0) { if (Note.Length != 0) {
output.WriteRawTag(58); output.WriteRawTag(74);
output.WriteString(Note); output.WriteString(Note);
} }
if (SavImgUrl.Length != 0) { if (SavImgUrl.Length != 0) {
output.WriteRawTag(66); output.WriteRawTag(82);
output.WriteString(SavImgUrl); output.WriteString(SavImgUrl);
} }
if (SavUrl.Length != 0) { if (SavUrl.Length != 0) {
output.WriteRawTag(74); output.WriteRawTag(90);
output.WriteString(SavUrl); output.WriteString(SavUrl);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -10426,36 +10469,44 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteBool(BHadSaveData); output.WriteBool(BHadSaveData);
} }
if (SavDataIdx != 0) { if (SavID != 0L) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt64(SavID);
}
if (Uid != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Uid);
}
if (SavDataIdx != 0) {
output.WriteRawTag(32);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (RomID != 0) { if (RomID != 0) {
output.WriteRawTag(24); output.WriteRawTag(40);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) { if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) {
output.WriteRawTag(32); output.WriteRawTag(48);
output.WriteEnum((int) GamePlatformType); output.WriteEnum((int) GamePlatformType);
} }
if (SavDate.Length != 0) { if (SavDate.Length != 0) {
output.WriteRawTag(42); output.WriteRawTag(58);
output.WriteString(SavDate); output.WriteString(SavDate);
} }
if (SavName.Length != 0) { if (SavName.Length != 0) {
output.WriteRawTag(50); output.WriteRawTag(66);
output.WriteString(SavName); output.WriteString(SavName);
} }
if (Note.Length != 0) { if (Note.Length != 0) {
output.WriteRawTag(58); output.WriteRawTag(74);
output.WriteString(Note); output.WriteString(Note);
} }
if (SavImgUrl.Length != 0) { if (SavImgUrl.Length != 0) {
output.WriteRawTag(66); output.WriteRawTag(82);
output.WriteString(SavImgUrl); output.WriteString(SavImgUrl);
} }
if (SavUrl.Length != 0) { if (SavUrl.Length != 0) {
output.WriteRawTag(74); output.WriteRawTag(90);
output.WriteString(SavUrl); output.WriteString(SavUrl);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -10470,6 +10521,12 @@ namespace AxibugProtobuf {
if (BHadSaveData != false) { if (BHadSaveData != false) {
size += 1 + 1; size += 1 + 1;
} }
if (SavID != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(SavID);
}
if (Uid != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Uid);
}
if (SavDataIdx != 0) { if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx); size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
} }
@ -10508,6 +10565,12 @@ namespace AxibugProtobuf {
if (other.BHadSaveData != false) { if (other.BHadSaveData != false) {
BHadSaveData = other.BHadSaveData; BHadSaveData = other.BHadSaveData;
} }
if (other.SavID != 0L) {
SavID = other.SavID;
}
if (other.Uid != 0L) {
Uid = other.Uid;
}
if (other.SavDataIdx != 0) { if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx; SavDataIdx = other.SavDataIdx;
} }
@ -10551,34 +10614,42 @@ namespace AxibugProtobuf {
break; break;
} }
case 16: { case 16: {
SavDataIdx = input.ReadInt32(); SavID = input.ReadInt64();
break; break;
} }
case 24: { case 24: {
RomID = input.ReadInt32(); Uid = input.ReadInt64();
break; break;
} }
case 32: { case 32: {
SavDataIdx = input.ReadInt32();
break;
}
case 40: {
RomID = input.ReadInt32();
break;
}
case 48: {
GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum(); GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum();
break; break;
} }
case 42: { case 58: {
SavDate = input.ReadString(); SavDate = input.ReadString();
break; break;
} }
case 50: { case 66: {
SavName = input.ReadString(); SavName = input.ReadString();
break; break;
} }
case 58: { case 74: {
Note = input.ReadString(); Note = input.ReadString();
break; break;
} }
case 66: { case 82: {
SavImgUrl = input.ReadString(); SavImgUrl = input.ReadString();
break; break;
} }
case 74: { case 90: {
SavUrl = input.ReadString(); SavUrl = input.ReadString();
break; break;
} }
@ -10601,34 +10672,42 @@ namespace AxibugProtobuf {
break; break;
} }
case 16: { case 16: {
SavDataIdx = input.ReadInt32(); SavID = input.ReadInt64();
break; break;
} }
case 24: { case 24: {
RomID = input.ReadInt32(); Uid = input.ReadInt64();
break; break;
} }
case 32: { case 32: {
SavDataIdx = input.ReadInt32();
break;
}
case 40: {
RomID = input.ReadInt32();
break;
}
case 48: {
GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum(); GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum();
break; break;
} }
case 42: { case 58: {
SavDate = input.ReadString(); SavDate = input.ReadString();
break; break;
} }
case 50: { case 66: {
SavName = input.ReadString(); SavName = input.ReadString();
break; break;
} }
case 58: { case 74: {
Note = input.ReadString(); Note = input.ReadString();
break; break;
} }
case 66: { case 82: {
SavImgUrl = input.ReadString(); SavImgUrl = input.ReadString();
break; break;
} }
case 74: { case 90: {
SavUrl = input.ReadString(); SavUrl = input.ReadString();
break; break;
} }
@ -11098,6 +11177,8 @@ namespace AxibugProtobuf {
public Protobuf_Mine_UpLoadGameSav(Protobuf_Mine_UpLoadGameSav other) : this() { public Protobuf_Mine_UpLoadGameSav(Protobuf_Mine_UpLoadGameSav other) : this() {
romID_ = other.romID_; romID_ = other.romID_;
savDataIdx_ = other.savDataIdx_; savDataIdx_ = other.savDataIdx_;
name_ = other.name_;
note_ = other.note_;
savImg_ = other.savImg_; savImg_ = other.savImg_;
stateRaw_ = other.stateRaw_; stateRaw_ = other.stateRaw_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
@ -11136,8 +11217,36 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "Name" field.</summary>
public const int NameFieldNumber = 3;
private string name_ = "";
/// <summary>
///存档名(留空时,服务器自动)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "Note" field.</summary>
public const int NoteFieldNumber = 4;
private string note_ = "";
/// <summary>
///备注(留空时,服务器自动)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Note {
get { return note_; }
set {
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "SavImg" field.</summary> /// <summary>Field number for the "SavImg" field.</summary>
public const int SavImgFieldNumber = 3; public const int SavImgFieldNumber = 5;
private pb::ByteString savImg_ = pb::ByteString.Empty; private pb::ByteString savImg_ = pb::ByteString.Empty;
/// <summary> /// <summary>
///即时存档截图模拟器原生数据 ///即时存档截图模拟器原生数据
@ -11151,7 +11260,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "StateRaw" field.</summary> /// <summary>Field number for the "StateRaw" field.</summary>
public const int StateRawFieldNumber = 4; public const int StateRawFieldNumber = 6;
private pb::ByteString stateRaw_ = pb::ByteString.Empty; private pb::ByteString stateRaw_ = pb::ByteString.Empty;
/// <summary> /// <summary>
///即时存档byte数据 ///即时存档byte数据
@ -11179,6 +11288,8 @@ namespace AxibugProtobuf {
} }
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (SavDataIdx != other.SavDataIdx) return false; if (SavDataIdx != other.SavDataIdx) return false;
if (Name != other.Name) return false;
if (Note != other.Note) return false;
if (SavImg != other.SavImg) return false; if (SavImg != other.SavImg) return false;
if (StateRaw != other.StateRaw) return false; if (StateRaw != other.StateRaw) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
@ -11189,6 +11300,8 @@ namespace AxibugProtobuf {
int hash = 1; int hash = 1;
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode(); if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Note.Length != 0) hash ^= Note.GetHashCode();
if (SavImg.Length != 0) hash ^= SavImg.GetHashCode(); if (SavImg.Length != 0) hash ^= SavImg.GetHashCode();
if (StateRaw.Length != 0) hash ^= StateRaw.GetHashCode(); if (StateRaw.Length != 0) hash ^= StateRaw.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11215,12 +11328,20 @@ namespace AxibugProtobuf {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (SavImg.Length != 0) { if (Name.Length != 0) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteString(Name);
}
if (Note.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Note);
}
if (SavImg.Length != 0) {
output.WriteRawTag(42);
output.WriteBytes(SavImg); output.WriteBytes(SavImg);
} }
if (StateRaw.Length != 0) { if (StateRaw.Length != 0) {
output.WriteRawTag(34); output.WriteRawTag(50);
output.WriteBytes(StateRaw); output.WriteBytes(StateRaw);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11240,12 +11361,20 @@ namespace AxibugProtobuf {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (SavImg.Length != 0) { if (Name.Length != 0) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteString(Name);
}
if (Note.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Note);
}
if (SavImg.Length != 0) {
output.WriteRawTag(42);
output.WriteBytes(SavImg); output.WriteBytes(SavImg);
} }
if (StateRaw.Length != 0) { if (StateRaw.Length != 0) {
output.WriteRawTag(34); output.WriteRawTag(50);
output.WriteBytes(StateRaw); output.WriteBytes(StateRaw);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11263,6 +11392,12 @@ namespace AxibugProtobuf {
if (SavDataIdx != 0) { if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx); size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
} }
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Note.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
}
if (SavImg.Length != 0) { if (SavImg.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(SavImg); size += 1 + pb::CodedOutputStream.ComputeBytesSize(SavImg);
} }
@ -11286,6 +11421,12 @@ namespace AxibugProtobuf {
if (other.SavDataIdx != 0) { if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx; SavDataIdx = other.SavDataIdx;
} }
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Note.Length != 0) {
Note = other.Note;
}
if (other.SavImg.Length != 0) { if (other.SavImg.Length != 0) {
SavImg = other.SavImg; SavImg = other.SavImg;
} }
@ -11315,10 +11456,18 @@ namespace AxibugProtobuf {
break; break;
} }
case 26: { case 26: {
SavImg = input.ReadBytes(); Name = input.ReadString();
break; break;
} }
case 34: { case 34: {
Note = input.ReadString();
break;
}
case 42: {
SavImg = input.ReadBytes();
break;
}
case 50: {
StateRaw = input.ReadBytes(); StateRaw = input.ReadBytes();
break; break;
} }
@ -11345,10 +11494,18 @@ namespace AxibugProtobuf {
break; break;
} }
case 26: { case 26: {
SavImg = input.ReadBytes(); Name = input.ReadString();
break; break;
} }
case 34: { case 34: {
Note = input.ReadString();
break;
}
case 42: {
SavImg = input.ReadBytes();
break;
}
case 50: {
StateRaw = input.ReadBytes(); StateRaw = input.ReadBytes();
break; break;
} }
@ -11389,6 +11546,7 @@ namespace AxibugProtobuf {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Mine_UpLoadGameSav_RESP(Protobuf_Mine_UpLoadGameSav_RESP other) : this() { public Protobuf_Mine_UpLoadGameSav_RESP(Protobuf_Mine_UpLoadGameSav_RESP other) : this() {
romID_ = other.romID_; romID_ = other.romID_;
savDataIdx_ = other.savDataIdx_;
uploadSevInfo_ = other.uploadSevInfo_ != null ? other.uploadSevInfo_.Clone() : null; uploadSevInfo_ = other.uploadSevInfo_ != null ? other.uploadSevInfo_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
@ -11412,8 +11570,22 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "SavDataIdx" field.</summary>
public const int SavDataIdxFieldNumber = 2;
private int savDataIdx_;
/// <summary>
///即时存档下标(其中第0个是自动存档位置)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SavDataIdx {
get { return savDataIdx_; }
set {
savDataIdx_ = value;
}
}
/// <summary>Field number for the "UploadSevInfo" field.</summary> /// <summary>Field number for the "UploadSevInfo" field.</summary>
public const int UploadSevInfoFieldNumber = 2; public const int UploadSevInfoFieldNumber = 3;
private global::AxibugProtobuf.Protobuf_Mine_GameSavInfo uploadSevInfo_; private global::AxibugProtobuf.Protobuf_Mine_GameSavInfo uploadSevInfo_;
/// <summary> /// <summary>
///上传成功的存档详情 ///上传成功的存档详情
@ -11440,6 +11612,7 @@ namespace AxibugProtobuf {
return true; return true;
} }
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (SavDataIdx != other.SavDataIdx) return false;
if (!object.Equals(UploadSevInfo, other.UploadSevInfo)) return false; if (!object.Equals(UploadSevInfo, other.UploadSevInfo)) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
} }
@ -11448,6 +11621,7 @@ namespace AxibugProtobuf {
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (uploadSevInfo_ != null) hash ^= UploadSevInfo.GetHashCode(); if (uploadSevInfo_ != null) hash ^= UploadSevInfo.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode(); hash ^= _unknownFields.GetHashCode();
@ -11469,8 +11643,12 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (SavDataIdx != 0) {
output.WriteRawTag(16);
output.WriteInt32(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
output.WriteRawTag(18); output.WriteRawTag(26);
output.WriteMessage(UploadSevInfo); output.WriteMessage(UploadSevInfo);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11486,8 +11664,12 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (SavDataIdx != 0) {
output.WriteRawTag(16);
output.WriteInt32(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
output.WriteRawTag(18); output.WriteRawTag(26);
output.WriteMessage(UploadSevInfo); output.WriteMessage(UploadSevInfo);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11502,6 +11684,9 @@ namespace AxibugProtobuf {
if (RomID != 0) { if (RomID != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RomID); size += 1 + pb::CodedOutputStream.ComputeInt32Size(RomID);
} }
if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadSevInfo); size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadSevInfo);
} }
@ -11519,6 +11704,9 @@ namespace AxibugProtobuf {
if (other.RomID != 0) { if (other.RomID != 0) {
RomID = other.RomID; RomID = other.RomID;
} }
if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx;
}
if (other.uploadSevInfo_ != null) { if (other.uploadSevInfo_ != null) {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
@ -11543,7 +11731,11 @@ namespace AxibugProtobuf {
RomID = input.ReadInt32(); RomID = input.ReadInt32();
break; break;
} }
case 18: { case 16: {
SavDataIdx = input.ReadInt32();
break;
}
case 26: {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
} }
@ -11568,7 +11760,11 @@ namespace AxibugProtobuf {
RomID = input.ReadInt32(); RomID = input.ReadInt32();
break; break;
} }
case 18: { case 16: {
SavDataIdx = input.ReadInt32();
break;
}
case 26: {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
} }

View File

@ -42,6 +42,7 @@ namespace AxibugEmuOnline.Server.Common
public static MySqlConnection DequeueSQLConn(string FuncStr) public static MySqlConnection DequeueSQLConn(string FuncStr)
{ {
Console.WriteLine($"[DequeueSQLConn]{FuncStr}");
lock (_sync) lock (_sync)
{ {
if (_DicSqlRunFunNum.ContainsKey(FuncStr)) if (_DicSqlRunFunNum.ContainsKey(FuncStr))

View File

@ -17,6 +17,7 @@ namespace AxibugEmuOnline.Server
public static IOCPNetWork g_SocketMgr; public static IOCPNetWork g_SocketMgr;
public static RoomManager g_Room; public static RoomManager g_Room;
public static GameShareManager g_GameShareMgr; public static GameShareManager g_GameShareMgr;
private static SavDataManager g_GameSavMgr;
public static void InitServer(int port) public static void InitServer(int port)
{ {
@ -33,6 +34,7 @@ namespace AxibugEmuOnline.Server
g_SocketMgr = new IOCPNetWork(1024, 4096 * 2); g_SocketMgr = new IOCPNetWork(1024, 4096 * 2);
g_Room = new RoomManager(); g_Room = new RoomManager();
g_GameShareMgr = new GameShareManager(); g_GameShareMgr = new GameShareManager();
g_GameSavMgr = new SavDataManager();
g_SocketMgr.Init(); g_SocketMgr.Init();
g_SocketMgr.Start(new IPEndPoint(IPAddress.Any.Address, port)); g_SocketMgr.Start(new IPEndPoint(IPAddress.Any.Address, port));

View File

@ -11,6 +11,8 @@ namespace AxibugEmuOnline.Server.Manager
public SavDataManager() public SavDataManager()
{ {
NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavGetGameSavList, RecvGetGameSavList); NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavGetGameSavList, RecvGetGameSavList);
NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavDelGameSav, RecvDelGameSav);
NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdGamesavUploadGameSav, RecvUpLoadGameSav);
} }
public void RecvGetGameSavList(Socket _socket, byte[] reqData) public void RecvGetGameSavList(Socket _socket, byte[] reqData)
@ -29,7 +31,7 @@ namespace AxibugEmuOnline.Server.Manager
MySqlConnection conn = SQLPool.DequeueSQLConn("RecvGameMark"); MySqlConnection conn = SQLPool.DequeueSQLConn("RecvGameMark");
try try
{ {
string query = "SELECT `romid`, `savidx`, `savName`,`savNote`, `savUrl`,`savImgUrl`, `savDate` from user_gamesavedata where uid = ?uid and romid = ?romid"; string query = "SELECT `id`,`uid`,`romid`, `savidx`, `savName`,`savNote`, `savUrl`,`savImgUrl`, `savDate` from user_gamesavedata where uid = ?uid and romid = ?romid";
bool bHad = false; bool bHad = false;
using (var command = new MySqlCommand(query, conn)) using (var command = new MySqlCommand(query, conn))
{ {
@ -43,13 +45,16 @@ namespace AxibugEmuOnline.Server.Manager
Protobuf_Mine_GameSavInfo resp = new Protobuf_Mine_GameSavInfo() Protobuf_Mine_GameSavInfo resp = new Protobuf_Mine_GameSavInfo()
{ {
BHadSaveData = true, BHadSaveData = true,
RomID = reader.GetInt32(0), SavID = reader.GetInt64(0),
SavDataIdx = reader.GetInt32(1), Uid = reader.GetInt64(1),
SavName = reader.GetString(2), RomID = reader.GetInt32(2),
Note = reader.GetString(3), SavDataIdx = reader.GetInt32(3),
SavUrl = reader.GetString(4), SavName = reader.GetString(4),
SavImgUrl = reader.GetString(5), Note = reader.GetString(5),
SavDate = reader.GetDateTime(6).ToString() SavUrl = reader.GetString(6),
SavImgUrl = reader.GetString(7),
SavDate = reader.GetDateTime(8).ToString(),
GamePlatformType = AppSrv.g_GameShareMgr.GetRomPlatformType(msg.RomID)
}; };
respData.SavDataList[resp.SavDataIdx] = resp; respData.SavDataList[resp.SavDataIdx] = resp;
} }
@ -65,6 +70,7 @@ namespace AxibugEmuOnline.Server.Manager
respData.RomID = msg.RomID; respData.RomID = msg.RomID;
AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdGamesavGetGameSavList, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(respData)); AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdGamesavGetGameSavList, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(respData));
} }
public void RecvDelGameSav(Socket _socket, byte[] reqData) public void RecvDelGameSav(Socket _socket, byte[] reqData)
{ {
Protobuf_Mine_DelGameSav msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_DelGameSav>(reqData); Protobuf_Mine_DelGameSav msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_DelGameSav>(reqData);
@ -92,13 +98,11 @@ namespace AxibugEmuOnline.Server.Manager
} }
} }
} }
} }
catch (Exception e) catch (Exception e)
{ {
} }
if (!bHad) if (!bHad)
{ {
errCode = ErrorCode.ErrorRomDontHadSavedata; errCode = ErrorCode.ErrorRomDontHadSavedata;
@ -107,22 +111,128 @@ namespace AxibugEmuOnline.Server.Manager
{ {
bool bDelSav = FileDelete(Path.Combine(Config.cfg.savDataPath, SavUrl)); bool bDelSav = FileDelete(Path.Combine(Config.cfg.savDataPath, SavUrl));
bool bDelImg = FileDelete(Path.Combine(Config.cfg.savDataPath, SavImgUrl)); bool bDelImg = FileDelete(Path.Combine(Config.cfg.savDataPath, SavImgUrl));
if (bDelSav || !bDelImg) if (!bDelSav || !bDelImg)
{ {
errCode = ErrorCode.ErrorRomDontHadSavedata; errCode = ErrorCode.ErrorRomDontHadSavedata;
} }
else else
{ {
try
{
string query = "delete from user_gamesavedata where uid = ?uid and romid = ?romid and savidx = ?savidx";
using (var command = new MySqlCommand(query, conn))
{
// 设置参数值
command.Parameters.AddWithValue("?uid", _c.UID);
command.Parameters.AddWithValue("?romid", msg.RomID);
if (command.ExecuteNonQuery() < 1)
{
AppSrv.g_Log.Error("删除即时存档,但是他并没有.");
}
}
}
catch { }
} }
} }
SQLPool.EnqueueSQLConn(conn); SQLPool.EnqueueSQLConn(conn);
respData.RomID = msg.RomID; if (errCode == ErrorCode.ErrorOk)
AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdGamesavGetGameSavList, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(respData)); {
respData.RomID = msg.RomID;
respData.SavDataIdx = msg.SavDataIdx;
}
AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdGamesavGetGameSavList, (int)errCode, ProtoBufHelper.Serizlize(respData));
} }
public void RecvUpLoadGameSav(Socket _socket, byte[] reqData)
{
Protobuf_Mine_UpLoadGameSav msg = ProtoBufHelper.DeSerizlize<Protobuf_Mine_UpLoadGameSav>(reqData);
ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(_socket);
Protobuf_Mine_UpLoadGameSav_RESP respData = new Protobuf_Mine_UpLoadGameSav_RESP();
ErrorCode errCode = ErrorCode.ErrorOk;
respData.RomID = msg.RomID;
RomPlatformType ptype = AppSrv.g_GameShareMgr.GetRomPlatformType(msg.RomID);
if (GetProtobufMineGameSavInfo(_c.UID, msg.RomID, msg.SavDataIdx, out Protobuf_Mine_GameSavInfo oldSavInfo))
{
bool bDelSav = FileDelete(Path.Combine(Config.cfg.savDataPath, oldSavInfo.SavUrl));
bool bDelImg = FileDelete(Path.Combine(Config.cfg.savDataPath, oldSavInfo.SavImgUrl));
if (!bDelSav || !bDelImg)
{
errCode = ErrorCode.ErrorRomDontHadSavedata;
}
if (!DeleteProtobufMineGameSavInfo(_c.UID, msg.RomID, msg.SavDataIdx))
{
//删除失败
errCode = ErrorCode.ErrorRomDontHadSavedata;
}
}
if (errCode == ErrorCode.ErrorOk)
{
MySqlConnection conn = SQLPool.DequeueSQLConn("RecvUpLoadGameSav");
byte[] StateRawData = msg.StateRaw.ToArray();
byte[] ImgData = msg.SavImg.ToArray();
GetNewRomPath(_c.UID, ptype, msg.RomID, msg.SavDataIdx, $"{msg.SavDataIdx}.axisav", out string rompath);
GetNewRomPath(_c.UID, ptype, msg.RomID, msg.SavDataIdx, $"{msg.SavDataIdx}.axiimg", out string imgpath);
if (!CreateFile(Path.Combine(Config.cfg.savDataPath, rompath), StateRawData)
||
!CreateFile(Path.Combine(Config.cfg.savDataPath, imgpath), StateRawData)
)
{
//INSERT INTO `haoyue_emu`.`user_gamesavedata` ( `uid`, `romid`, `savidx`, `savName`, `savNote`, `savUrl`, `savImgUrl`, `savDate`) VALUES ( 0, 0, 2147483647, '', '', '', '', '0000-00-00 00:00:00');
string query = "INSERT INTO `haoyue_emu`.`user_gamesavedata`" +
" ( `uid`, `romid`, `savidx`, `savName`, `savNote`, `savUrl`, `savImgUrl`, `savDate`)" +
" VALUES ( ?uid, ?romid, ?savidx, ?savName, ?savNote, ?savUrl, ?savImgUrl, ?savDate);";
using (var command = new MySqlCommand(query, conn))
{
// 设置参数值
command.Parameters.AddWithValue("?uid", _c.UID);
command.Parameters.AddWithValue("?romid", msg.RomID);
command.Parameters.AddWithValue("?savidx", msg.SavDataIdx);
command.Parameters.AddWithValue("?savName", msg.Name);
command.Parameters.AddWithValue("?savNote", msg.Note);
command.Parameters.AddWithValue("?savUrl", rompath);
command.Parameters.AddWithValue("?savImgUrl", imgpath);
command.Parameters.AddWithValue("?savDate", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
if (command.ExecuteNonQuery() < 1)
{
AppSrv.g_Log.Error("执行即时存档保存失败");
}
}
}
SQLPool.EnqueueSQLConn(conn);
}
if (errCode == ErrorCode.ErrorOk)
{
if (!GetProtobufMineGameSavInfo(_c.UID, msg.RomID, msg.SavDataIdx, out Protobuf_Mine_GameSavInfo protoData))
{
//不存在
errCode = ErrorCode.ErrorRomDontHadSavedata;
}
else
{
respData.RomID = msg.RomID;
respData.SavDataIdx = msg.SavDataIdx;
respData.UploadSevInfo = protoData;
}
}
AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdGamesavGetGameSavList, (int)errCode, ProtoBufHelper.Serizlize(respData));
}
public void GetNewRomPath(long uid, RomPlatformType ptype, int romid, int stateIdx, string filename, out string path)
{
path = Path.Combine(uid.ToString(), ptype.ToString(), romid.ToString(), stateIdx.ToString(), filename);
}
public bool FileDelete(string path) public bool FileDelete(string path)
{ {
if (!File.Exists(path)) if (!File.Exists(path))
@ -138,17 +248,94 @@ namespace AxibugEmuOnline.Server.Manager
} }
} }
public bool FileDelete(string path, byte[] data) public bool CreateFile(string path, byte[] data)
{ {
try try
{ {
string dir = Path.GetDirectoryName(path);
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(dir);
}
File.WriteAllBytes(path, data); File.WriteAllBytes(path, data);
return true; return true;
} }
catch (Exception e) catch (Exception ex)
{ {
AppSrv.g_Log.Error($"CreeateFile Err =>{ex.ToString()}");
return false; return false;
} }
} }
public bool GetProtobufMineGameSavInfo(long uid, int romid, int savIdx, out Protobuf_Mine_GameSavInfo protoData)
{
bool bhad = false;
protoData = default;
RomPlatformType ptype = AppSrv.g_GameShareMgr.GetRomPlatformType(romid);
MySqlConnection conn = SQLPool.DequeueSQLConn("GetProtobufMineGameSavInfo");
try
{
string query = "SELECT `id`,`uid`, `romid`, `savidx`, `savName`, `savNote`, `savUrl`, `savImgUrl`, `savDate` from `user_gamesavedata` where uid = ?uid and romid = ?romid and savidx = ?savidx";
using (var command = new MySqlCommand(query, conn))
{
// 设置参数值
command.Parameters.AddWithValue("?uid", uid);
command.Parameters.AddWithValue("?romid", romid);
command.Parameters.AddWithValue("?savidx", savIdx);
using (var reader = command.ExecuteReader())
{
while (reader.Read())
{
protoData = new Protobuf_Mine_GameSavInfo()
{
BHadSaveData = true,
SavID = reader.GetInt64(0),
Uid = reader.GetInt64(1),
RomID = reader.GetInt32(2),
SavDataIdx = reader.GetInt32(3),
SavName = reader.GetString(4),
Note = reader.GetString(5),
SavUrl = reader.GetString(6),
SavImgUrl = reader.GetString(7),
SavDate = reader.GetDateTime(8).ToString("yyyy-MM-dd HH:mm:ss"),
GamePlatformType = ptype
};
bhad = true;
break;
}
}
}
}
catch (Exception e)
{
}
SQLPool.EnqueueSQLConn(conn);
return bhad;
}
public bool DeleteProtobufMineGameSavInfo(long uid, int romid, int savIdx)
{
bool bDone = false;
RomPlatformType ptype = AppSrv.g_GameShareMgr.GetRomPlatformType(romid);
MySqlConnection conn = SQLPool.DequeueSQLConn("DeleteProtobufMineGameSavInfo");
try
{
string query = "delete from `user_gamesavedata` where uid = ?uid and romid = ?romid and savidx = ?savidx";
using (var command = new MySqlCommand(query, conn))
{
// 设置参数值
command.Parameters.AddWithValue("?uid", uid);
command.Parameters.AddWithValue("?romid", romid);
command.Parameters.AddWithValue("?savidx", savIdx);
bDone = command.ExecuteNonQuery() > 0;
}
}
catch (Exception e)
{
}
SQLPool.EnqueueSQLConn(conn);
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br::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.RomPlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.RomPlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
@ -213,11 +214,11 @@ namespace AxibugProtobuf {
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Game_Mark_RESP), global::AxibugProtobuf.Protobuf_Game_Mark_RESP.Parser, new[]{ "RomID", "IsStar", "Stars" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Game_Mark_RESP), global::AxibugProtobuf.Protobuf_Game_Mark_RESP.Parser, new[]{ "RomID", "IsStar", "Stars" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList.Parser, new[]{ "RomID" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList.Parser, new[]{ "RomID" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP.Parser, new[]{ "RomID", "SavDataList" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP.Parser, new[]{ "RomID", "SavDataList" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GameSavInfo), global::AxibugProtobuf.Protobuf_Mine_GameSavInfo.Parser, new[]{ "BHadSaveData", "SavDataIdx", "RomID", "GamePlatformType", "SavDate", "SavName", "Note", "SavImgUrl", "SavUrl" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GameSavInfo), global::AxibugProtobuf.Protobuf_Mine_GameSavInfo.Parser, new[]{ "BHadSaveData", "SavID", "Uid", "SavDataIdx", "RomID", "GamePlatformType", "SavDate", "SavName", "Note", "SavImgUrl", "SavUrl" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav), global::AxibugProtobuf.Protobuf_Mine_DelGameSav.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav), global::AxibugProtobuf.Protobuf_Mine_DelGameSav.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav.Parser, new[]{ "RomID", "SavDataIdx", "SavImg", "StateRaw" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav.Parser, new[]{ "RomID", "SavDataIdx", "Name", "Note", "SavImg", "StateRaw" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP.Parser, new[]{ "RomID", "UploadSevInfo" }, null, null, null, null) new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx", "UploadSevInfo" }, null, null, null, null)
})); }));
} }
#endregion #endregion
@ -10191,6 +10192,8 @@ namespace AxibugProtobuf {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Mine_GameSavInfo(Protobuf_Mine_GameSavInfo other) : this() { public Protobuf_Mine_GameSavInfo(Protobuf_Mine_GameSavInfo other) : this() {
bHadSaveData_ = other.bHadSaveData_; bHadSaveData_ = other.bHadSaveData_;
savID_ = other.savID_;
uid_ = other.uid_;
savDataIdx_ = other.savDataIdx_; savDataIdx_ = other.savDataIdx_;
romID_ = other.romID_; romID_ = other.romID_;
gamePlatformType_ = other.gamePlatformType_; gamePlatformType_ = other.gamePlatformType_;
@ -10221,8 +10224,36 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "SavID" field.</summary>
public const int SavIDFieldNumber = 2;
private long savID_;
/// <summary>
///即时存档唯一ID用于今后分享
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long SavID {
get { return savID_; }
set {
savID_ = value;
}
}
/// <summary>Field number for the "uid" field.</summary>
public const int UidFieldNumber = 3;
private long uid_;
/// <summary>
///所属用户UID用于今后分享
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Uid {
get { return uid_; }
set {
uid_ = value;
}
}
/// <summary>Field number for the "SavDataIdx" field.</summary> /// <summary>Field number for the "SavDataIdx" field.</summary>
public const int SavDataIdxFieldNumber = 2; public const int SavDataIdxFieldNumber = 4;
private int savDataIdx_; private int savDataIdx_;
/// <summary> /// <summary>
///即时存档下标(其中第0个是自动存档位置) ///即时存档下标(其中第0个是自动存档位置)
@ -10236,7 +10267,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "RomID" field.</summary> /// <summary>Field number for the "RomID" field.</summary>
public const int RomIDFieldNumber = 3; public const int RomIDFieldNumber = 5;
private int romID_; private int romID_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int RomID { public int RomID {
@ -10247,7 +10278,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "GamePlatformType" field.</summary> /// <summary>Field number for the "GamePlatformType" field.</summary>
public const int GamePlatformTypeFieldNumber = 4; public const int GamePlatformTypeFieldNumber = 6;
private global::AxibugProtobuf.RomPlatformType gamePlatformType_ = global::AxibugProtobuf.RomPlatformType.Invalid; private global::AxibugProtobuf.RomPlatformType gamePlatformType_ = global::AxibugProtobuf.RomPlatformType.Invalid;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::AxibugProtobuf.RomPlatformType GamePlatformType { public global::AxibugProtobuf.RomPlatformType GamePlatformType {
@ -10258,7 +10289,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavDate" field.</summary> /// <summary>Field number for the "SavDate" field.</summary>
public const int SavDateFieldNumber = 5; public const int SavDateFieldNumber = 7;
private string savDate_ = ""; private string savDate_ = "";
/// <summary> /// <summary>
///存档时间 ///存档时间
@ -10272,7 +10303,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavName" field.</summary> /// <summary>Field number for the "SavName" field.</summary>
public const int SavNameFieldNumber = 6; public const int SavNameFieldNumber = 8;
private string savName_ = ""; private string savName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string SavName { public string SavName {
@ -10283,7 +10314,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "Note" field.</summary> /// <summary>Field number for the "Note" field.</summary>
public const int NoteFieldNumber = 7; public const int NoteFieldNumber = 9;
private string note_ = ""; private string note_ = "";
/// <summary> /// <summary>
///备注 ///备注
@ -10297,7 +10328,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavImgUrl" field.</summary> /// <summary>Field number for the "SavImgUrl" field.</summary>
public const int SavImgUrlFieldNumber = 8; public const int SavImgUrlFieldNumber = 10;
private string savImgUrl_ = ""; private string savImgUrl_ = "";
/// <summary> /// <summary>
///即时存档截图Url ///即时存档截图Url
@ -10311,7 +10342,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavUrl" field.</summary> /// <summary>Field number for the "SavUrl" field.</summary>
public const int SavUrlFieldNumber = 9; public const int SavUrlFieldNumber = 11;
private string savUrl_ = ""; private string savUrl_ = "";
/// <summary> /// <summary>
///即时存档下载Url ///即时存档下载Url
@ -10338,6 +10369,8 @@ namespace AxibugProtobuf {
return true; return true;
} }
if (BHadSaveData != other.BHadSaveData) return false; if (BHadSaveData != other.BHadSaveData) return false;
if (SavID != other.SavID) return false;
if (Uid != other.Uid) return false;
if (SavDataIdx != other.SavDataIdx) return false; if (SavDataIdx != other.SavDataIdx) return false;
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (GamePlatformType != other.GamePlatformType) return false; if (GamePlatformType != other.GamePlatformType) return false;
@ -10353,6 +10386,8 @@ namespace AxibugProtobuf {
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (BHadSaveData != false) hash ^= BHadSaveData.GetHashCode(); if (BHadSaveData != false) hash ^= BHadSaveData.GetHashCode();
if (SavID != 0L) hash ^= SavID.GetHashCode();
if (Uid != 0L) hash ^= Uid.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode(); if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) hash ^= GamePlatformType.GetHashCode(); if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) hash ^= GamePlatformType.GetHashCode();
@ -10381,36 +10416,44 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteBool(BHadSaveData); output.WriteBool(BHadSaveData);
} }
if (SavDataIdx != 0) { if (SavID != 0L) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt64(SavID);
}
if (Uid != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Uid);
}
if (SavDataIdx != 0) {
output.WriteRawTag(32);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (RomID != 0) { if (RomID != 0) {
output.WriteRawTag(24); output.WriteRawTag(40);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) { if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) {
output.WriteRawTag(32); output.WriteRawTag(48);
output.WriteEnum((int) GamePlatformType); output.WriteEnum((int) GamePlatformType);
} }
if (SavDate.Length != 0) { if (SavDate.Length != 0) {
output.WriteRawTag(42); output.WriteRawTag(58);
output.WriteString(SavDate); output.WriteString(SavDate);
} }
if (SavName.Length != 0) { if (SavName.Length != 0) {
output.WriteRawTag(50); output.WriteRawTag(66);
output.WriteString(SavName); output.WriteString(SavName);
} }
if (Note.Length != 0) { if (Note.Length != 0) {
output.WriteRawTag(58); output.WriteRawTag(74);
output.WriteString(Note); output.WriteString(Note);
} }
if (SavImgUrl.Length != 0) { if (SavImgUrl.Length != 0) {
output.WriteRawTag(66); output.WriteRawTag(82);
output.WriteString(SavImgUrl); output.WriteString(SavImgUrl);
} }
if (SavUrl.Length != 0) { if (SavUrl.Length != 0) {
output.WriteRawTag(74); output.WriteRawTag(90);
output.WriteString(SavUrl); output.WriteString(SavUrl);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -10426,36 +10469,44 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteBool(BHadSaveData); output.WriteBool(BHadSaveData);
} }
if (SavDataIdx != 0) { if (SavID != 0L) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt64(SavID);
}
if (Uid != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Uid);
}
if (SavDataIdx != 0) {
output.WriteRawTag(32);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (RomID != 0) { if (RomID != 0) {
output.WriteRawTag(24); output.WriteRawTag(40);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) { if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) {
output.WriteRawTag(32); output.WriteRawTag(48);
output.WriteEnum((int) GamePlatformType); output.WriteEnum((int) GamePlatformType);
} }
if (SavDate.Length != 0) { if (SavDate.Length != 0) {
output.WriteRawTag(42); output.WriteRawTag(58);
output.WriteString(SavDate); output.WriteString(SavDate);
} }
if (SavName.Length != 0) { if (SavName.Length != 0) {
output.WriteRawTag(50); output.WriteRawTag(66);
output.WriteString(SavName); output.WriteString(SavName);
} }
if (Note.Length != 0) { if (Note.Length != 0) {
output.WriteRawTag(58); output.WriteRawTag(74);
output.WriteString(Note); output.WriteString(Note);
} }
if (SavImgUrl.Length != 0) { if (SavImgUrl.Length != 0) {
output.WriteRawTag(66); output.WriteRawTag(82);
output.WriteString(SavImgUrl); output.WriteString(SavImgUrl);
} }
if (SavUrl.Length != 0) { if (SavUrl.Length != 0) {
output.WriteRawTag(74); output.WriteRawTag(90);
output.WriteString(SavUrl); output.WriteString(SavUrl);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -10470,6 +10521,12 @@ namespace AxibugProtobuf {
if (BHadSaveData != false) { if (BHadSaveData != false) {
size += 1 + 1; size += 1 + 1;
} }
if (SavID != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(SavID);
}
if (Uid != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Uid);
}
if (SavDataIdx != 0) { if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx); size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
} }
@ -10508,6 +10565,12 @@ namespace AxibugProtobuf {
if (other.BHadSaveData != false) { if (other.BHadSaveData != false) {
BHadSaveData = other.BHadSaveData; BHadSaveData = other.BHadSaveData;
} }
if (other.SavID != 0L) {
SavID = other.SavID;
}
if (other.Uid != 0L) {
Uid = other.Uid;
}
if (other.SavDataIdx != 0) { if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx; SavDataIdx = other.SavDataIdx;
} }
@ -10551,34 +10614,42 @@ namespace AxibugProtobuf {
break; break;
} }
case 16: { case 16: {
SavDataIdx = input.ReadInt32(); SavID = input.ReadInt64();
break; break;
} }
case 24: { case 24: {
RomID = input.ReadInt32(); Uid = input.ReadInt64();
break; break;
} }
case 32: { case 32: {
SavDataIdx = input.ReadInt32();
break;
}
case 40: {
RomID = input.ReadInt32();
break;
}
case 48: {
GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum(); GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum();
break; break;
} }
case 42: { case 58: {
SavDate = input.ReadString(); SavDate = input.ReadString();
break; break;
} }
case 50: { case 66: {
SavName = input.ReadString(); SavName = input.ReadString();
break; break;
} }
case 58: { case 74: {
Note = input.ReadString(); Note = input.ReadString();
break; break;
} }
case 66: { case 82: {
SavImgUrl = input.ReadString(); SavImgUrl = input.ReadString();
break; break;
} }
case 74: { case 90: {
SavUrl = input.ReadString(); SavUrl = input.ReadString();
break; break;
} }
@ -10601,34 +10672,42 @@ namespace AxibugProtobuf {
break; break;
} }
case 16: { case 16: {
SavDataIdx = input.ReadInt32(); SavID = input.ReadInt64();
break; break;
} }
case 24: { case 24: {
RomID = input.ReadInt32(); Uid = input.ReadInt64();
break; break;
} }
case 32: { case 32: {
SavDataIdx = input.ReadInt32();
break;
}
case 40: {
RomID = input.ReadInt32();
break;
}
case 48: {
GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum(); GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum();
break; break;
} }
case 42: { case 58: {
SavDate = input.ReadString(); SavDate = input.ReadString();
break; break;
} }
case 50: { case 66: {
SavName = input.ReadString(); SavName = input.ReadString();
break; break;
} }
case 58: { case 74: {
Note = input.ReadString(); Note = input.ReadString();
break; break;
} }
case 66: { case 82: {
SavImgUrl = input.ReadString(); SavImgUrl = input.ReadString();
break; break;
} }
case 74: { case 90: {
SavUrl = input.ReadString(); SavUrl = input.ReadString();
break; break;
} }
@ -11098,6 +11177,8 @@ namespace AxibugProtobuf {
public Protobuf_Mine_UpLoadGameSav(Protobuf_Mine_UpLoadGameSav other) : this() { public Protobuf_Mine_UpLoadGameSav(Protobuf_Mine_UpLoadGameSav other) : this() {
romID_ = other.romID_; romID_ = other.romID_;
savDataIdx_ = other.savDataIdx_; savDataIdx_ = other.savDataIdx_;
name_ = other.name_;
note_ = other.note_;
savImg_ = other.savImg_; savImg_ = other.savImg_;
stateRaw_ = other.stateRaw_; stateRaw_ = other.stateRaw_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
@ -11136,8 +11217,36 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "Name" field.</summary>
public const int NameFieldNumber = 3;
private string name_ = "";
/// <summary>
///存档名(留空时,服务器自动)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "Note" field.</summary>
public const int NoteFieldNumber = 4;
private string note_ = "";
/// <summary>
///备注(留空时,服务器自动)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Note {
get { return note_; }
set {
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "SavImg" field.</summary> /// <summary>Field number for the "SavImg" field.</summary>
public const int SavImgFieldNumber = 3; public const int SavImgFieldNumber = 5;
private pb::ByteString savImg_ = pb::ByteString.Empty; private pb::ByteString savImg_ = pb::ByteString.Empty;
/// <summary> /// <summary>
///即时存档截图模拟器原生数据 ///即时存档截图模拟器原生数据
@ -11151,7 +11260,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "StateRaw" field.</summary> /// <summary>Field number for the "StateRaw" field.</summary>
public const int StateRawFieldNumber = 4; public const int StateRawFieldNumber = 6;
private pb::ByteString stateRaw_ = pb::ByteString.Empty; private pb::ByteString stateRaw_ = pb::ByteString.Empty;
/// <summary> /// <summary>
///即时存档byte数据 ///即时存档byte数据
@ -11179,6 +11288,8 @@ namespace AxibugProtobuf {
} }
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (SavDataIdx != other.SavDataIdx) return false; if (SavDataIdx != other.SavDataIdx) return false;
if (Name != other.Name) return false;
if (Note != other.Note) return false;
if (SavImg != other.SavImg) return false; if (SavImg != other.SavImg) return false;
if (StateRaw != other.StateRaw) return false; if (StateRaw != other.StateRaw) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
@ -11189,6 +11300,8 @@ namespace AxibugProtobuf {
int hash = 1; int hash = 1;
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode(); if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Note.Length != 0) hash ^= Note.GetHashCode();
if (SavImg.Length != 0) hash ^= SavImg.GetHashCode(); if (SavImg.Length != 0) hash ^= SavImg.GetHashCode();
if (StateRaw.Length != 0) hash ^= StateRaw.GetHashCode(); if (StateRaw.Length != 0) hash ^= StateRaw.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11215,12 +11328,20 @@ namespace AxibugProtobuf {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (SavImg.Length != 0) { if (Name.Length != 0) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteString(Name);
}
if (Note.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Note);
}
if (SavImg.Length != 0) {
output.WriteRawTag(42);
output.WriteBytes(SavImg); output.WriteBytes(SavImg);
} }
if (StateRaw.Length != 0) { if (StateRaw.Length != 0) {
output.WriteRawTag(34); output.WriteRawTag(50);
output.WriteBytes(StateRaw); output.WriteBytes(StateRaw);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11240,12 +11361,20 @@ namespace AxibugProtobuf {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (SavImg.Length != 0) { if (Name.Length != 0) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteString(Name);
}
if (Note.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Note);
}
if (SavImg.Length != 0) {
output.WriteRawTag(42);
output.WriteBytes(SavImg); output.WriteBytes(SavImg);
} }
if (StateRaw.Length != 0) { if (StateRaw.Length != 0) {
output.WriteRawTag(34); output.WriteRawTag(50);
output.WriteBytes(StateRaw); output.WriteBytes(StateRaw);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11263,6 +11392,12 @@ namespace AxibugProtobuf {
if (SavDataIdx != 0) { if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx); size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
} }
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Note.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
}
if (SavImg.Length != 0) { if (SavImg.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(SavImg); size += 1 + pb::CodedOutputStream.ComputeBytesSize(SavImg);
} }
@ -11286,6 +11421,12 @@ namespace AxibugProtobuf {
if (other.SavDataIdx != 0) { if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx; SavDataIdx = other.SavDataIdx;
} }
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Note.Length != 0) {
Note = other.Note;
}
if (other.SavImg.Length != 0) { if (other.SavImg.Length != 0) {
SavImg = other.SavImg; SavImg = other.SavImg;
} }
@ -11315,10 +11456,18 @@ namespace AxibugProtobuf {
break; break;
} }
case 26: { case 26: {
SavImg = input.ReadBytes(); Name = input.ReadString();
break; break;
} }
case 34: { case 34: {
Note = input.ReadString();
break;
}
case 42: {
SavImg = input.ReadBytes();
break;
}
case 50: {
StateRaw = input.ReadBytes(); StateRaw = input.ReadBytes();
break; break;
} }
@ -11345,10 +11494,18 @@ namespace AxibugProtobuf {
break; break;
} }
case 26: { case 26: {
SavImg = input.ReadBytes(); Name = input.ReadString();
break; break;
} }
case 34: { case 34: {
Note = input.ReadString();
break;
}
case 42: {
SavImg = input.ReadBytes();
break;
}
case 50: {
StateRaw = input.ReadBytes(); StateRaw = input.ReadBytes();
break; break;
} }
@ -11389,6 +11546,7 @@ namespace AxibugProtobuf {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Mine_UpLoadGameSav_RESP(Protobuf_Mine_UpLoadGameSav_RESP other) : this() { public Protobuf_Mine_UpLoadGameSav_RESP(Protobuf_Mine_UpLoadGameSav_RESP other) : this() {
romID_ = other.romID_; romID_ = other.romID_;
savDataIdx_ = other.savDataIdx_;
uploadSevInfo_ = other.uploadSevInfo_ != null ? other.uploadSevInfo_.Clone() : null; uploadSevInfo_ = other.uploadSevInfo_ != null ? other.uploadSevInfo_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
@ -11412,8 +11570,22 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "SavDataIdx" field.</summary>
public const int SavDataIdxFieldNumber = 2;
private int savDataIdx_;
/// <summary>
///即时存档下标(其中第0个是自动存档位置)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SavDataIdx {
get { return savDataIdx_; }
set {
savDataIdx_ = value;
}
}
/// <summary>Field number for the "UploadSevInfo" field.</summary> /// <summary>Field number for the "UploadSevInfo" field.</summary>
public const int UploadSevInfoFieldNumber = 2; public const int UploadSevInfoFieldNumber = 3;
private global::AxibugProtobuf.Protobuf_Mine_GameSavInfo uploadSevInfo_; private global::AxibugProtobuf.Protobuf_Mine_GameSavInfo uploadSevInfo_;
/// <summary> /// <summary>
///上传成功的存档详情 ///上传成功的存档详情
@ -11440,6 +11612,7 @@ namespace AxibugProtobuf {
return true; return true;
} }
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (SavDataIdx != other.SavDataIdx) return false;
if (!object.Equals(UploadSevInfo, other.UploadSevInfo)) return false; if (!object.Equals(UploadSevInfo, other.UploadSevInfo)) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
} }
@ -11448,6 +11621,7 @@ namespace AxibugProtobuf {
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (uploadSevInfo_ != null) hash ^= UploadSevInfo.GetHashCode(); if (uploadSevInfo_ != null) hash ^= UploadSevInfo.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode(); hash ^= _unknownFields.GetHashCode();
@ -11469,8 +11643,12 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (SavDataIdx != 0) {
output.WriteRawTag(16);
output.WriteInt32(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
output.WriteRawTag(18); output.WriteRawTag(26);
output.WriteMessage(UploadSevInfo); output.WriteMessage(UploadSevInfo);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11486,8 +11664,12 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (SavDataIdx != 0) {
output.WriteRawTag(16);
output.WriteInt32(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
output.WriteRawTag(18); output.WriteRawTag(26);
output.WriteMessage(UploadSevInfo); output.WriteMessage(UploadSevInfo);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11502,6 +11684,9 @@ namespace AxibugProtobuf {
if (RomID != 0) { if (RomID != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RomID); size += 1 + pb::CodedOutputStream.ComputeInt32Size(RomID);
} }
if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadSevInfo); size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadSevInfo);
} }
@ -11519,6 +11704,9 @@ namespace AxibugProtobuf {
if (other.RomID != 0) { if (other.RomID != 0) {
RomID = other.RomID; RomID = other.RomID;
} }
if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx;
}
if (other.uploadSevInfo_ != null) { if (other.uploadSevInfo_ != null) {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
@ -11543,7 +11731,11 @@ namespace AxibugProtobuf {
RomID = input.ReadInt32(); RomID = input.ReadInt32();
break; break;
} }
case 18: { case 16: {
SavDataIdx = input.ReadInt32();
break;
}
case 26: {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
} }
@ -11568,7 +11760,11 @@ namespace AxibugProtobuf {
RomID = input.ReadInt32(); RomID = input.ReadInt32();
break; break;
} }
case 18: { case 16: {
SavDataIdx = input.ReadInt32();
break;
}
case 26: {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
} }

View File

@ -109,62 +109,63 @@ namespace AxibugProtobuf {
"bmVfR2V0R2FtZVNhdkxpc3QSDQoFUm9tSUQYASABKAUicgohUHJvdG9idWZf", "bmVfR2V0R2FtZVNhdkxpc3QSDQoFUm9tSUQYASABKAUicgohUHJvdG9idWZf",
"TWluZV9HZXRHYW1lU2F2TGlzdF9SRVNQEg0KB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19WaXNpb24QBhILCgdT", "Zm9ybVR5cGUSCwoHSW52YWxpZBAAEgcKA05lcxABEhEKDU1hc3Rlcl9TeXN0",
"Q18zMDAwEAcSCwoHU0dfMTAwMBAIEggKA0FsbBDnBypwCg1Sb29tR2FtZVN0", "ZW0QAhINCglHYW1lX0dlYXIQAxIMCghHYW1lX0JveRAEEhIKDkdhbWVfQm95",
"YXRlEhIKDk5vbmVfR2FtZVN0YXRlEAASDAoIT25seUhvc3QQARIRCg1XYWl0", "X0NvbG9yEAUSEQoNQ29sZWNvX1Zpc2lvbhAGEgsKB1NDXzMwMDAQBxILCgdT",
"UmF3VXBkYXRlEAISDQoJV2FpdFJlYWR5EAMSCQoFUGF1c2UQBBIQCgxJbk9u", "R18xMDAwEAgSCAoDQWxsEOcHKnAKDVJvb21HYW1lU3RhdGUSEgoOTm9uZV9H",
"bGluZUdhbWUQBSpOChFMb2dpblJlc3VsdFN0YXR1cxIhCh1Mb2dpblJlc3Vs", "YW1lU3RhdGUQABIMCghPbmx5SG9zdBABEhEKDVdhaXRSYXdVcGRhdGUQAhIN",
"dFN0YXR1c19CYXNlRGVmYXVsdBAAEgYKAk9LEAESDgoKQWNjb3VudEVychAC", "CglXYWl0UmVhZHkQAxIJCgVQYXVzZRAEEhAKDEluT25saW5lR2FtZRAFKk4K",
"QgJIAWIGcHJvdG8z")); "EUxvZ2luUmVzdWx0U3RhdHVzEiEKHUxvZ2luUmVzdWx0U3RhdHVzX0Jhc2VE",
"ZWZhdWx0EAASBgoCT0sQARIOCgpBY2NvdW50RXJyEAJCAkgBYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.RomPlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.RomPlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
@ -213,11 +214,11 @@ namespace AxibugProtobuf {
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Game_Mark_RESP), global::AxibugProtobuf.Protobuf_Game_Mark_RESP.Parser, new[]{ "RomID", "IsStar", "Stars" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Game_Mark_RESP), global::AxibugProtobuf.Protobuf_Game_Mark_RESP.Parser, new[]{ "RomID", "IsStar", "Stars" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList.Parser, new[]{ "RomID" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList.Parser, new[]{ "RomID" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP.Parser, new[]{ "RomID", "SavDataList" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP), global::AxibugProtobuf.Protobuf_Mine_GetGameSavList_RESP.Parser, new[]{ "RomID", "SavDataList" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GameSavInfo), global::AxibugProtobuf.Protobuf_Mine_GameSavInfo.Parser, new[]{ "BHadSaveData", "SavDataIdx", "RomID", "GamePlatformType", "SavDate", "SavName", "Note", "SavImgUrl", "SavUrl" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_GameSavInfo), global::AxibugProtobuf.Protobuf_Mine_GameSavInfo.Parser, new[]{ "BHadSaveData", "SavID", "Uid", "SavDataIdx", "RomID", "GamePlatformType", "SavDate", "SavName", "Note", "SavImgUrl", "SavUrl" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav), global::AxibugProtobuf.Protobuf_Mine_DelGameSav.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav), global::AxibugProtobuf.Protobuf_Mine_DelGameSav.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_DelGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav.Parser, new[]{ "RomID", "SavDataIdx", "SavImg", "StateRaw" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav.Parser, new[]{ "RomID", "SavDataIdx", "Name", "Note", "SavImg", "StateRaw" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP.Parser, new[]{ "RomID", "UploadSevInfo" }, null, null, null, null) new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP), global::AxibugProtobuf.Protobuf_Mine_UpLoadGameSav_RESP.Parser, new[]{ "RomID", "SavDataIdx", "UploadSevInfo" }, null, null, null, null)
})); }));
} }
#endregion #endregion
@ -10191,6 +10192,8 @@ namespace AxibugProtobuf {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Mine_GameSavInfo(Protobuf_Mine_GameSavInfo other) : this() { public Protobuf_Mine_GameSavInfo(Protobuf_Mine_GameSavInfo other) : this() {
bHadSaveData_ = other.bHadSaveData_; bHadSaveData_ = other.bHadSaveData_;
savID_ = other.savID_;
uid_ = other.uid_;
savDataIdx_ = other.savDataIdx_; savDataIdx_ = other.savDataIdx_;
romID_ = other.romID_; romID_ = other.romID_;
gamePlatformType_ = other.gamePlatformType_; gamePlatformType_ = other.gamePlatformType_;
@ -10221,8 +10224,36 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "SavID" field.</summary>
public const int SavIDFieldNumber = 2;
private long savID_;
/// <summary>
///即时存档唯一ID用于今后分享
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long SavID {
get { return savID_; }
set {
savID_ = value;
}
}
/// <summary>Field number for the "uid" field.</summary>
public const int UidFieldNumber = 3;
private long uid_;
/// <summary>
///所属用户UID用于今后分享
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Uid {
get { return uid_; }
set {
uid_ = value;
}
}
/// <summary>Field number for the "SavDataIdx" field.</summary> /// <summary>Field number for the "SavDataIdx" field.</summary>
public const int SavDataIdxFieldNumber = 2; public const int SavDataIdxFieldNumber = 4;
private int savDataIdx_; private int savDataIdx_;
/// <summary> /// <summary>
///即时存档下标(其中第0个是自动存档位置) ///即时存档下标(其中第0个是自动存档位置)
@ -10236,7 +10267,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "RomID" field.</summary> /// <summary>Field number for the "RomID" field.</summary>
public const int RomIDFieldNumber = 3; public const int RomIDFieldNumber = 5;
private int romID_; private int romID_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int RomID { public int RomID {
@ -10247,7 +10278,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "GamePlatformType" field.</summary> /// <summary>Field number for the "GamePlatformType" field.</summary>
public const int GamePlatformTypeFieldNumber = 4; public const int GamePlatformTypeFieldNumber = 6;
private global::AxibugProtobuf.RomPlatformType gamePlatformType_ = global::AxibugProtobuf.RomPlatformType.Invalid; private global::AxibugProtobuf.RomPlatformType gamePlatformType_ = global::AxibugProtobuf.RomPlatformType.Invalid;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::AxibugProtobuf.RomPlatformType GamePlatformType { public global::AxibugProtobuf.RomPlatformType GamePlatformType {
@ -10258,7 +10289,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavDate" field.</summary> /// <summary>Field number for the "SavDate" field.</summary>
public const int SavDateFieldNumber = 5; public const int SavDateFieldNumber = 7;
private string savDate_ = ""; private string savDate_ = "";
/// <summary> /// <summary>
///存档时间 ///存档时间
@ -10272,7 +10303,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavName" field.</summary> /// <summary>Field number for the "SavName" field.</summary>
public const int SavNameFieldNumber = 6; public const int SavNameFieldNumber = 8;
private string savName_ = ""; private string savName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string SavName { public string SavName {
@ -10283,7 +10314,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "Note" field.</summary> /// <summary>Field number for the "Note" field.</summary>
public const int NoteFieldNumber = 7; public const int NoteFieldNumber = 9;
private string note_ = ""; private string note_ = "";
/// <summary> /// <summary>
///备注 ///备注
@ -10297,7 +10328,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavImgUrl" field.</summary> /// <summary>Field number for the "SavImgUrl" field.</summary>
public const int SavImgUrlFieldNumber = 8; public const int SavImgUrlFieldNumber = 10;
private string savImgUrl_ = ""; private string savImgUrl_ = "";
/// <summary> /// <summary>
///即时存档截图Url ///即时存档截图Url
@ -10311,7 +10342,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "SavUrl" field.</summary> /// <summary>Field number for the "SavUrl" field.</summary>
public const int SavUrlFieldNumber = 9; public const int SavUrlFieldNumber = 11;
private string savUrl_ = ""; private string savUrl_ = "";
/// <summary> /// <summary>
///即时存档下载Url ///即时存档下载Url
@ -10338,6 +10369,8 @@ namespace AxibugProtobuf {
return true; return true;
} }
if (BHadSaveData != other.BHadSaveData) return false; if (BHadSaveData != other.BHadSaveData) return false;
if (SavID != other.SavID) return false;
if (Uid != other.Uid) return false;
if (SavDataIdx != other.SavDataIdx) return false; if (SavDataIdx != other.SavDataIdx) return false;
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (GamePlatformType != other.GamePlatformType) return false; if (GamePlatformType != other.GamePlatformType) return false;
@ -10353,6 +10386,8 @@ namespace AxibugProtobuf {
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (BHadSaveData != false) hash ^= BHadSaveData.GetHashCode(); if (BHadSaveData != false) hash ^= BHadSaveData.GetHashCode();
if (SavID != 0L) hash ^= SavID.GetHashCode();
if (Uid != 0L) hash ^= Uid.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode(); if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) hash ^= GamePlatformType.GetHashCode(); if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) hash ^= GamePlatformType.GetHashCode();
@ -10381,36 +10416,44 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteBool(BHadSaveData); output.WriteBool(BHadSaveData);
} }
if (SavDataIdx != 0) { if (SavID != 0L) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt64(SavID);
}
if (Uid != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Uid);
}
if (SavDataIdx != 0) {
output.WriteRawTag(32);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (RomID != 0) { if (RomID != 0) {
output.WriteRawTag(24); output.WriteRawTag(40);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) { if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) {
output.WriteRawTag(32); output.WriteRawTag(48);
output.WriteEnum((int) GamePlatformType); output.WriteEnum((int) GamePlatformType);
} }
if (SavDate.Length != 0) { if (SavDate.Length != 0) {
output.WriteRawTag(42); output.WriteRawTag(58);
output.WriteString(SavDate); output.WriteString(SavDate);
} }
if (SavName.Length != 0) { if (SavName.Length != 0) {
output.WriteRawTag(50); output.WriteRawTag(66);
output.WriteString(SavName); output.WriteString(SavName);
} }
if (Note.Length != 0) { if (Note.Length != 0) {
output.WriteRawTag(58); output.WriteRawTag(74);
output.WriteString(Note); output.WriteString(Note);
} }
if (SavImgUrl.Length != 0) { if (SavImgUrl.Length != 0) {
output.WriteRawTag(66); output.WriteRawTag(82);
output.WriteString(SavImgUrl); output.WriteString(SavImgUrl);
} }
if (SavUrl.Length != 0) { if (SavUrl.Length != 0) {
output.WriteRawTag(74); output.WriteRawTag(90);
output.WriteString(SavUrl); output.WriteString(SavUrl);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -10426,36 +10469,44 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteBool(BHadSaveData); output.WriteBool(BHadSaveData);
} }
if (SavDataIdx != 0) { if (SavID != 0L) {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt64(SavID);
}
if (Uid != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Uid);
}
if (SavDataIdx != 0) {
output.WriteRawTag(32);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (RomID != 0) { if (RomID != 0) {
output.WriteRawTag(24); output.WriteRawTag(40);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) { if (GamePlatformType != global::AxibugProtobuf.RomPlatformType.Invalid) {
output.WriteRawTag(32); output.WriteRawTag(48);
output.WriteEnum((int) GamePlatformType); output.WriteEnum((int) GamePlatformType);
} }
if (SavDate.Length != 0) { if (SavDate.Length != 0) {
output.WriteRawTag(42); output.WriteRawTag(58);
output.WriteString(SavDate); output.WriteString(SavDate);
} }
if (SavName.Length != 0) { if (SavName.Length != 0) {
output.WriteRawTag(50); output.WriteRawTag(66);
output.WriteString(SavName); output.WriteString(SavName);
} }
if (Note.Length != 0) { if (Note.Length != 0) {
output.WriteRawTag(58); output.WriteRawTag(74);
output.WriteString(Note); output.WriteString(Note);
} }
if (SavImgUrl.Length != 0) { if (SavImgUrl.Length != 0) {
output.WriteRawTag(66); output.WriteRawTag(82);
output.WriteString(SavImgUrl); output.WriteString(SavImgUrl);
} }
if (SavUrl.Length != 0) { if (SavUrl.Length != 0) {
output.WriteRawTag(74); output.WriteRawTag(90);
output.WriteString(SavUrl); output.WriteString(SavUrl);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -10470,6 +10521,12 @@ namespace AxibugProtobuf {
if (BHadSaveData != false) { if (BHadSaveData != false) {
size += 1 + 1; size += 1 + 1;
} }
if (SavID != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(SavID);
}
if (Uid != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Uid);
}
if (SavDataIdx != 0) { if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx); size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
} }
@ -10508,6 +10565,12 @@ namespace AxibugProtobuf {
if (other.BHadSaveData != false) { if (other.BHadSaveData != false) {
BHadSaveData = other.BHadSaveData; BHadSaveData = other.BHadSaveData;
} }
if (other.SavID != 0L) {
SavID = other.SavID;
}
if (other.Uid != 0L) {
Uid = other.Uid;
}
if (other.SavDataIdx != 0) { if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx; SavDataIdx = other.SavDataIdx;
} }
@ -10551,34 +10614,42 @@ namespace AxibugProtobuf {
break; break;
} }
case 16: { case 16: {
SavDataIdx = input.ReadInt32(); SavID = input.ReadInt64();
break; break;
} }
case 24: { case 24: {
RomID = input.ReadInt32(); Uid = input.ReadInt64();
break; break;
} }
case 32: { case 32: {
SavDataIdx = input.ReadInt32();
break;
}
case 40: {
RomID = input.ReadInt32();
break;
}
case 48: {
GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum(); GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum();
break; break;
} }
case 42: { case 58: {
SavDate = input.ReadString(); SavDate = input.ReadString();
break; break;
} }
case 50: { case 66: {
SavName = input.ReadString(); SavName = input.ReadString();
break; break;
} }
case 58: { case 74: {
Note = input.ReadString(); Note = input.ReadString();
break; break;
} }
case 66: { case 82: {
SavImgUrl = input.ReadString(); SavImgUrl = input.ReadString();
break; break;
} }
case 74: { case 90: {
SavUrl = input.ReadString(); SavUrl = input.ReadString();
break; break;
} }
@ -10601,34 +10672,42 @@ namespace AxibugProtobuf {
break; break;
} }
case 16: { case 16: {
SavDataIdx = input.ReadInt32(); SavID = input.ReadInt64();
break; break;
} }
case 24: { case 24: {
RomID = input.ReadInt32(); Uid = input.ReadInt64();
break; break;
} }
case 32: { case 32: {
SavDataIdx = input.ReadInt32();
break;
}
case 40: {
RomID = input.ReadInt32();
break;
}
case 48: {
GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum(); GamePlatformType = (global::AxibugProtobuf.RomPlatformType) input.ReadEnum();
break; break;
} }
case 42: { case 58: {
SavDate = input.ReadString(); SavDate = input.ReadString();
break; break;
} }
case 50: { case 66: {
SavName = input.ReadString(); SavName = input.ReadString();
break; break;
} }
case 58: { case 74: {
Note = input.ReadString(); Note = input.ReadString();
break; break;
} }
case 66: { case 82: {
SavImgUrl = input.ReadString(); SavImgUrl = input.ReadString();
break; break;
} }
case 74: { case 90: {
SavUrl = input.ReadString(); SavUrl = input.ReadString();
break; break;
} }
@ -11098,6 +11177,8 @@ namespace AxibugProtobuf {
public Protobuf_Mine_UpLoadGameSav(Protobuf_Mine_UpLoadGameSav other) : this() { public Protobuf_Mine_UpLoadGameSav(Protobuf_Mine_UpLoadGameSav other) : this() {
romID_ = other.romID_; romID_ = other.romID_;
savDataIdx_ = other.savDataIdx_; savDataIdx_ = other.savDataIdx_;
name_ = other.name_;
note_ = other.note_;
savImg_ = other.savImg_; savImg_ = other.savImg_;
stateRaw_ = other.stateRaw_; stateRaw_ = other.stateRaw_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
@ -11136,8 +11217,36 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "Name" field.</summary>
public const int NameFieldNumber = 3;
private string name_ = "";
/// <summary>
///存档名(留空时,服务器自动)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "Note" field.</summary>
public const int NoteFieldNumber = 4;
private string note_ = "";
/// <summary>
///备注(留空时,服务器自动)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Note {
get { return note_; }
set {
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "SavImg" field.</summary> /// <summary>Field number for the "SavImg" field.</summary>
public const int SavImgFieldNumber = 3; public const int SavImgFieldNumber = 5;
private pb::ByteString savImg_ = pb::ByteString.Empty; private pb::ByteString savImg_ = pb::ByteString.Empty;
/// <summary> /// <summary>
///即时存档截图模拟器原生数据 ///即时存档截图模拟器原生数据
@ -11151,7 +11260,7 @@ namespace AxibugProtobuf {
} }
/// <summary>Field number for the "StateRaw" field.</summary> /// <summary>Field number for the "StateRaw" field.</summary>
public const int StateRawFieldNumber = 4; public const int StateRawFieldNumber = 6;
private pb::ByteString stateRaw_ = pb::ByteString.Empty; private pb::ByteString stateRaw_ = pb::ByteString.Empty;
/// <summary> /// <summary>
///即时存档byte数据 ///即时存档byte数据
@ -11179,6 +11288,8 @@ namespace AxibugProtobuf {
} }
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (SavDataIdx != other.SavDataIdx) return false; if (SavDataIdx != other.SavDataIdx) return false;
if (Name != other.Name) return false;
if (Note != other.Note) return false;
if (SavImg != other.SavImg) return false; if (SavImg != other.SavImg) return false;
if (StateRaw != other.StateRaw) return false; if (StateRaw != other.StateRaw) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
@ -11189,6 +11300,8 @@ namespace AxibugProtobuf {
int hash = 1; int hash = 1;
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode(); if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Note.Length != 0) hash ^= Note.GetHashCode();
if (SavImg.Length != 0) hash ^= SavImg.GetHashCode(); if (SavImg.Length != 0) hash ^= SavImg.GetHashCode();
if (StateRaw.Length != 0) hash ^= StateRaw.GetHashCode(); if (StateRaw.Length != 0) hash ^= StateRaw.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11215,12 +11328,20 @@ namespace AxibugProtobuf {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (SavImg.Length != 0) { if (Name.Length != 0) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteString(Name);
}
if (Note.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Note);
}
if (SavImg.Length != 0) {
output.WriteRawTag(42);
output.WriteBytes(SavImg); output.WriteBytes(SavImg);
} }
if (StateRaw.Length != 0) { if (StateRaw.Length != 0) {
output.WriteRawTag(34); output.WriteRawTag(50);
output.WriteBytes(StateRaw); output.WriteBytes(StateRaw);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11240,12 +11361,20 @@ namespace AxibugProtobuf {
output.WriteRawTag(16); output.WriteRawTag(16);
output.WriteInt32(SavDataIdx); output.WriteInt32(SavDataIdx);
} }
if (SavImg.Length != 0) { if (Name.Length != 0) {
output.WriteRawTag(26); output.WriteRawTag(26);
output.WriteString(Name);
}
if (Note.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Note);
}
if (SavImg.Length != 0) {
output.WriteRawTag(42);
output.WriteBytes(SavImg); output.WriteBytes(SavImg);
} }
if (StateRaw.Length != 0) { if (StateRaw.Length != 0) {
output.WriteRawTag(34); output.WriteRawTag(50);
output.WriteBytes(StateRaw); output.WriteBytes(StateRaw);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11263,6 +11392,12 @@ namespace AxibugProtobuf {
if (SavDataIdx != 0) { if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx); size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
} }
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Note.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
}
if (SavImg.Length != 0) { if (SavImg.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(SavImg); size += 1 + pb::CodedOutputStream.ComputeBytesSize(SavImg);
} }
@ -11286,6 +11421,12 @@ namespace AxibugProtobuf {
if (other.SavDataIdx != 0) { if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx; SavDataIdx = other.SavDataIdx;
} }
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Note.Length != 0) {
Note = other.Note;
}
if (other.SavImg.Length != 0) { if (other.SavImg.Length != 0) {
SavImg = other.SavImg; SavImg = other.SavImg;
} }
@ -11315,10 +11456,18 @@ namespace AxibugProtobuf {
break; break;
} }
case 26: { case 26: {
SavImg = input.ReadBytes(); Name = input.ReadString();
break; break;
} }
case 34: { case 34: {
Note = input.ReadString();
break;
}
case 42: {
SavImg = input.ReadBytes();
break;
}
case 50: {
StateRaw = input.ReadBytes(); StateRaw = input.ReadBytes();
break; break;
} }
@ -11345,10 +11494,18 @@ namespace AxibugProtobuf {
break; break;
} }
case 26: { case 26: {
SavImg = input.ReadBytes(); Name = input.ReadString();
break; break;
} }
case 34: { case 34: {
Note = input.ReadString();
break;
}
case 42: {
SavImg = input.ReadBytes();
break;
}
case 50: {
StateRaw = input.ReadBytes(); StateRaw = input.ReadBytes();
break; break;
} }
@ -11389,6 +11546,7 @@ namespace AxibugProtobuf {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Mine_UpLoadGameSav_RESP(Protobuf_Mine_UpLoadGameSav_RESP other) : this() { public Protobuf_Mine_UpLoadGameSav_RESP(Protobuf_Mine_UpLoadGameSav_RESP other) : this() {
romID_ = other.romID_; romID_ = other.romID_;
savDataIdx_ = other.savDataIdx_;
uploadSevInfo_ = other.uploadSevInfo_ != null ? other.uploadSevInfo_.Clone() : null; uploadSevInfo_ = other.uploadSevInfo_ != null ? other.uploadSevInfo_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
@ -11412,8 +11570,22 @@ namespace AxibugProtobuf {
} }
} }
/// <summary>Field number for the "SavDataIdx" field.</summary>
public const int SavDataIdxFieldNumber = 2;
private int savDataIdx_;
/// <summary>
///即时存档下标(其中第0个是自动存档位置)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SavDataIdx {
get { return savDataIdx_; }
set {
savDataIdx_ = value;
}
}
/// <summary>Field number for the "UploadSevInfo" field.</summary> /// <summary>Field number for the "UploadSevInfo" field.</summary>
public const int UploadSevInfoFieldNumber = 2; public const int UploadSevInfoFieldNumber = 3;
private global::AxibugProtobuf.Protobuf_Mine_GameSavInfo uploadSevInfo_; private global::AxibugProtobuf.Protobuf_Mine_GameSavInfo uploadSevInfo_;
/// <summary> /// <summary>
///上传成功的存档详情 ///上传成功的存档详情
@ -11440,6 +11612,7 @@ namespace AxibugProtobuf {
return true; return true;
} }
if (RomID != other.RomID) return false; if (RomID != other.RomID) return false;
if (SavDataIdx != other.SavDataIdx) return false;
if (!object.Equals(UploadSevInfo, other.UploadSevInfo)) return false; if (!object.Equals(UploadSevInfo, other.UploadSevInfo)) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
} }
@ -11448,6 +11621,7 @@ namespace AxibugProtobuf {
public override int GetHashCode() { public override int GetHashCode() {
int hash = 1; int hash = 1;
if (RomID != 0) hash ^= RomID.GetHashCode(); if (RomID != 0) hash ^= RomID.GetHashCode();
if (SavDataIdx != 0) hash ^= SavDataIdx.GetHashCode();
if (uploadSevInfo_ != null) hash ^= UploadSevInfo.GetHashCode(); if (uploadSevInfo_ != null) hash ^= UploadSevInfo.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode(); hash ^= _unknownFields.GetHashCode();
@ -11469,8 +11643,12 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (SavDataIdx != 0) {
output.WriteRawTag(16);
output.WriteInt32(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
output.WriteRawTag(18); output.WriteRawTag(26);
output.WriteMessage(UploadSevInfo); output.WriteMessage(UploadSevInfo);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11486,8 +11664,12 @@ namespace AxibugProtobuf {
output.WriteRawTag(8); output.WriteRawTag(8);
output.WriteInt32(RomID); output.WriteInt32(RomID);
} }
if (SavDataIdx != 0) {
output.WriteRawTag(16);
output.WriteInt32(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
output.WriteRawTag(18); output.WriteRawTag(26);
output.WriteMessage(UploadSevInfo); output.WriteMessage(UploadSevInfo);
} }
if (_unknownFields != null) { if (_unknownFields != null) {
@ -11502,6 +11684,9 @@ namespace AxibugProtobuf {
if (RomID != 0) { if (RomID != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RomID); size += 1 + pb::CodedOutputStream.ComputeInt32Size(RomID);
} }
if (SavDataIdx != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SavDataIdx);
}
if (uploadSevInfo_ != null) { if (uploadSevInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadSevInfo); size += 1 + pb::CodedOutputStream.ComputeMessageSize(UploadSevInfo);
} }
@ -11519,6 +11704,9 @@ namespace AxibugProtobuf {
if (other.RomID != 0) { if (other.RomID != 0) {
RomID = other.RomID; RomID = other.RomID;
} }
if (other.SavDataIdx != 0) {
SavDataIdx = other.SavDataIdx;
}
if (other.uploadSevInfo_ != null) { if (other.uploadSevInfo_ != null) {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
@ -11543,7 +11731,11 @@ namespace AxibugProtobuf {
RomID = input.ReadInt32(); RomID = input.ReadInt32();
break; break;
} }
case 18: { case 16: {
SavDataIdx = input.ReadInt32();
break;
}
case 26: {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
} }
@ -11568,7 +11760,11 @@ namespace AxibugProtobuf {
RomID = input.ReadInt32(); RomID = input.ReadInt32();
break; break;
} }
case 18: { case 16: {
SavDataIdx = input.ReadInt32();
break;
}
case 26: {
if (uploadSevInfo_ == null) { if (uploadSevInfo_ == null) {
UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo(); UploadSevInfo = new global::AxibugProtobuf.Protobuf_Mine_GameSavInfo();
} }

View File

@ -466,14 +466,16 @@ message Protobuf_Mine_GetGameSavList_RESP
message Protobuf_Mine_GameSavInfo message Protobuf_Mine_GameSavInfo
{ {
bool bHadSaveData = 1;// bool bHadSaveData = 1;//
int32 SavDataIdx = 2;//(0) int64 SavID = 2;//ID
int32 RomID = 3; int64 uid = 3;//UID
RomPlatformType GamePlatformType = 4; int32 SavDataIdx = 4;//(0)
string SavDate = 5;// int32 RomID = 5;
string SavName = 6; RomPlatformType GamePlatformType = 6;
string Note = 7;// string SavDate = 7;//
string SavImgUrl = 8;//Url string SavName = 8;
string SavUrl = 9;//Url string Note = 9;//
string SavImgUrl = 10;//Url
string SavUrl = 11;//Url
} }
message Protobuf_Mine_DelGameSav message Protobuf_Mine_DelGameSav
@ -492,12 +494,15 @@ message Protobuf_Mine_UpLoadGameSav
{ {
int32 RomID = 1;//RomID int32 RomID = 1;//RomID
int32 SavDataIdx = 2;//(0) int32 SavDataIdx = 2;//(0)
bytes SavImg = 3;// string Name = 3;//
bytes StateRaw = 4;//byte数据 string Note = 4;//
bytes SavImg = 5;//
bytes StateRaw = 6;//byte数据
} }
message Protobuf_Mine_UpLoadGameSav_RESP message Protobuf_Mine_UpLoadGameSav_RESP
{ {
int32 RomID = 1;//RomID int32 RomID = 1;//RomID
Protobuf_Mine_GameSavInfo UploadSevInfo = 2;// int32 SavDataIdx = 2;//(0)
Protobuf_Mine_GameSavInfo UploadSevInfo = 3;//
} }