com.xmobitea.changx.gn-unity 2.4.12 → 2.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,8 @@
2
2
  {
3
3
  public enum ItemType
4
4
  {
5
- NonComsumable = 1,
6
- Consumable = 2,
5
+ NonStackable = 1,
6
+ Stackable = 2,
7
7
 
8
8
  }
9
9
 
@@ -23,7 +23,7 @@
23
23
  public const int FileNotFound = 18;
24
24
  public const int FileNotUpload = 19;
25
25
  public const int OwnerTypeNotSupport = 20;
26
- public const int ItemNotComsumable = 21;
26
+ public const int ItemNotStackable = 21;
27
27
  public const int GameNotFound = 22;
28
28
  public const int GameIsExists = 23;
29
29
  public const int SecretInfoNotFound = 24;
@@ -630,6 +630,14 @@
630
630
  public const string Indexes = "indexes";
631
631
  public const string DatabaseSystem = "databaseSystem";
632
632
 
633
+ public const string Cost = "cost";
634
+ public const string MonthlyCost = "monthlyCost";
635
+ public const string RequestCount = "requestCount";
636
+ public const string MatchmakingRequestCount = "matchmakingRequestCount";
637
+ public const string CloudScriptGBs = "cloudScriptGBs";
638
+ public const string StorageSizeInBytes = "storageSizeInBytes";
639
+ public const string DataTransferSizeInBytes = "dataTransferSizeInBytes";
640
+
633
641
  }
634
642
 
635
643
  }
@@ -119,7 +119,7 @@
119
119
  public string token;
120
120
 
121
121
  [NumberDataMember(code = GNParameterCode.Type, minValue = 1, maxValue = 2, mustInt = true)]
122
- public long type;
122
+ public int type;
123
123
 
124
124
  [BooleanDataMember(code = GNParameterCode.CreatePlayerIfNotExists, isOptional = true, defaultValue = false)]
125
125
  public bool? createPlayerIfNotExists;
@@ -139,6 +139,9 @@
139
139
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
140
140
  public int? limit;
141
141
 
142
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
143
+ public bool? loadFromCache;
144
+
142
145
  }
143
146
 
144
147
  public class ServerGetFriendStatisticsLeaderboardAroundPlayerRequestData : GetFriendStatisticsLeaderboardAroundPlayerRequestData
@@ -166,6 +169,9 @@
166
169
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
167
170
  public int? limit;
168
171
 
172
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
173
+ public bool? loadFromCache;
174
+
169
175
  }
170
176
 
171
177
  public class ServerGetFriendStatisticsLeaderboardRequestData : GetFriendStatisticsLeaderboardRequestData
@@ -469,6 +475,12 @@
469
475
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
470
476
  public int? limit;
471
477
 
478
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
479
+ public bool? loadFromCache;
480
+
481
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
482
+ public string? catalogId;
483
+
472
484
  }
473
485
 
474
486
  public class ServerGetStatisticsLeaderboardAroundPlayerRequestData : GetStatisticsLeaderboardAroundPlayerRequestData
@@ -499,6 +511,9 @@
499
511
  [StringDataMember(code = GNParameterCode.Version, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
500
512
  public string? version;
501
513
 
514
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
515
+ public string? catalogId;
516
+
502
517
  }
503
518
 
504
519
  public class ServerGetStatisticsLeaderboardRequestData : GetStatisticsLeaderboardRequestData
@@ -595,8 +610,8 @@
595
610
  [StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
596
611
  public string? displayName;
597
612
 
598
- [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, isOptional = true)]
599
- public double? amount;
613
+ [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, mustInt = true, isOptional = true)]
614
+ public int? amount;
600
615
 
601
616
  }
602
617
 
@@ -722,7 +737,7 @@
722
737
  public string characterId;
723
738
 
724
739
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
725
- public long type;
740
+ public int type;
726
741
 
727
742
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
728
743
  public string value;
@@ -815,7 +830,7 @@
815
830
  public string characterId;
816
831
 
817
832
  [NumberDataMember(code = GNParameterCode.TsExpire)]
818
- public double tsExpire;
833
+ public long tsExpire;
819
834
 
820
835
  [StringDataMember(code = GNParameterCode.Reason)]
821
836
  public string reason;
@@ -1290,6 +1305,9 @@
1290
1305
  [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
1291
1306
  public bool? loadFromCache;
1292
1307
 
1308
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
1309
+ public string? catalogId;
1310
+
1293
1311
  }
1294
1312
 
1295
1313
  public class ServerGetCurrencyLeaderboardRequestData : GetCurrencyLeaderboardRequestData
@@ -165,7 +165,7 @@
165
165
  public bool? remove;
166
166
 
167
167
  [NumberDataMember(code = GNParameterCode.TsExpire, isOptional = true)]
168
- public double? tsExpire;
168
+ public long? tsExpire;
169
169
 
170
170
  [GNHashtableDataMember(code = GNParameterCode.Permission, isOptional = true)]
171
171
  public PermissionParam? permissionParam;
@@ -209,6 +209,12 @@
209
209
  [BooleanDataMember(code = GNParameterCode.DatabaseSystem, isOptional = true)]
210
210
  public bool? databaseSystem;
211
211
 
212
+ [BooleanDataMember(code = GNParameterCode.Cost, isOptional = true)]
213
+ public bool? cost;
214
+
215
+ [BooleanDataMember(code = GNParameterCode.MonthlyCost, isOptional = true)]
216
+ public bool? monthlyCost;
217
+
212
218
  }
213
219
 
214
220
  public class GetEventCallbackCloudScriptRequestData
@@ -242,6 +248,9 @@
242
248
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
243
249
  public string? log;
244
250
 
251
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
252
+ public string? catalogId;
253
+
245
254
  }
246
255
 
247
256
  public class GetBackupStatisticsLeaderboardVersionRequestData
@@ -597,7 +606,7 @@
597
606
  public string displayName;
598
607
 
599
608
  [NumberDataMember(code = GNParameterCode.Permission, mustInt = true)]
600
- public long permission;
609
+ public int permission;
601
610
 
602
611
  }
603
612
 
@@ -1132,7 +1141,7 @@
1132
1141
  public string catalogId;
1133
1142
 
1134
1143
  [NumberDataMember(code = GNParameterCode.ItemType, mustInt = true)]
1135
- public long itemType;
1144
+ public int itemType;
1136
1145
 
1137
1146
  [GNArrayDataMember(code = GNParameterCode.ItemClassSettings, elementCls = typeof(ItemClassSettingsParam))]
1138
1147
  public List<ItemClassSettingsParam> itemClassSettings;
@@ -1621,7 +1630,7 @@
1621
1630
  public string key;
1622
1631
 
1623
1632
  [NumberDataMember(code = GNParameterCode.StatisticsAggregationMethod, mustInt = true)]
1624
- public long statisticsAggregationMethod;
1633
+ public int statisticsAggregationMethod;
1625
1634
 
1626
1635
  [NumberDataMember(code = GNParameterCode.MaximumValue, isOptional = true, defaultValue = 0)]
1627
1636
  public double? maximumValue;
@@ -2147,6 +2156,25 @@
2147
2156
 
2148
2157
  }
2149
2158
 
2159
+ public class CostResponseData
2160
+ {
2161
+ [NumberDataMember(code = GNParameterCode.RequestCount)]
2162
+ public int requestCount;
2163
+
2164
+ [NumberDataMember(code = GNParameterCode.MatchmakingRequestCount)]
2165
+ public int matchmakingRequestCount;
2166
+
2167
+ [NumberDataMember(code = GNParameterCode.CloudScriptGBs)]
2168
+ public double cloudScriptGBs;
2169
+
2170
+ [NumberDataMember(code = GNParameterCode.StorageSizeInBytes)]
2171
+ public double storageSizeInBytes;
2172
+
2173
+ [NumberDataMember(code = GNParameterCode.DataTransferSizeInBytes)]
2174
+ public long dataTransferSizeInBytes;
2175
+
2176
+ }
2177
+
2150
2178
  public class OperationSystemResponseData
2151
2179
  {
2152
2180
  [NumberDataMember(code = GNParameterCode.CpuUsage)]
@@ -2197,6 +2225,12 @@
2197
2225
  [GNHashtableDataMember(code = GNParameterCode.DatabaseSystem, isOptional = true)]
2198
2226
  public DatabaseSystemResponseData? databaseSystem;
2199
2227
 
2228
+ [GNHashtableDataMember(code = GNParameterCode.Cost, isOptional = true)]
2229
+ public CostResponseData? cost;
2230
+
2231
+ [GNHashtableDataMember(code = GNParameterCode.MonthlyCost, isOptional = true)]
2232
+ public CostResponseData? monthlyCost;
2233
+
2200
2234
  }
2201
2235
 
2202
2236
  public class ChildScriptResponseData
@@ -143,6 +143,9 @@
143
143
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
144
144
  public int? limit;
145
145
 
146
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
147
+ public bool? loadFromCache;
148
+
146
149
  }
147
150
 
148
151
  public class ServerGetFriendStatisticsLeaderboardAroundPlayerRequestData : GetFriendStatisticsLeaderboardAroundPlayerRequestData
@@ -173,6 +176,9 @@
173
176
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
174
177
  public int? limit;
175
178
 
179
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
180
+ public bool? loadFromCache;
181
+
176
182
  }
177
183
 
178
184
  public class ServerGetFriendStatisticsLeaderboardRequestData : GetFriendStatisticsLeaderboardRequestData
@@ -521,6 +527,9 @@
521
527
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
522
528
  public int? limit;
523
529
 
530
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
531
+ public bool? loadFromCache;
532
+
524
533
  }
525
534
 
526
535
  public class ServerGetStatisticsLeaderboardAroundPlayerRequestData : GetStatisticsLeaderboardAroundPlayerRequestData
@@ -686,8 +695,8 @@
686
695
  [StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
687
696
  public string? displayName;
688
697
 
689
- [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, isOptional = true)]
690
- public double? amount;
698
+ [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, mustInt = true, isOptional = true)]
699
+ public int? amount;
691
700
 
692
701
  }
693
702
 
@@ -855,7 +864,7 @@
855
864
  public string? userId;
856
865
 
857
866
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
858
- public long type;
867
+ public int type;
859
868
 
860
869
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
861
870
  public string value;
@@ -945,7 +954,7 @@
945
954
  public string? userId;
946
955
 
947
956
  [NumberDataMember(code = GNParameterCode.TsExpire)]
948
- public double tsExpire;
957
+ public long tsExpire;
949
958
 
950
959
  [StringDataMember(code = GNParameterCode.Reason)]
951
960
  public string reason;
@@ -352,6 +352,12 @@
352
352
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
353
353
  public int? limit;
354
354
 
355
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
356
+ public bool? loadFromCache;
357
+
358
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
359
+ public string? catalogId;
360
+
355
361
  }
356
362
 
357
363
  public class ServerGetStatisticsLeaderboardAroundGroupRequestData : GetStatisticsLeaderboardAroundGroupRequestData
@@ -382,6 +388,9 @@
382
388
  [StringDataMember(code = GNParameterCode.Version, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
383
389
  public string? version;
384
390
 
391
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
392
+ public string? catalogId;
393
+
385
394
  }
386
395
 
387
396
  public class ServerGetStatisticsLeaderboardRequestData : GetStatisticsLeaderboardRequestData
@@ -439,8 +448,8 @@
439
448
  [StringDataMember(code = GNParameterCode.DisplayName, defaultValue = "", isOptional = true)]
440
449
  public string? displayName;
441
450
 
442
- [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, isOptional = true)]
443
- public double? amount;
451
+ [NumberDataMember(code = GNParameterCode.Amount, defaultValue = 1, mustInt = true, isOptional = true)]
452
+ public int? amount;
444
453
 
445
454
  }
446
455
 
@@ -551,7 +560,7 @@
551
560
  public string groupId;
552
561
 
553
562
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
554
- public long type;
563
+ public int type;
555
564
 
556
565
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
557
566
  public string value;
@@ -1039,6 +1048,9 @@
1039
1048
  [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
1040
1049
  public bool? loadFromCache;
1041
1050
 
1051
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
1052
+ public string? catalogId;
1053
+
1042
1054
  }
1043
1055
 
1044
1056
  public class ServerGetCurrencyLeaderboardRequestData : GetCurrencyLeaderboardRequestData
@@ -322,6 +322,12 @@
322
322
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
323
323
  public int? limit;
324
324
 
325
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
326
+ public bool? loadFromCache;
327
+
328
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
329
+ public string? catalogId;
330
+
325
331
  }
326
332
 
327
333
  public class ServerGetStatisticsLeaderboardAroundItemRequestData : GetStatisticsLeaderboardAroundItemRequestData
@@ -352,6 +358,9 @@
352
358
  [StringDataMember(code = GNParameterCode.Version, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
353
359
  public string? version;
354
360
 
361
+ [StringDataMember(code = GNParameterCode.CatalogId, minLength = 2, maxLength = 32, mustNonNull = true, isOptional = true)]
362
+ public string? catalogId;
363
+
355
364
  }
356
365
 
357
366
  public class ServerGetStatisticsLeaderboardRequestData : GetStatisticsLeaderboardRequestData
@@ -455,7 +464,7 @@
455
464
  public string itemId;
456
465
 
457
466
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
458
- public long type;
467
+ public int type;
459
468
 
460
469
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
461
470
  public string value;
@@ -554,7 +563,7 @@
554
563
  public string newOwnerId;
555
564
 
556
565
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
557
- public long newOwnerType;
566
+ public int newOwnerType;
558
567
 
559
568
  }
560
569
 
@@ -492,6 +492,9 @@
492
492
  [NumberDataMember(code = GNParameterCode.Limit, defaultValue = 10, minValue = 5, maxValue = 100, mustInt = true, isOptional = true)]
493
493
  public int? limit;
494
494
 
495
+ [BooleanDataMember(code = GNParameterCode.LoadFromCache, defaultValue = true, isOptional = true)]
496
+ public bool? loadFromCache;
497
+
495
498
  }
496
499
 
497
500
  public class ServerGetStatisticsLeaderboardAroundPlayerRequestData : GetStatisticsLeaderboardAroundPlayerRequestData
@@ -1069,7 +1072,7 @@
1069
1072
  public string? userId;
1070
1073
 
1071
1074
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
1072
- public long type;
1075
+ public int type;
1073
1076
 
1074
1077
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
1075
1078
  public string value;
@@ -1180,7 +1183,7 @@
1180
1183
  public string? userId;
1181
1184
 
1182
1185
  [NumberDataMember(code = GNParameterCode.TsExpire)]
1183
- public double tsExpire;
1186
+ public long tsExpire;
1184
1187
 
1185
1188
  [StringDataMember(code = GNParameterCode.Reason)]
1186
1189
  public string reason;
@@ -333,7 +333,7 @@
333
333
  public List<MatchMember>? members;
334
334
 
335
335
  [NumberDataMember(code = GNParameterCode.TimeToMatchInSeconds)]
336
- public long timeToMatchInSeconds;
336
+ public float timeToMatchInSeconds;
337
337
 
338
338
  }
339
339
 
@@ -14,7 +14,7 @@
14
14
  public string id;
15
15
 
16
16
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
17
- public long type;
17
+ public int type;
18
18
 
19
19
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
20
20
  public string? log;
@@ -38,7 +38,7 @@
38
38
  public string id;
39
39
 
40
40
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
41
- public long type;
41
+ public int type;
42
42
 
43
43
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
44
44
  public string? log;
@@ -209,7 +209,7 @@
209
209
  public string id;
210
210
 
211
211
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
212
- public long type;
212
+ public int type;
213
213
 
214
214
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
215
215
  public string? log;
@@ -233,7 +233,7 @@
233
233
  public string id;
234
234
 
235
235
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
236
- public long type;
236
+ public int type;
237
237
 
238
238
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
239
239
  public string? log;
@@ -257,7 +257,7 @@
257
257
  public string id;
258
258
 
259
259
  [NumberDataMember(code = GNParameterCode.OwnerType, mustInt = true)]
260
- public long type;
260
+ public int type;
261
261
 
262
262
  [StringDataMember(code = GNParameterCode.Log, minLength = 1, maxLength = 256, mustNonNull = true, isOptional = true)]
263
263
  public string? log;
@@ -303,7 +303,7 @@
303
303
  public class AvatarParam
304
304
  {
305
305
  [NumberDataMember(code = GNParameterCode.Type, mustInt = true)]
306
- public long type;
306
+ public int type;
307
307
 
308
308
  [StringDataMember(code = GNParameterCode.Value, minLength = 1, maxLength = 128, mustNonNull = true)]
309
309
  public string value;
@@ -15,7 +15,7 @@
15
15
  public class HttpAppResponse
16
16
  {
17
17
  /// <summary>Gets or sets the HTTP status code.</summary>
18
- public long statusCode { get; internal set; }
18
+ public int statusCode { get; internal set; }
19
19
 
20
20
  /// <summary>Gets or sets the error message, if any.</summary>
21
21
  public string error { get; internal set; }
@@ -90,7 +90,7 @@ namespace XmobiTea.GN.Networking.Http
90
90
 
91
91
  var httpAppResponse = new HttpAppResponse
92
92
  {
93
- statusCode = unityWebRequest.responseCode
93
+ statusCode = (int)unityWebRequest.responseCode
94
94
  };
95
95
 
96
96
  if (unityWebRequest.result == UnityWebRequest.Result.ConnectionError ||
@@ -149,7 +149,7 @@ namespace XmobiTea.GN.Networking.Http
149
149
 
150
150
  var httpAppResponse = new HttpAppResponse
151
151
  {
152
- statusCode = unityWebRequest.responseCode
152
+ statusCode = (int)unityWebRequest.responseCode
153
153
  };
154
154
 
155
155
  if (unityWebRequest.result == UnityWebRequest.Result.ConnectionError ||
@@ -192,7 +192,7 @@ namespace XmobiTea.GN.Networking.Http
192
192
 
193
193
  var httpAppResponse = new HttpAppResponse
194
194
  {
195
- statusCode = unityWebRequest.responseCode
195
+ statusCode = (int)unityWebRequest.responseCode
196
196
  };
197
197
 
198
198
  if (unityWebRequest.result == UnityWebRequest.Result.ConnectionError ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.xmobitea.changx.gn-unity",
3
- "version": "2.4.12",
3
+ "version": "2.4.13",
4
4
  "displayName": "XmobiTea GN Unity",
5
5
  "description": "XmobiTea Unity packages",
6
6
  "unity": "2020.3",