mudmail

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inbox

type Inbox []Message

Inbox is an ordered slice of messages for one user, newest first.

type Message

type Message struct {
	FromUserId int         `yaml:"fromuserid,omitempty"`
	FromName   string      `yaml:"fromname"`
	Body       string      `yaml:"body"`
	Item       *items.Item `yaml:"item,omitempty"`
	Gold       int         `yaml:"gold,omitempty"`
	Read       bool        `yaml:"read,omitempty"`
	DateSent   time.Time   `yaml:"datesent"`
}

Message is a single inbox message.

func (Message) DateString

func (m Message) DateString() string

type MudmailModule

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

MudmailModule owns all inbox state.

func (*MudmailModule) SendMudMail

func (m *MudmailModule) SendMudMail(userId int, fromName string, message string, gold int, itm *items.Item)

SendMudMail is exported for use by other modules. Signature: func(userId int, fromName string, message string, gold int, itm *items.Item)

Jump to

Keyboard shortcuts

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