Documentation ¶
Index ¶
- type MockICommandFramework
- type MockIGame
- func (_m *MockIGame) BroadcastMessage(msg string)
- func (_m *MockIGame) BroadcastPacket(packet []byte)
- func (_m *MockIGame) EXPECT() *_MockIGameRecorder
- func (_m *MockIGame) ItemTypeById(id int) (ItemType, bool)
- func (_m *MockIGame) PlayerByEntityId(id EntityId) IPlayerClient
- func (_m *MockIGame) PlayerByName(name string) IPlayerClient
- type MockIPlayerClient
- func (_m *MockIPlayerClient) EXPECT() *_MockIPlayerClientRecorder
- func (_m *MockIPlayerClient) EchoMessage(msg string)
- func (_m *MockIPlayerClient) GetEntityId() EntityId
- func (_m *MockIPlayerClient) GiveItem(item Slot)
- func (_m *MockIPlayerClient) GiveItemAtPosition(atPosition AbsXyz, item Slot)
- func (_m *MockIPlayerClient) InventoryCursorUpdate(block BlockXyz, cursor Slot)
- func (_m *MockIPlayerClient) InventoryProgressUpdate(block BlockXyz, prgBarId PrgBarId, value PrgBarValue)
- func (_m *MockIPlayerClient) InventorySlotUpdate(block BlockXyz, slot Slot, slotId SlotId)
- func (_m *MockIPlayerClient) InventorySubscribed(block BlockXyz, invTypeId InvTypeId, slots []proto.WindowSlot)
- func (_m *MockIPlayerClient) InventoryTxState(block BlockXyz, txId TxId, accepted bool)
- func (_m *MockIPlayerClient) InventoryUnsubscribed(block BlockXyz)
- func (_m *MockIPlayerClient) NotifyChunkLoad()
- func (_m *MockIPlayerClient) OfferItem(fromChunk ChunkXz, entityId EntityId, item Slot)
- func (_m *MockIPlayerClient) PlaceHeldItem(target BlockXyz, wasHeld Slot)
- func (_m *MockIPlayerClient) PositionLook() (AbsXyz, LookDegrees)
- func (_m *MockIPlayerClient) SetPositionLook(_param0 AbsXyz, _param1 LookDegrees)
- func (_m *MockIPlayerClient) TransmitPacket(packet []byte)
- type MockIPlayerShardClient
- func (_m *MockIPlayerShardClient) Disconnect()
- func (_m *MockIPlayerShardClient) EXPECT() *_MockIPlayerShardClientRecorder
- func (_m *MockIPlayerShardClient) ReqAddPlayerData(chunkLoc ChunkXz, name string, position AbsXyz, look LookBytes, ...)
- func (_m *MockIPlayerShardClient) ReqDropItem(content Slot, position AbsXyz, velocity AbsVelocity, pickupImmunity Ticks)
- func (_m *MockIPlayerShardClient) ReqHitBlock(held Slot, target BlockXyz, digStatus DigStatus, face Face)
- func (_m *MockIPlayerShardClient) ReqInteractBlock(held Slot, target BlockXyz, face Face)
- func (_m *MockIPlayerShardClient) ReqInventoryClick(block BlockXyz, click Click)
- func (_m *MockIPlayerShardClient) ReqInventoryUnsubscribed(block BlockXyz)
- func (_m *MockIPlayerShardClient) ReqMulticastPlayers(chunkLoc ChunkXz, exclude EntityId, packet []byte)
- func (_m *MockIPlayerShardClient) ReqPlaceItem(target BlockXyz, slot Slot)
- func (_m *MockIPlayerShardClient) ReqRemovePlayerData(chunkLoc ChunkXz, isDisconnect bool)
- func (_m *MockIPlayerShardClient) ReqSetPlayerLook(chunkLoc ChunkXz, look LookBytes)
- func (_m *MockIPlayerShardClient) ReqSetPlayerPosition(chunkLoc ChunkXz, position AbsXyz)
- func (_m *MockIPlayerShardClient) ReqSubscribeChunk(chunkLoc ChunkXz, notify bool)
- func (_m *MockIPlayerShardClient) ReqTakeItem(chunkLoc ChunkXz, entityId EntityId)
- func (_m *MockIPlayerShardClient) ReqUnsubscribeChunk(chunkLoc ChunkXz)
- type MockIShardConnecter
- type MockIShardShardClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockICommandFramework ¶
type MockICommandFramework struct {
// contains filtered or unexported fields
}
Mock of ICommandFramework interface
func NewMockICommandFramework ¶
func NewMockICommandFramework(ctrl *gomock.Controller) *MockICommandFramework
func (*MockICommandFramework) EXPECT ¶
func (_m *MockICommandFramework) EXPECT() *_MockICommandFrameworkRecorder
func (*MockICommandFramework) Prefix ¶
func (_m *MockICommandFramework) Prefix() string
func (*MockICommandFramework) Process ¶
func (_m *MockICommandFramework) Process(player IPlayerClient, cmd string, game IGame)
type MockIGame ¶
type MockIGame struct {
// contains filtered or unexported fields
}
Mock of IGame interface
func NewMockIGame ¶
func NewMockIGame(ctrl *gomock.Controller) *MockIGame
func (*MockIGame) BroadcastMessage ¶
func (*MockIGame) BroadcastPacket ¶
func (*MockIGame) ItemTypeById ¶
func (*MockIGame) PlayerByEntityId ¶
func (_m *MockIGame) PlayerByEntityId(id EntityId) IPlayerClient
func (*MockIGame) PlayerByName ¶
type MockIPlayerClient ¶
type MockIPlayerClient struct {
// contains filtered or unexported fields
}
Mock of IPlayerClient interface
func NewMockIPlayerClient ¶
func NewMockIPlayerClient(ctrl *gomock.Controller) *MockIPlayerClient
func (*MockIPlayerClient) EXPECT ¶
func (_m *MockIPlayerClient) EXPECT() *_MockIPlayerClientRecorder
func (*MockIPlayerClient) EchoMessage ¶
func (_m *MockIPlayerClient) EchoMessage(msg string)
func (*MockIPlayerClient) GetEntityId ¶
func (_m *MockIPlayerClient) GetEntityId() EntityId
func (*MockIPlayerClient) GiveItem ¶
func (_m *MockIPlayerClient) GiveItem(item Slot)
func (*MockIPlayerClient) GiveItemAtPosition ¶
func (_m *MockIPlayerClient) GiveItemAtPosition(atPosition AbsXyz, item Slot)
func (*MockIPlayerClient) InventoryCursorUpdate ¶
func (_m *MockIPlayerClient) InventoryCursorUpdate(block BlockXyz, cursor Slot)
func (*MockIPlayerClient) InventoryProgressUpdate ¶
func (_m *MockIPlayerClient) InventoryProgressUpdate(block BlockXyz, prgBarId PrgBarId, value PrgBarValue)
func (*MockIPlayerClient) InventorySlotUpdate ¶
func (_m *MockIPlayerClient) InventorySlotUpdate(block BlockXyz, slot Slot, slotId SlotId)
func (*MockIPlayerClient) InventorySubscribed ¶
func (_m *MockIPlayerClient) InventorySubscribed(block BlockXyz, invTypeId InvTypeId, slots []proto.WindowSlot)
func (*MockIPlayerClient) InventoryTxState ¶
func (_m *MockIPlayerClient) InventoryTxState(block BlockXyz, txId TxId, accepted bool)
func (*MockIPlayerClient) InventoryUnsubscribed ¶
func (_m *MockIPlayerClient) InventoryUnsubscribed(block BlockXyz)
func (*MockIPlayerClient) NotifyChunkLoad ¶
func (_m *MockIPlayerClient) NotifyChunkLoad()
func (*MockIPlayerClient) OfferItem ¶
func (_m *MockIPlayerClient) OfferItem(fromChunk ChunkXz, entityId EntityId, item Slot)
func (*MockIPlayerClient) PlaceHeldItem ¶
func (_m *MockIPlayerClient) PlaceHeldItem(target BlockXyz, wasHeld Slot)
func (*MockIPlayerClient) PositionLook ¶
func (_m *MockIPlayerClient) PositionLook() (AbsXyz, LookDegrees)
func (*MockIPlayerClient) SetPositionLook ¶
func (_m *MockIPlayerClient) SetPositionLook(_param0 AbsXyz, _param1 LookDegrees)
func (*MockIPlayerClient) TransmitPacket ¶
func (_m *MockIPlayerClient) TransmitPacket(packet []byte)
type MockIPlayerShardClient ¶
type MockIPlayerShardClient struct {
// contains filtered or unexported fields
}
Mock of IPlayerShardClient interface
func NewMockIPlayerShardClient ¶
func NewMockIPlayerShardClient(ctrl *gomock.Controller) *MockIPlayerShardClient
func (*MockIPlayerShardClient) Disconnect ¶
func (_m *MockIPlayerShardClient) Disconnect()
func (*MockIPlayerShardClient) EXPECT ¶
func (_m *MockIPlayerShardClient) EXPECT() *_MockIPlayerShardClientRecorder
func (*MockIPlayerShardClient) ReqAddPlayerData ¶
func (_m *MockIPlayerShardClient) ReqAddPlayerData(chunkLoc ChunkXz, name string, position AbsXyz, look LookBytes, held ItemTypeId)
func (*MockIPlayerShardClient) ReqDropItem ¶
func (_m *MockIPlayerShardClient) ReqDropItem(content Slot, position AbsXyz, velocity AbsVelocity, pickupImmunity Ticks)
func (*MockIPlayerShardClient) ReqHitBlock ¶
func (_m *MockIPlayerShardClient) ReqHitBlock(held Slot, target BlockXyz, digStatus DigStatus, face Face)
func (*MockIPlayerShardClient) ReqInteractBlock ¶
func (_m *MockIPlayerShardClient) ReqInteractBlock(held Slot, target BlockXyz, face Face)
func (*MockIPlayerShardClient) ReqInventoryClick ¶
func (_m *MockIPlayerShardClient) ReqInventoryClick(block BlockXyz, click Click)
func (*MockIPlayerShardClient) ReqInventoryUnsubscribed ¶
func (_m *MockIPlayerShardClient) ReqInventoryUnsubscribed(block BlockXyz)
func (*MockIPlayerShardClient) ReqMulticastPlayers ¶
func (_m *MockIPlayerShardClient) ReqMulticastPlayers(chunkLoc ChunkXz, exclude EntityId, packet []byte)
func (*MockIPlayerShardClient) ReqPlaceItem ¶
func (_m *MockIPlayerShardClient) ReqPlaceItem(target BlockXyz, slot Slot)
func (*MockIPlayerShardClient) ReqRemovePlayerData ¶
func (_m *MockIPlayerShardClient) ReqRemovePlayerData(chunkLoc ChunkXz, isDisconnect bool)
func (*MockIPlayerShardClient) ReqSetPlayerLook ¶
func (_m *MockIPlayerShardClient) ReqSetPlayerLook(chunkLoc ChunkXz, look LookBytes)
func (*MockIPlayerShardClient) ReqSetPlayerPosition ¶
func (_m *MockIPlayerShardClient) ReqSetPlayerPosition(chunkLoc ChunkXz, position AbsXyz)
func (*MockIPlayerShardClient) ReqSubscribeChunk ¶
func (_m *MockIPlayerShardClient) ReqSubscribeChunk(chunkLoc ChunkXz, notify bool)
func (*MockIPlayerShardClient) ReqTakeItem ¶
func (_m *MockIPlayerShardClient) ReqTakeItem(chunkLoc ChunkXz, entityId EntityId)
func (*MockIPlayerShardClient) ReqUnsubscribeChunk ¶
func (_m *MockIPlayerShardClient) ReqUnsubscribeChunk(chunkLoc ChunkXz)
type MockIShardConnecter ¶
type MockIShardConnecter struct {
// contains filtered or unexported fields
}
Mock of IShardConnecter interface
func NewMockIShardConnecter ¶
func NewMockIShardConnecter(ctrl *gomock.Controller) *MockIShardConnecter
func (*MockIShardConnecter) EXPECT ¶
func (_m *MockIShardConnecter) EXPECT() *_MockIShardConnecterRecorder
func (*MockIShardConnecter) PlayerShardConnect ¶
func (_m *MockIShardConnecter) PlayerShardConnect(entityId EntityId, player IPlayerClient, shardLoc ShardXz) IPlayerShardClient
func (*MockIShardConnecter) ShardShardConnect ¶
func (_m *MockIShardConnecter) ShardShardConnect(shardLoc ShardXz) IShardShardClient
type MockIShardShardClient ¶
type MockIShardShardClient struct {
// contains filtered or unexported fields
}
Mock of IShardShardClient interface
func NewMockIShardShardClient ¶
func NewMockIShardShardClient(ctrl *gomock.Controller) *MockIShardShardClient
func (*MockIShardShardClient) Disconnect ¶
func (_m *MockIShardShardClient) Disconnect()
func (*MockIShardShardClient) EXPECT ¶
func (_m *MockIShardShardClient) EXPECT() *_MockIShardShardClientRecorder
func (*MockIShardShardClient) ReqSetActiveBlocks ¶
func (_m *MockIShardShardClient) ReqSetActiveBlocks(blocks []BlockXyz)
func (*MockIShardShardClient) ReqTransferEntity ¶
func (_m *MockIShardShardClient) ReqTransferEntity(loc ChunkXz, entity INonPlayerEntity)
Click to show internal directories.
Click to hide internal directories.