mapserver

package
v0.0.0-...-e8c99ed Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtlasIsland

type AtlasIsland struct {
	IslandPoints                             int      `json:"islandPoints"`
	IslandTreasureBottleSupplyCrateOverrides string   `json:"islandTreasureBottleSupplyCrateOverrides"`
	Discoveries                              []string `json:"discoveries"`
	UseLevelBoundsForTreasures               bool     `json:"useLevelBoundsForTreasures"`
	Rotation                                 float64  `json:"rotation"`
	UseNpcVolumesForTreasures                bool     `json:"useNpcVolumesForTreasures"`
	Sublevels                                []string `json:"sublevels"`
	WorldY                                   int      `json:"worldY"`
	MaxTreasureQuality                       int      `json:"maxTreasureQuality"`
	IslandHeight                             int      `json:"islandHeight"`
	Grid                                     string   `json:"grid"`
	SpawnerOverrides                         struct {
	} `json:"spawnerOverrides"`
	WorldX                        int      `json:"worldX"`
	PrioritizeVolumesForTreasures bool     `json:"prioritizeVolumesForTreasures"`
	Overrides                     []string `json:"overrides"`
	MinTreasureQuality            int      `json:"minTreasureQuality"`
	ID                            string   `json:"id"`
	IslandWidth                   int      `json:"islandWidth"`
	Resources                     []string `json:"resources"`
	Name                          string   `json:"name"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Company

type Company struct {
	TribeID   int         `json:"TribeId"`
	TribeName string      `json:"TribeName"`
	FlagURL   interface{} `json:"FlagURL"`
}

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

Hub maintains the set of active clients and broadcasts messages to the clients.

type Island

type Island struct {
	IslandID             int       `json:"IslandID"`
	X                    float64   `json:"X"`
	Y                    float64   `json:"Y"`
	Size                 float64   `json:"Size"`
	TribeID              int       `json:"TribeId"`
	Color                string    `json:"Color"`
	IslandPoints         int       `json:"IslandPoints"`
	SettlementName       string    `json:"SettlementName"`
	TaxRate              float64   `json:"TaxRate"`
	CombatPhaseStartTime int       `json:"CombatPhaseStartTime"`
	WarringTribeID       int       `json:"WarringTribeID"`
	WarStartUTC          int       `json:"WarStartUTC"`
	WarEndUTC            int       `json:"WarEndUTC"`
	NumSettlers          int       `json:"NumSettlers"`
	LastUpdate           time.Time `json:"LastUpdate"`
}

type IslandPackage

type IslandPackage struct {
	Version   int       `json:"version"`
	Islands   []Island  `json:"Islands"`
	Companies []Company `json:"Companies"`
}

type MapServer

type MapServer struct {
	// contains filtered or unexported fields
}

MapServer provides administrative services to an Atlas Cluster over http

func NewMapServer

func NewMapServer() *MapServer

NewMapServer creates a new server

func (*MapServer) Run

func (s *MapServer) Run() error

Run starts the server processing

type MessageEmbed

type MessageEmbed struct {
	URL         string                 `json:"url,omitempty"`
	Type        string                 `json:"type,omitempty"`
	Title       string                 `json:"title,omitempty"`
	Description string                 `json:"description,omitempty"`
	Timestamp   string                 `json:"timestamp,omitempty"`
	Color       int                    `json:"color,omitempty"`
	Footer      *MessageEmbedFooter    `json:"footer,omitempty"`
	Image       *MessageEmbedImage     `json:"image,omitempty"`
	Thumbnail   *MessageEmbedThumbnail `json:"thumbnail,omitempty"`
	Video       *MessageEmbedVideo     `json:"video,omitempty"`
	Provider    *MessageEmbedProvider  `json:"provider,omitempty"`
	Author      *MessageEmbedAuthor    `json:"author,omitempty"`
	Fields      []*MessageEmbedField   `json:"fields,omitempty"`
}

An MessageEmbed stores data for message embeds.

type MessageEmbedAuthor

type MessageEmbedAuthor struct {
	URL          string `json:"url,omitempty"`
	Name         string `json:"name,omitempty"`
	IconURL      string `json:"icon_url,omitempty"`
	ProxyIconURL string `json:"proxy_icon_url,omitempty"`
}

MessageEmbedAuthor is a part of a MessageEmbed struct.

type MessageEmbedField

type MessageEmbedField struct {
	Name   string `json:"name,omitempty"`
	Value  string `json:"value,omitempty"`
	Inline bool   `json:"inline,omitempty"`
}

MessageEmbedField is a part of a MessageEmbed struct.

type MessageEmbedFooter

type MessageEmbedFooter struct {
	Text         string `json:"text,omitempty"`
	IconURL      string `json:"icon_url,omitempty"`
	ProxyIconURL string `json:"proxy_icon_url,omitempty"`
}

MessageEmbedFooter is a part of a MessageEmbed struct.

type MessageEmbedImage

type MessageEmbedImage struct {
	URL      string `json:"url,omitempty"`
	ProxyURL string `json:"proxy_url,omitempty"`
	Width    int    `json:"width,omitempty"`
	Height   int    `json:"height,omitempty"`
}

MessageEmbedImage is a part of a MessageEmbed struct.

type MessageEmbedProvider

type MessageEmbedProvider struct {
	URL  string `json:"url,omitempty"`
	Name string `json:"name,omitempty"`
}

MessageEmbedProvider is a part of a MessageEmbed struct.

type MessageEmbedThumbnail

type MessageEmbedThumbnail struct {
	URL      string `json:"url,omitempty"`
	ProxyURL string `json:"proxy_url,omitempty"`
	Width    int    `json:"width,omitempty"`
	Height   int    `json:"height,omitempty"`
}

MessageEmbedThumbnail is a part of a MessageEmbed struct.

type MessageEmbedVideo

type MessageEmbedVideo struct {
	URL      string `json:"url,omitempty"`
	ProxyURL string `json:"proxy_url,omitempty"`
	Width    int    `json:"width,omitempty"`
	Height   int    `json:"height,omitempty"`
}

MessageEmbedVideo is a part of a MessageEmbed struct.

Jump to

Keyboard shortcuts

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