From 89343a7a0909e5244a3b69c4db1294de4536243b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 18:15:22 +0800
Subject: [PATCH] 262 幻境阁系统-客户端 新增仅适用武将解锁的头像和形象的红点移除规则
---
Main/Core/NetworkPackage/GameNetPackBasic.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/Main/Core/NetworkPackage/GameNetPackBasic.cs b/Main/Core/NetworkPackage/GameNetPackBasic.cs
index 92e3ee2..77914ab 100644
--- a/Main/Core/NetworkPackage/GameNetPackBasic.cs
+++ b/Main/Core/NetworkPackage/GameNetPackBasic.cs
@@ -8,6 +8,33 @@
public class GameNetPackBasic
{
+ static ulong AutoIncreaseUID = 0;
+
+ public ulong mPackUID;
+
+ public ulong packUID
+ {
+ get
+ {
+ return mPackUID;
+ }
+ private set
+ {
+ mPackUID = value;
+ }
+ }
+
+ public bool commonMark
+ {
+ get;
+ set;
+ } = false;
+
+ public GameNetPackBasic()
+ {
+ packUID = AutoIncreaseUID++;
+ }
+
public ServerType socketType = ServerType.Main; //榛樿涓斿敮涓�
/** 鍗忚鍙� */
@@ -935,6 +962,10 @@
{
try
{
+ if (vInts.IsNullOrEmpty())
+ {
+ return;
+ }
if (vInts.Length != vLockLeng)
Array.Resize(ref vInts, vLockLeng);
this.WriteBytes(vInts, vType);
@@ -951,6 +982,10 @@
{
try
{
+ if (vInts.IsNullOrEmpty())
+ {
+ return;
+ }
if (vInts.Length != vLockLeng)
Array.Resize(ref vInts, vLockLeng);
this.WriteBytes(vInts, vType);
@@ -966,6 +1001,10 @@
{
try
{
+ if (vInts.IsNullOrEmpty())
+ {
+ return;
+ }
if (vWriteLen == StrWriteLen.BYTE)
this.WriteBytes(new Byte[] { (byte)vInts.Length });
else if (vWriteLen == StrWriteLen.WORD)
@@ -985,6 +1024,10 @@
{
try
{
+ if (vInts.IsNullOrEmpty())
+ {
+ return;
+ }
int l = vInts.Length;
byte[] vRst;
int i;
@@ -1024,6 +1067,10 @@
{
try
{
+ if (vInts.IsNullOrEmpty())
+ {
+ return;
+ }
int l = vInts.Length;
byte[] vRst;
int i;
@@ -1120,6 +1167,11 @@
{
try
{
+ if (vBytes.IsNullOrEmpty())
+ {
+ return;
+ }
+
Array.Resize(ref _writedBytes, _writeIndex + vBytes.Length);
vBytes.CopyTo(_writedBytes, _writeIndex);
_writeIndex = _writedBytes.Length;
--
Gitblit v1.8.0