Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct { GameID string `json:"gameId"` Players []PlayerProfile `json:"profiles"` }
Parameters contains all the parameters of the game
func LoadGameParametersFromFile ¶
func LoadGameParametersFromFile(filepath string) Parameters
LoadGameParametersFromFile load the parameters of a game from a local JSON file (TEST THIS?)
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player : connected player's informations
func NewPlayer ¶
func NewPlayer(profile PlayerProfile, conn PlayerConn) (player *Player)
NewPlayer returns a new player
type PlayerConn ¶
PlayerConn represent an connection to a player
type PlayerProfile ¶
type PlayerProfile struct { Name string `json:"username"` UUID string `json:"accessKey"` UID uint8 `json:"uid"` Model world.PlaneModel `json:"planeModel"` }
PlayerProfile ...
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
func NewServer ¶
func NewServer(params Parameters) *Server
NewServer return a arena with default settings (TEST THIS!)
func (*Server) Connect ¶
func (s *Server) Connect(conn PlayerConn, profile PlayerProfile)
Connect add a player to the server
Click to show internal directories.
Click to hide internal directories.