msg

package
v0.0.0-...-d1c6960 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePlayerMsg

type CreatePlayerMsg struct {
	PlayersName string `json:"PlayerName"` // Name of the player, can be the username.
}

type CreatePlayerReply

type CreatePlayerReply struct {
	Success        bool           `json:"Success"`        // Indicates whether the move was successful or not.
	Message        string         `json:"Message"`        // Optional message providing additional information.
	PlayerEntityID types.EntityID `json:"PlayerEntityID"` // Identifier for the player.
}

type CreateRoomMsg

type CreateRoomMsg struct {
	RoomID      uint32 `json:"room_id"`
	RoomType    int    `json:"room_type"` // Use enums.RoomType
	Description string `json:"description"`
}

type CreateRoomReply

type CreateRoomReply struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL