idlerpg

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = modules.Module{
	Name:           "idlerpg",
	CreateInstance: CreateInstance,
}

Functions

func CreateInstance

func CreateInstance(name string, config map[string]interface{}) (moduleInstance modules.ModuleInstance)

Types

type IRPGInstance

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

func (IRPGInstance) Config

func (t IRPGInstance) Config() (m map[string]interface{})

func (IRPGInstance) Name

func (t IRPGInstance) Name() (n string)

func (IRPGInstance) RefreshInterval

func (i IRPGInstance) RefreshInterval() int

func (IRPGInstance) Render

func (t IRPGInstance) Render() (i modules.Item)

func (IRPGInstance) String

func (t IRPGInstance) String() (s string)

type IRPGItem

type IRPGItem struct {
	Name   string `json:"name"`
	Text   string `json:"full_text"`
	Markup string `json:"markup"`
}

func (IRPGItem) Marshal

func (e IRPGItem) Marshal() (bytes []byte)

type Items

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

type Penalties

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

type Player

type Player struct {
	Username   string    `xml:"username"`
	Isadmin    bool      `xml:"isadmin"`
	Level      int       `xml:"level"`
	Class      string    `xml:"class"`
	Ttl        int       `xml:"ttl"`
	Userhost   string    `xml:"userhost"`
	Online     bool      `xml:"online"`
	Totalidled int       `xml:"totalidled"`
	Xpos       int       `xml:"xpos"`
	Ypos       int       `xml:"ypos"`
	Penalties  Penalties `xml:"penalties"`
	Items      Items     `xml:"items"`
}

Jump to

Keyboard shortcuts

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