Documentation
¶
Index ¶
- Variables
- func AccountExists(acctName string) bool
- func CharacterExists(charName string) bool
- func ClearChatLogs()
- func ClearCombatMetrics()
- func ClearItemSales()
- func CopyItem(itemId int, creator string) (int, bool)
- func CopyMob(mobId int) (int, bool)
- func CreateChar(charData map[string]interface{}) bool
- func CreateDrop(dropData map[string]interface{}) bool
- func CreateEncounter(encounterData map[string]interface{}) bool
- func CreateExit(exitData map[string]interface{}) bool
- func CreateItem(itemData map[string]interface{}) (int, bool)
- func CreateMenu(roomName string, creator string) (int, bool)
- func CreateMenuOption(exitData map[string]interface{}) bool
- func CreateMob(mobName string, creator string) (int, bool)
- func CreateNarrative(narrData map[string]interface{}) (bool, error)
- func CreateRoom(roomName string, creator string) (int, bool)
- func Deactivate(acctName string) bool
- func DeleteAcct(acctName string) bool
- func DeleteChar(charName string) bool
- func DeleteDrop(mobId int, itemId int) bool
- func DeleteEncounter(mobId int, roomId int) bool
- func DeleteExit(exitName string, room_id int) bool
- func DeleteItem(itemId int) bool
- func DeleteMenu(room_id int) bool
- func DeleteMenuOption(exitName string, room_id int) bool
- func DeleteMob(mobId int) bool
- func DeleteRoom(room_id int) bool
- func ExitExists(exitName string, room_id int) bool
- func FlushChatLogs() bool
- func FlushCombatMetrics() bool
- func FlushItemSales() bool
- func ListChars(acctName string) []string
- func ListPowerChar(acctName string) (string, bool)
- func ListPuppets() []string
- func LoadAcct(acctName string) (map[string]interface{}, bool)
- func LoadChar(charName string) (map[string]interface{}, bool)
- func LoadExit(exitName string, room_id int, toId int) map[string]interface{}
- func LoadItem(itemId int) map[string]interface{}
- func LoadItems() []interface{}
- func LoadMenu(room_id int) map[string]interface{}
- func LoadMenuOption(exitName string, room_id int, toId int) map[string]interface{}
- func LoadMenus() []interface{}
- func LoadMob(mobId int) map[string]interface{}
- func LoadMobs() []interface{}
- func LoadRoom(room_id int) map[string]interface{}
- func LoadRooms() []interface{}
- func LoadSetting(settingName string) (string, bool)
- func NewAcct(acctData map[string]interface{}) bool
- func OptionExists(exitName string, room_id int) bool
- func PuppetChar(charName string) bool
- func RenameExit(exitName string, oldName string, baseRoom int, toRoom int) bool
- func SaveChar(charData map[string]interface{}) bool
- func SaveCharField(charName string, field string, fieldVal interface{}) bool
- func SearchAccountName(searchStr string, skip int) []interface{}
- func SearchCharDesc(searchStr string, skip int) []interface{}
- func SearchCharName(searchStr string, skip int) []interface{}
- func SearchItemDesc(searchStr string, skip int) []interface{}
- func SearchItemMaxDamage(searchStr string, skip int) []interface{}
- func SearchItemName(searchStr string, skip int) []interface{}
- func SearchItemRange(loId int, hiId int, skip int) []interface{}
- func SearchItemType(searchStr string, skip int) []interface{}
- func SearchMenuName(searchStr string, skip int) []interface{}
- func SearchMobDesc(searchStr string, skip int) []interface{}
- func SearchMobName(searchStr string, skip int) []interface{}
- func SearchMobRange(loId int, hiId int, skip int) []interface{}
- func SearchRoomDesc(searchStr string, skip int) []interface{}
- func SearchRoomName(searchStr string, skip int) []interface{}
- func StoreChatLog(chatType int, fromId int, toId int, message string)
- func StoreCombatMetric(Action string, ActionType int, Mode int, TotalDamage int, Resisted int, ...)
- func StoreItemSale(ItemId int, SellerId int, SellerTier int, SellValue int)
- func SumEncounters(roomId int) int
- func TogglePermission(acctName string, permission uint32) bool
- func UpdateDrop(mobData map[string]interface{}) bool
- func UpdateEncounter(mobData map[string]interface{}) bool
- func UpdateExit(exitData map[string]interface{}) bool
- func UpdateItem(itemData map[string]interface{}) bool
- func UpdateMenu(roomData map[string]interface{}) bool
- func UpdateMenuOption(exitData map[string]interface{}) bool
- func UpdateMob(mobData map[string]interface{}) bool
- func UpdateNarrative(narrData map[string]interface{}) bool
- func UpdatePassword(acctName string, acctPass string) bool
- func UpdateRoom(roomData map[string]interface{}) bool
- func UpdateSetting(settingName string, setting string) bool
- type ChatLog
- type CombatMetric
- type ItemSales
- type ItemTotals
Constants ¶
This section is empty.
Variables ¶
var ( NEOURI = fmt.Sprintf("bolt://%s:7687", config.Server.NEOAddress) DRIVER neo4j.Driver PGCONNSTR = fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", config.Server.PGAddress, config.Server.PGPort, config.Server.PGUname, config.Server.PGPword, config.Server.PGUname) ChatLogsCapture []ChatLog ItemSalesCapture []ItemSales ItemTotalsCapture map[int]ItemTotals CombatMetricsCapture []CombatMetric )
Functions ¶
func AccountExists ¶
AccountExists Checks whether an account exists based on name
func CharacterExists ¶
func ClearChatLogs ¶
func ClearChatLogs()
func ClearCombatMetrics ¶
func ClearCombatMetrics()
func ClearItemSales ¶
func ClearItemSales()
func CreateDrop ¶
func CreateEncounter ¶
func CreateExit ¶
CreateExit Create Exits from a map of exitData
func CreateItem ¶
func CreateMenu ¶
CreateRoom will create a new room from a roomname and a creator
func CreateMenuOption ¶
CreateExit Create Exits from a map of exitData
func CreateNarrative ¶
func CreateRoom ¶
CreateRoom will create a new room from a roomname and a creator
func DeleteAcct ¶
DeleteAcct Delete account based on account name
func DeleteDrop ¶
func DeleteEncounter ¶
func DeleteExit ¶
DeleteExit Delete Exit based on the exit name and the containing room
func DeleteItem ¶
func DeleteMenuOption ¶
DeleteExit Delete Exit based on the exit name and the containing room
func ExitExists ¶
ExitExists Does this exit exist?
func FlushChatLogs ¶
func FlushChatLogs() bool
func FlushCombatMetrics ¶
func FlushCombatMetrics() bool
func FlushItemSales ¶
func FlushItemSales() bool
func ListPowerChar ¶
ListPowerChar Retrieve account power characters based on account name
func ListPuppets ¶
func ListPuppets() []string
ListPuppets Retrieve account characters attached to the PuppetMaster
func LoadMenuOption ¶
func LoadSetting ¶
func OptionExists ¶
ExitExists Does this exit exist?
func PuppetChar ¶
PuppetChar Remove current ownership and set ownership to the PuppetMaster account
func RenameExit ¶
RenameExit Renames an exit based on it's previous name, the new name, and the connecting room information
func SaveCharField ¶
SaveCharField Update character
func SearchAccountName ¶
func SearchCharDesc ¶
func SearchCharName ¶
func SearchItemDesc ¶
func SearchItemMaxDamage ¶
func SearchItemName ¶
func SearchItemRange ¶
func SearchItemType ¶
func SearchMenuName ¶
func SearchMobDesc ¶
func SearchMobName ¶
func SearchMobRange ¶
func SearchRoomDesc ¶
func SearchRoomName ¶
func StoreCombatMetric ¶
func SumEncounters ¶
func TogglePermission ¶
func UpdateDrop ¶
func UpdateEncounter ¶
func UpdateExit ¶
UpdateExit Update Exit based on
func UpdateItem ¶
func UpdateMenuOption ¶
UpdateExit Update Exit based on
func UpdateNarrative ¶
func UpdatePassword ¶
UpdatePassword Update account
func UpdateSetting ¶
Types ¶
type CombatMetric ¶
type CombatMetric struct {
Action string
ActionType int // damage 0, heal 1
Mode int // melee 0, ranged 1, spell 2, item 3
TotalDamage int
Resisted int
FinalDamage int
AttackerType int // player 0, mob 1, npc 2
AttackerId int
AttackerTier int
VictimType int // player 0, mob 1, npc 2
VictimId int
CombatTime time.Time
}