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

@@ -25,19 +25,18 @@ namespace Proto {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Chx2YW1waXJlX3N1cnZpdm9yX2FwcGx5LnByb3RvEgVwcm90bxoMcHVibGlj",
"LnByb3RvIl8KF1ZhbXBpcmVTdXJ2aXZvckFwcGx5UmVxEgoKAklkGAEgASgN",
"EhAKCEJ1aWxkSWQxGAIgASgEEhAKCEJ1aWxkSWQyGAMgASgEEhQKC05leHRQ",
"YWNrYWdlGP8PIAEoDCL5AQoYVmFtcGlyZVN1cnZpdm9yQXBwbHlSZXNwEisK",
"BkV2ZW50cxgBIAMoCzIbLnByb3RvLlZhbXBpcmVTdXJ2aXZvckV2ZW50Eg4K",
"BlRpY2tlchgCIAEoDRIhCgZDaGFuZ2UYAyABKAsyES5wcm90by5DaGFuZ2VJ",
"bmZvEjQKBlNlbGVjdBgEIAEoCzIkLnByb3RvLlZhbXBpcmVTdXJ2aXZvckZh",
"dGVDYXJkU2VsZWN0EjEKBlJld2FyZBgFIAEoCzIhLnByb3RvLlZhbXBpcmVT",
"dXJ2aXZvckxldmVsUmV3YXJkEhQKC05leHRQYWNrYWdlGP8PIAEoDFAAYgZw",
"cm90bzM="));
"LnByb3RvIk0KF1ZhbXBpcmVTdXJ2aXZvckFwcGx5UmVxEgoKAklkGAEgASgN",
"EhAKCEJ1aWxkSWRzGAIgAygEEhQKC05leHRQYWNrYWdlGP8PIAEoDCL5AQoY",
"VmFtcGlyZVN1cnZpdm9yQXBwbHlSZXNwEisKBkV2ZW50cxgBIAMoCzIbLnBy",
"b3RvLlZhbXBpcmVTdXJ2aXZvckV2ZW50Eg4KBlRpY2tlchgCIAEoDRIhCgZD",
"aGFuZ2UYAyABKAsyES5wcm90by5DaGFuZ2VJbmZvEjQKBlNlbGVjdBgEIAEo",
"CzIkLnByb3RvLlZhbXBpcmVTdXJ2aXZvckZhdGVDYXJkU2VsZWN0EjEKBlJl",
"d2FyZBgFIAEoCzIhLnByb3RvLlZhbXBpcmVTdXJ2aXZvckxldmVsUmV3YXJk",
"EhQKC05leHRQYWNrYWdlGP8PIAEoDFAAYgZwcm90bzM="));
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.VampireSurvivorApplyReq), global::Proto.VampireSurvivorApplyReq.Parser, new[]{ "Id", "BuildId1", "BuildId2", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.VampireSurvivorApplyReq), global::Proto.VampireSurvivorApplyReq.Parser, new[]{ "Id", "BuildIds", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.VampireSurvivorApplyResp), global::Proto.VampireSurvivorApplyResp.Parser, new[]{ "Events", "Ticker", "Change", "Select", "Reward", "NextPackage" }, null, null, null, null)
}));
}
@@ -81,8 +80,7 @@ namespace Proto {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VampireSurvivorApplyReq(VampireSurvivorApplyReq other) : this() {
id_ = other.id_;
buildId1_ = other.buildId1_;
buildId2_ = other.buildId2_;
buildIds_ = other.buildIds_.Clone();
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -105,28 +103,15 @@ namespace Proto {
}
}
/// <summary>Field number for the "BuildId1" field.</summary>
public const int BuildId1FieldNumber = 2;
private ulong buildId1_;
/// <summary>Field number for the "BuildIds" field.</summary>
public const int BuildIdsFieldNumber = 2;
private static readonly pb::FieldCodec<ulong> _repeated_buildIds_codec
= pb::FieldCodec.ForUInt64(18);
private readonly pbc::RepeatedField<ulong> buildIds_ = new pbc::RepeatedField<ulong>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong BuildId1 {
get { return buildId1_; }
set {
buildId1_ = value;
}
}
/// <summary>Field number for the "BuildId2" field.</summary>
public const int BuildId2FieldNumber = 3;
private ulong buildId2_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong BuildId2 {
get { return buildId2_; }
set {
buildId2_ = value;
}
public pbc::RepeatedField<ulong> BuildIds {
get { return buildIds_; }
}
/// <summary>Field number for the "NextPackage" field.</summary>
@@ -157,8 +142,7 @@ namespace Proto {
return true;
}
if (Id != other.Id) return false;
if (BuildId1 != other.BuildId1) return false;
if (BuildId2 != other.BuildId2) return false;
if(!buildIds_.Equals(other.buildIds_)) return false;
if (NextPackage != other.NextPackage) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -168,8 +152,7 @@ namespace Proto {
public override int GetHashCode() {
int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode();
if (BuildId1 != 0UL) hash ^= BuildId1.GetHashCode();
if (BuildId2 != 0UL) hash ^= BuildId2.GetHashCode();
hash ^= buildIds_.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
@@ -193,14 +176,7 @@ namespace Proto {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (BuildId1 != 0UL) {
output.WriteRawTag(16);
output.WriteUInt64(BuildId1);
}
if (BuildId2 != 0UL) {
output.WriteRawTag(24);
output.WriteUInt64(BuildId2);
}
buildIds_.WriteTo(output, _repeated_buildIds_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
@@ -219,14 +195,7 @@ namespace Proto {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (BuildId1 != 0UL) {
output.WriteRawTag(16);
output.WriteUInt64(BuildId1);
}
if (BuildId2 != 0UL) {
output.WriteRawTag(24);
output.WriteUInt64(BuildId2);
}
buildIds_.WriteTo(ref output, _repeated_buildIds_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
@@ -244,12 +213,7 @@ namespace Proto {
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
}
if (BuildId1 != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BuildId1);
}
if (BuildId2 != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BuildId2);
}
size += buildIds_.CalculateSize(_repeated_buildIds_codec);
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
@@ -268,12 +232,7 @@ namespace Proto {
if (other.Id != 0) {
Id = other.Id;
}
if (other.BuildId1 != 0UL) {
BuildId1 = other.BuildId1;
}
if (other.BuildId2 != 0UL) {
BuildId2 = other.BuildId2;
}
buildIds_.Add(other.buildIds_);
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
@@ -300,12 +259,9 @@ namespace Proto {
Id = input.ReadUInt32();
break;
}
case 18:
case 16: {
BuildId1 = input.ReadUInt64();
break;
}
case 24: {
BuildId2 = input.ReadUInt64();
buildIds_.AddEntriesFrom(input, _repeated_buildIds_codec);
break;
}
case 16378: {
@@ -335,12 +291,9 @@ namespace Proto {
Id = input.ReadUInt32();
break;
}
case 18:
case 16: {
BuildId1 = input.ReadUInt64();
break;
}
case 24: {
BuildId2 = input.ReadUInt64();
buildIds_.AddEntriesFrom(ref input, _repeated_buildIds_codec);
break;
}
case 16378: {