主题
GameCore.ProtocolClientTransient
IProtocolClientTransient 双端
命名空间 GameCore.ProtocolClientTransient
csharp
public interface IProtocolClientTransient<TSelf> : IBytesReplicableUnmanaged<TSelf>, IBytesReplicable<TSelf>, IProtocolClientTransient, IGameClass where TSelf : unmanaged, IProtocolClientTransient<TSelf>属性
TypeHash 双端
csharp
static int TypeHash { get; }方法
Handle 仅服务端
csharp
static void Handle(Player player, ReadOnlySpan<byte> bytes)ProtoClientCommand 双端
命名空间 GameCore.ProtocolClientTransient
csharp
public struct ProtoClientCommand : IProtocolClientTransient<ProtoClientCommand>, IBytesReplicableUnmanaged<ProtoClientCommand>, IBytesReplicable<ProtoClientCommand>, IProtocolClientTransient, IGameClass构造函数
ProtoClientCommand 双端
csharp
public ProtoClientCommand(Entity caster, Command command)属性
ProtoEntity 双端
csharp
public ProtoEntity ProtoEntity { get; set; }AbilityLink 双端
csharp
public ProtoIGameLink<GameDataAbility>? AbilityLink { get; set; }Index 双端
csharp
public ProtoIExtendableEnum<CommandIndex> Index { get; set; }Type 双端
csharp
public ProtoIExtendableEnum<ComponentTag> Type { get; set; }Flag 双端
csharp
public CommandFlag Flag { get; set; }Target 双端
csharp
public ProtoEntityOrScenePointOrAngleOrItemOrInventorySlot? Target { get; set; }Item 双端
csharp
public ProtoItem? Item { get; set; }方法
Handle 仅服务端
csharp
public void Handle(Player player)ProtoClientEventKey 双端
命名空间 GameCore.ProtocolClientTransient
csharp
public readonly struct ProtoClientEventKey : IProtocolClientTransient<ProtoClientEventKey>, IBytesReplicableUnmanaged<ProtoClientEventKey>, IBytesReplicable<ProtoClientEventKey>, IProtocolClientTransient, IGameClass属性
Modifiers 双端
csharp
public required GameCore.Platform.Urho.VirtualKeyModifiers Modifiers { get; init; }The virtual key modifiers, such as Shift, Ctrl, or Alt, that were pressed when the event occurred.
PointerButtons 双端
csharp
public required PointerButtons PointerButtons { get; init; }The pointer buttons that were pressed when the event occurred. For mouse events, this indicates which mouse buttons were pressed. For finger events, differentiate between fingers by using the touching ID.
Key 双端
csharp
public required VirtualKey Key { get; init; }The virtual key that triggered the event.
IsRepeat 双端
csharp
public required bool IsRepeat { get; init; }Indicates whether the event was triggered by a key long press.
IsKeyDown 双端
csharp
public bool IsKeyDown { get; init; }方法
Handle 仅服务端
csharp
public void Handle(Player player)ProtocolClientTransientExtension 仅客户端
命名空间 GameCore.ProtocolClientTransient
csharp
public static class ProtocolClientTransientExtension方法
SendToServer 仅客户端
csharp
public static bool SendToServer<TSelf>(this ref TSelf self) where TSelf : unmanaged, IProtocolClientTransient<TSelf>