主题
GameCore.Protocol
IBytesReplicable 双端
命名空间 GameCore.Protocol
csharp
public interface IBytesReplicable<TSelf> where TSelf : IBytesReplicable<TSelf>方法
ReplicateFromBytes 双端
csharp
static abstract bool ReplicateFromBytes(ReadOnlySpan<byte> bytes, out TSelf self)ToBytes 双端
csharp
bool ToBytes(out ReadOnlySpan<byte> bytes)May cause allocation. Use AsBytes() for performance.
bytes—
返回:
IBytesReplicableUnmanaged 双端
命名空间 GameCore.Protocol
csharp
public interface IBytesReplicableUnmanaged<TSelf> : IBytesReplicable<TSelf> where TSelf : unmanaged, IBytesReplicableUnmanaged<TSelf>方法
ReplicateFromDouble 双端
csharp
static bool ReplicateFromDouble(double value, out TSelf self)ReplicateFromBytes 双端
csharp
new static bool ReplicateFromBytes(ReadOnlySpan<byte> bytes, out TSelf self)ProtoAbility 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoAbility : IBytesReplicableUnmanaged<ProtoAbility>, IBytesReplicable<ProtoAbility>构造函数
ProtoAbility 双端
csharp
public ProtoAbility(Ability ability)属性
ProtoEntity 双端
csharp
public required ProtoEntity ProtoEntity { get; init; }AbilityId 双端
csharp
public required int AbilityId { get; init; }Ability 双端
csharp
public Ability? Ability { get; }方法
implicit operator 双端
csharp
public static ProtoAbility implicit operator(Ability ability)ProtoActorScope 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoActorScope : IBytesReplicableUnmanaged<ProtoActorScope>, IBytesReplicable<ProtoActorScope>构造函数
ProtoActorScope 双端
csharp
public ProtoActorScope(IActorScope scope)属性
ActorScopeId 双端
csharp
public required int ActorScopeId { get; init; }ActorScope 仅客户端
csharp
public IActorScope? ActorScope { get; }ProtoCooldown 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoCooldown : IBytesReplicableUnmanaged<ProtoCooldown>, IBytesReplicable<ProtoCooldown>构造函数
ProtoCooldown 双端
csharp
public ProtoCooldown(Cooldown Cooldown)属性
ProtoICooldownHost 双端
csharp
public required ProtoICooldownHost ProtoICooldownHost { get; init; }CooldownId 双端
csharp
public required int CooldownId { get; init; }Cooldown 双端
csharp
public Cooldown? Cooldown { get; }方法
implicit operator 双端
csharp
public static ProtoCooldown implicit operator(Cooldown Cooldown)ProtoEntity 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoEntity : IBytesReplicableUnmanaged<ProtoEntity>, IBytesReplicable<ProtoEntity>构造函数
ProtoEntity 双端
csharp
public ProtoEntity(Entity entity)属性
EntityId 双端
csharp
public required int EntityId { get; init; }Entity 双端
csharp
public Entity? Entity { get; }方法
implicit operator 双端
csharp
public static ProtoEntity implicit operator(Entity entity)implicit operator 双端
csharp
public static Entity? implicit operator(ProtoEntity protoEntity)ProtoEntityOrScenePoint 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoEntityOrScenePoint : IBytesReplicableUnmanaged<ProtoEntityOrScenePoint>, IBytesReplicable<ProtoEntityOrScenePoint>构造函数
ProtoEntityOrScenePoint 双端
csharp
public ProtoEntityOrScenePoint(ITarget target)属性
ProtoEntity 双端
csharp
public required ProtoEntity? ProtoEntity { get; init; }ProtoScenePoint 双端
csharp
public ProtoScenePoint ProtoScenePoint { get; init; }Target 双端
csharp
public ITarget? Target { get; }ProtoEntityOrScenePointOrAngleOrItemOrInventorySlot 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoEntityOrScenePointOrAngleOrItemOrInventorySlot构造函数
ProtoEntityOrScenePointOrAngleOrItemOrInventorySlot 双端
csharp
public ProtoEntityOrScenePointOrAngleOrItemOrInventorySlot(ICommandTarget target)属性
CommandTarget 双端
csharp
public ICommandTarget? CommandTarget { get; }ProtoIAttachedObject 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoIAttachedObject : IBytesReplicableUnmanaged<ProtoIAttachedObject>, IBytesReplicable<ProtoIAttachedObject>构造函数
ProtoIAttachedObject 双端
csharp
public ProtoIAttachedObject(IAttachedObject attached)属性
ProtoHost 双端
csharp
public required ProtoICooldownHost ProtoHost { get; init; }AttachedId 双端
csharp
public required int AttachedId { get; init; }Attached 双端
csharp
public IAttachedObject? Attached { get; }ProtoICooldownHost 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoICooldownHost : IBytesReplicableUnmanaged<ProtoICooldownHost>, IBytesReplicable<ProtoICooldownHost>构造函数
ProtoICooldownHost 双端
csharp
public ProtoICooldownHost(ICooldownHost host)属性
HostId 双端
csharp
public required int HostId { get; init; }Host 双端
csharp
public ICooldownHost? Host { get; }ProtoIExtendableEnum 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoIExtendableEnum<TSelf> : IBytesReplicableUnmanaged<ProtoIExtendableEnum<TSelf>>, IBytesReplicable<ProtoIExtendableEnum<TSelf>> where TSelf : IExtendableEnum<TSelf>构造函数
ProtoIExtendableEnum 双端
csharp
public ProtoIExtendableEnum(TSelf extendable)属性
EnumHash 双端
csharp
public required int EnumHash { get; init; }ExtendableEnum 双端
csharp
public TSelf? ExtendableEnum { get; }ProtoIExtendedEnum 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoIExtendedEnum : IBytesReplicableUnmanaged<ProtoIExtendedEnum>, IBytesReplicable<ProtoIExtendedEnum>构造函数
ProtoIExtendedEnum 双端
csharp
public ProtoIExtendedEnum(IExtendedEnum extendable)属性
EnumHash 双端
csharp
public required int EnumHash { get; init; }ExtendedEnum 双端
csharp
public IExtendedEnum? ExtendedEnum { get; }ProtoIGameLink 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoIGameLink<TGameData> : IBytesReplicableUnmanaged<ProtoIGameLink<TGameData>>, IBytesReplicable<ProtoIGameLink<TGameData>> where TGameData : IGameData<TGameData>构造函数
ProtoIGameLink 双端
csharp
public ProtoIGameLink(IGameLink<TGameData> gameLink)属性
LinkHash 双端
csharp
public required int LinkHash { get; init; }LinkHashLocal 双端
csharp
public int LinkHashLocal { get; }GameLink 双端
csharp
public IGameLink<TGameData>? GameLink { get; }ProtoInventory 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoInventory : IBytesReplicableUnmanaged<ProtoItem>, IBytesReplicable<ProtoItem>构造函数
ProtoInventory 双端
csharp
public ProtoInventory(Inventory inventory)属性
ProtoHost 双端
csharp
public required ProtoICooldownHost ProtoHost { get; init; }InventoryId 双端
csharp
public required int InventoryId { get; init; }Inventory 双端
csharp
public Inventory? Inventory { get; }ProtoInventorySlot 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoInventorySlot : IBytesReplicableUnmanaged<ProtoItem>, IBytesReplicable<ProtoItem>构造函数
ProtoInventorySlot 双端
csharp
public ProtoInventorySlot(InventorySlot inventorySlot)属性
ProtoInventory 双端
csharp
public required ProtoInventory ProtoInventory { get; init; }SlotIndex 双端
csharp
public required int SlotIndex { get; init; }InventorySlot 双端
csharp
public InventorySlot? InventorySlot { get; }方法
implicit operator 双端
csharp
public static ProtoInventorySlot implicit operator(InventorySlot inventorySlot)implicit operator 双端
csharp
public static InventorySlot? implicit operator(ProtoInventorySlot protoInventorySlot)ProtoItem 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoItem : IBytesReplicableUnmanaged<ProtoItem>, IBytesReplicable<ProtoItem>构造函数
ProtoItem 双端
csharp
public ProtoItem(Item Item)属性
ItemId 双端
csharp
public required int ItemId { get; init; }Item 双端
csharp
public Item? Item { get; }方法
implicit operator 双端
csharp
public static ProtoItem implicit operator(Item Item)implicit operator 双端
csharp
public static Item? implicit operator(ProtoItem ProtoItem)ProtoPlayer 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoPlayer : IBytesReplicableUnmanaged<ProtoPlayer>, IBytesReplicable<ProtoPlayer>属性
PlayerId 双端
csharp
public required int PlayerId { get; init; }Player 双端
csharp
public Player? Player { get; }方法
implicit operator 双端
csharp
public static ProtoPlayer implicit operator(Player player)implicit operator 双端
csharp
public static Player? implicit operator(ProtoPlayer protoPlayer)ProtoScene 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoScene : IBytesReplicableUnmanaged<ProtoScene>, IBytesReplicable<ProtoScene>属性
SceneId 双端
csharp
public required int SceneId { get; init; }Scene 双端
csharp
public Scene Scene { get; }方法
implicit operator 双端
csharp
public static ProtoScene implicit operator(Scene scene)implicit operator 双端
csharp
public static Scene implicit operator(ProtoScene protoScene)ProtoScenePoint 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoScenePoint : IBytesReplicableUnmanaged<ProtoScenePoint>, IBytesReplicable<ProtoScenePoint>属性
Scene 双端
csharp
public required ProtoScene Scene { get; init; }Vector 双端
csharp
public required Vector2 Vector { get; init; }ScenePoint 双端
csharp
public ScenePoint ScenePoint { get; }方法
implicit operator 双端
csharp
public static ScenePoint implicit operator(ProtoScenePoint protoScenePoint)implicit operator 双端
csharp
public static ProtoScenePoint implicit operator(ScenePoint scenePoint)ProtoType 双端
命名空间 GameCore.Protocol
csharp
public readonly struct ProtoType : IBytesReplicableUnmanaged<ProtoType>, IBytesReplicable<ProtoType>属性
Hash 双端
csharp
public required int Hash { get; init; }