map_editor

package
v0.0.0-...-54eea7a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewUser

func AddNewUser(ws *websocket.Conn, login string, id int)

func Reader

func Reader(ws *websocket.Conn)

Types

type Message

type Message struct {
	Event string `json:"event"`
	ID    int    `json:"id"`

	ToPos       string `json:"to_pos"`
	ToBaseID    int    `json:"to_base_id"`
	ToMapID     int    `json:"to_map_id"`
	TypeHandler string `json:"type_handler"`

	IDType int `json:"id_type"`

	NewIDType int `json:"new_id_type"`
	OldIDType int `json:"old_id_type"`

	TerrainName string `json:"terrain_name"`
	ObjectName  string `json:"object_name"`
	AnimateName string `json:"animate_name"`
	TextureName string `json:"texture_name"`

	Move   bool `json:"move"`
	Watch  bool `json:"watch"`
	Attack bool `json:"attack"`

	Scale  int  `json:"scale"`
	Shadow bool `json:"shadow"`

	Rotate int `json:"rotate"`
	Speed  int `json:"speed"`

	Radius int `json:"radius"`

	XShadowOffset   int `json:"x_shadow_offset"`
	YShadowOffset   int `json:"y_shadow_offset"`
	ShadowIntensity int `json:"shadow_intensity"`

	CountSprites int    `json:"count_sprites"`
	XSize        int    `json:"x_size"`
	YSize        int    `json:"y_size"`
	XOffset      int    `json:"x_offset"`
	YOffset      int    `json:"y_offset"`
	X            int    `json:"x"`
	Y            int    `json:"y"`
	ToX          int    `json:"to_x"`
	ToY          int    `json:"to_y"`
	Color        string `json:"color"`
}

type Response

type Response struct {
	Event           string                        `json:"event"`
	Map             gameMap.Map                   `json:"map"`
	Maps            map[int]*gameMap.ShortInfoMap `json:"maps"`
	TypeCoordinates []*dynamic_map_object.Object  `json:"type_coordinates"`
	Success         bool                          `json:"success"`
	Bases           map[int]*base.Base            `json:"bases"`
	Error           string                        `json:"error"`
	EntryToSector   []*coordinate.Coordinate      `json:"entry_to_sector"`
}

Jump to

Keyboard shortcuts

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