Documentation ¶
Index ¶
- type Client
- func (c *Client) Account() *models.Account
- func (c *Client) ClientState() constants.ClientState
- func (c *Client) ClientVersion() constants.ClientVersion
- func (c *Client) Connection() interfaces.LimitedConnection
- func (c *Client) ConnectionID() uint32
- func (c *Client) LastPingTime() time.Time
- func (c *Client) Logger() interfaces.Logger
- func (c *Client) MarkPingTime()
- func (c *Client) Send(p interfaces.Packet) error
- func (c *Client) Server() interfaces.Server
- func (c *Client) SessionID() uint16
- func (c *Client) SetAccount(account *models.Account)
- func (c *Client) SetClientState(state constants.ClientState)
- func (c *Client) SetClientVersion(version constants.ClientVersion)
- func (c *Client) SetSessionID(id uint16)
- func (c *Client) Start()
- func (c *Client) Stop()
- type Config
- func (c *Config) GetAsBoolean(spec string) (bool, error)
- func (c *Config) GetAsFloat(spec string) (float64, error)
- func (c *Config) GetAsInteger(spec string) (int64, error)
- func (c *Config) GetAsManyFloats(spec string) ([]float64, error)
- func (c *Config) GetAsManyIntegers(spec string) ([]int64, error)
- func (c *Config) GetAsManyStrings(spec string) ([]string, error)
- func (c *Config) GetAsString(spec string) (string, error)
- type Server
- func (s *Server) Config() interfaces.Config
- func (s *Server) Database() interfaces.Database
- func (s *Server) RemoveClient(c *Client)
- func (s *Server) Ruleset() interfaces.Ruleset
- func (s *Server) ScriptExecutor() interfaces.ScriptExecutor
- func (s *Server) SendUDP(c *Client, p interfaces.Packet) error
- func (s *Server) ShortName() string
- func (s *Server) Start() error
- func (s *Server) Stop()
- func (s *Server) World() interfaces.World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ClientState ¶
func (c *Client) ClientState() constants.ClientState
func (*Client) ClientVersion ¶
func (c *Client) ClientVersion() constants.ClientVersion
func (*Client) Connection ¶
func (c *Client) Connection() interfaces.LimitedConnection
Methods to satisfy interfaces.Client
func (*Client) ConnectionID ¶
func (*Client) LastPingTime ¶
func (*Client) Logger ¶
func (c *Client) Logger() interfaces.Logger
func (*Client) MarkPingTime ¶
func (c *Client) MarkPingTime()
func (*Client) Server ¶
func (c *Client) Server() interfaces.Server
func (*Client) SetAccount ¶
func (*Client) SetClientState ¶
func (c *Client) SetClientState(state constants.ClientState)
func (*Client) SetClientVersion ¶
func (c *Client) SetClientVersion(version constants.ClientVersion)
func (*Client) SetSessionID ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Config ¶
func (s *Server) Config() interfaces.Config
Methods to satisfy interfaces.Server
func (*Server) Database ¶
func (s *Server) Database() interfaces.Database
func (*Server) RemoveClient ¶
func (*Server) Ruleset ¶
func (s *Server) Ruleset() interfaces.Ruleset
func (*Server) ScriptExecutor ¶
func (s *Server) ScriptExecutor() interfaces.ScriptExecutor
func (*Server) World ¶
func (s *Server) World() interfaces.World
Click to show internal directories.
Click to hide internal directories.