other

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: 17 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 CommonChatSender

func CommonChatSender(resp *Message)

func DeleteNotify

func DeleteNotify(user *player.Player, uuid string) bool

func LocalChatChecker

func LocalChatChecker()

func NotifyWorker

func NotifyWorker()

func Reader

func Reader(ws *websocket.Conn, client *player.Player)

func ReposeSender

func ReposeSender()

func SendMessage

func SendMessage(event string, senderMessage *chatGroup.Message, userID, GroupID int, group *chatGroup.Group,
	groups map[int]*chatGroup.Group, users []*player.ShortUserInfo, local bool, user *player.ShortUserInfo,
	missions map[string]*mission.Mission, notify *player.Notify, notifys map[string]*player.Notify)

func UserOnlineChecker

func UserOnlineChecker()

Types

type Message

type Message struct {
	Event       string                      `json:"event"`
	UserName    string                      `json:"user_name"`
	MessageText string                      `json:"message_text"`
	Message     *chatGroup.Message          `json:"message"`
	GroupID     int                         `json:"group_id"`
	UserID      int                         `json:"user_id"`
	Group       *chatGroup.Group            `json:"group"`
	Groups      map[int]*chatGroup.Group    `json:"groups"`
	Password    string                      `json:"password"`
	Users       []*player.ShortUserInfo     `json:"users"`
	User        *player.ShortUserInfo       `json:"user"`
	Local       bool                        `json:"local"`
	Missions    map[string]*mission.Mission `json:"missions"`
	Notify      *player.Notify              `json:"notify"`
	Notifys     map[string]*player.Notify   `json:"notifys"`
	Greetings   string                      `json:"greetings"`

	File         string                     `json:"file"`
	Biography    string                     `json:"biography"`
	Player       *player.Player             `json:"player"`
	ID           int                        `json:"id"`
	Skill        skill.Skill                `json:"skill"`
	Error        string                     `json:"error"`
	Count        int                        `json:"count"`
	Maps         map[int]*_map.ShortInfoMap `json:"maps"`
	SearchMaps   []*maps.SearchMap          `json:"search_maps"`
	DialogPage   *dialogObj.Page            `json:"dialog_page"`
	DialogAction string                     `json:"dialog_action"`
	ToPage       int                        `json:"to_page"`
	AskID        int                        `json:"ask_id"`
	Mission      *mission.Mission           `json:"mission"`
	Bot          bool                       `json:"bot"`
	UUID         string                     `json:"uuid"`

	// resolution, window_id, state
	UserInterface map[string]map[string]*player.Window `json:"user_interface"`
	Resolution    string                               `json:"resolution"`
	Name          string                               `json:"name"`
	Left          int                                  `json:"left"`
	Top           int                                  `json:"top"`
	Height        int                                  `json:"height"`
	Width         int                                  `json:"width"`
	Open          bool                                 `json:"open"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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