updated protos, hardcoded gacha

This commit is contained in:
raphaeIl
2025-05-27 15:04:26 -04:00
parent 289a4d661d
commit a6a9c98b9d
46 changed files with 19007 additions and 9293 deletions

View File

@@ -24,19 +24,19 @@ namespace Proto {
static ItemUseReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg5pdGVtX3VzZS5wcm90bxIFcHJvdG8aDHB1YmxpYy5wcm90byJMCghQaWNr",
"Cg5pdGVtX3VzZS5wcm90bxIFcHJvdG8aDHB1YmxpYy5wcm90byJZCghQaWNr",
"SXRlbRIKCgJJZBgBIAEoBBILCgNUaWQYAiABKA0SEQoJU2VsZWN0VGlkGAMg",
"ASgNEhQKC05leHRQYWNrYWdlGP8PIAEoDCJACglQaWNrSXRlbXMSHQoETGlz",
"dBgBIAMoCzIPLnByb3RvLlBpY2tJdGVtEhQKC05leHRQYWNrYWdlGP8PIAEo",
"DCI+CgdVc2VJdGVtEh0KBExpc3QYASADKAsyDy5wcm90by5JdGVtSW5mbxIU",
"CgtOZXh0UGFja2FnZRj/DyABKAwiawoKSXRlbVVzZVJlcRIUCgtOZXh0UGFj",
"a2FnZRj/DyABKAwSIAoEUGljaxgBIAEoCzIQLnByb3RvLlBpY2tJdGVtc0gA",
"Eh0KA1VzZRgCIAEoCzIOLnByb3RvLlVzZUl0ZW1IAEIGCgRNb2RlUABiBnBy",
"b3RvMw=="));
"ASgNEgsKA1F0eRgEIAEoDRIUCgtOZXh0UGFja2FnZRj/DyABKAwiQAoJUGlj",
"a0l0ZW1zEh0KBExpc3QYASADKAsyDy5wcm90by5QaWNrSXRlbRIUCgtOZXh0",
"UGFja2FnZRj/DyABKAwiPgoHVXNlSXRlbRIdCgRMaXN0GAEgAygLMg8ucHJv",
"dG8uSXRlbUluZm8SFAoLTmV4dFBhY2thZ2UY/w8gASgMImsKCkl0ZW1Vc2VS",
"ZXESFAoLTmV4dFBhY2thZ2UY/w8gASgMEiAKBFBpY2sYASABKAsyEC5wcm90",
"by5QaWNrSXRlbXNIABIdCgNVc2UYAiABKAsyDi5wcm90by5Vc2VJdGVtSABC",
"BgoETW9kZVAAYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Proto.PublicReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.PickItem), global::Proto.PickItem.Parser, new[]{ "Id", "Tid", "SelectTid", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.PickItem), global::Proto.PickItem.Parser, new[]{ "Id", "Tid", "SelectTid", "Qty", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.PickItems), global::Proto.PickItems.Parser, new[]{ "List", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.UseItem), global::Proto.UseItem.Parser, new[]{ "List", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.ItemUseReq), global::Proto.ItemUseReq.Parser, new[]{ "NextPackage", "Pick", "Use" }, new[]{ "Mode" }, null, null, null)
@@ -84,6 +84,7 @@ namespace Proto {
id_ = other.id_;
tid_ = other.tid_;
selectTid_ = other.selectTid_;
qty_ = other.qty_;
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -130,6 +131,18 @@ namespace Proto {
}
}
/// <summary>Field number for the "Qty" field.</summary>
public const int QtyFieldNumber = 4;
private uint qty_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Qty {
get { return qty_; }
set {
qty_ = value;
}
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
@@ -160,6 +173,7 @@ namespace Proto {
if (Id != other.Id) return false;
if (Tid != other.Tid) return false;
if (SelectTid != other.SelectTid) return false;
if (Qty != other.Qty) return false;
if (NextPackage != other.NextPackage) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -171,6 +185,7 @@ namespace Proto {
if (Id != 0UL) hash ^= Id.GetHashCode();
if (Tid != 0) hash ^= Tid.GetHashCode();
if (SelectTid != 0) hash ^= SelectTid.GetHashCode();
if (Qty != 0) hash ^= Qty.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
@@ -202,6 +217,10 @@ namespace Proto {
output.WriteRawTag(24);
output.WriteUInt32(SelectTid);
}
if (Qty != 0) {
output.WriteRawTag(32);
output.WriteUInt32(Qty);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
@@ -228,6 +247,10 @@ namespace Proto {
output.WriteRawTag(24);
output.WriteUInt32(SelectTid);
}
if (Qty != 0) {
output.WriteRawTag(32);
output.WriteUInt32(Qty);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
@@ -251,6 +274,9 @@ namespace Proto {
if (SelectTid != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SelectTid);
}
if (Qty != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Qty);
}
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
@@ -275,6 +301,9 @@ namespace Proto {
if (other.SelectTid != 0) {
SelectTid = other.SelectTid;
}
if (other.Qty != 0) {
Qty = other.Qty;
}
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
@@ -309,6 +338,10 @@ namespace Proto {
SelectTid = input.ReadUInt32();
break;
}
case 32: {
Qty = input.ReadUInt32();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
@@ -344,6 +377,10 @@ namespace Proto {
SelectTid = input.ReadUInt32();
break;
}
case 32: {
Qty = input.ReadUInt32();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;