Files
hjha-server/ServerCore/Message/PlayerShowAwardRPCMessage.cs
xiaoou e9616125ce feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) +
game logic (GameFix/GameDAL/ServerData) +
network layer (NetWorkMessage) +
data layer (ObjectModel) +
utilities (MrWu/Core/Config/CloudAPI/dll) +
adapters (zyxAdapter/base)

.NET 8.0 C# solution, 16 projects, 958 source files
2026-07-07 12:02:15 +08:00

45 lines
1.4 KiB
C#

using System.Collections.Generic;
using GameMessage;
using Server.Core;
using MessagePack;
namespace NetWorkMessage
{
[Server.Core.Message(MessageOpcode.PlayerShowAwardRPCRequest)]
[ResponseType(typeof(PlayerShowAwardRPCResponse))]
[MessagePackObject]
public class PlayerShowAwardRPCRequest : MessageObject,IRequest
{
[Key(0)]public uint RpcId { get; set; }
/// <summary>
/// 变更得用户Id
/// </summary>
[Key(1)]public int UserId { get; set; }
/// <summary>
/// 所需要变更得资产
/// </summary>
[Key(2)]public List<PlayerPropertyPack> PropertyList { get; set; }
/// <summary>
/// 变更客户端展示类型
/// </summary>
[Key(3)]public PlayerPropertyNotifyUIType NotifyType { get; set; } = PlayerPropertyNotifyUIType.None;
public static PlayerShowAwardRPCRequest Create()
{
PlayerShowAwardRPCRequest request = ReferencePool.Fetch<PlayerShowAwardRPCRequest>();
return request;
}
}
[Server.Core.Message(MessageOpcode.PlayerShowAwardRPCResponse)]
[MessagePackObject]
public class PlayerShowAwardRPCResponse : MessageObject, IResponse
{
[Key(0)]public int Error { get; set; }
[Key(1)]public string Message { get; set; }
[Key(2)]public uint RpcId { get; set; }
}
}