Documentation
¶
Index ¶
- Variables
- type LocalizedString
- type MultiEntry
- type SDK
- func (s *SDK) Add(v any)
- func (s *SDK) Animation(body, action, direction, hue int, preserveHue, firstFrame bool) (*ultima.Animation, error)
- func (*SDK) BasePath() string
- func (*SDK) Close() error
- func (s *SDK) Font() ([]ultima.Font, error)
- func (s *SDK) FontUnicode(int) (ultima.Font, error)
- func (s *SDK) Gump(id int) (*ultima.Gump, error)
- func (s *SDK) Gumps() iter.Seq[*ultima.Gump]
- func (s *SDK) Hue(index int) (*ultima.Hue, error)
- func (s *SDK) Hues() iter.Seq[*ultima.Hue]
- func (s *SDK) Item(id int) (*ultima.Item, error)
- func (s *SDK) Items() iter.Seq[*ultima.Item]
- func (s *SDK) Land(id int) (*ultima.Land, error)
- func (s *SDK) Lands() iter.Seq[*ultima.Land]
- func (s *SDK) Light(id int) (ultima.Light, error)
- func (s *SDK) Lights() iter.Seq[ultima.Light]
- func (s *SDK) Map(mapID int) (*TileMap, error)
- func (s *SDK) Multi(id int) (*ultima.Multi, error)
- func (s *SDK) MultiFromCSV(data []byte) (*ultima.Multi, error)
- func (s *SDK) RadarColor(tileID int) (ultima.RadarColor, error)
- func (s *SDK) RadarColors() iter.Seq[ultima.RadarColor]
- func (s *SDK) Skill(id int) (*ultima.Skill, error)
- func (s *SDK) SkillGroup(id int) (*ultima.SkillGroup, error)
- func (s *SDK) SkillGroups() iter.Seq[*ultima.SkillGroup]
- func (s *SDK) Skills() iter.Seq[*ultima.Skill]
- func (s *SDK) Sound(index int) (*ultima.Sound, error)
- func (s *SDK) Sounds() func(yield func(*ultima.Sound) bool)
- func (s *SDK) SpeechEntries() iter.Seq[ultima.Speech]
- func (s *SDK) SpeechEntry(id int) (ultima.Speech, error)
- func (s *SDK) String(id int) (string, error)
- func (s *SDK) StringEntry(id int, lang string) (ultima.StringEntry, error)
- func (s *SDK) StringWithLang(id int, lang string) (string, error)
- func (s *SDK) Strings() iter.Seq2[int, string]
- func (s *SDK) StringsWithLang(lang string) iter.Seq2[int, string]
- func (s *SDK) Text(font ultima.Font, text string, hue int) image.Image
- func (s *SDK) Texture(index int) (*ultima.Texture, error)
- func (s *SDK) Textures() func(yield func(*ultima.Texture) bool)
- type TileMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type LocalizedString ¶
type MultiEntry ¶
type SDK ¶
type SDK struct {
LandsMap map[int]*ultima.Land
ItemsMap map[int]*ultima.Item
GumpsMap map[int]*ultima.Gump
HuesMap map[int]*ultima.Hue
LightsMap map[int]ultima.Light
RadarColorMap map[int]ultima.RadarColor
SkillsMap map[int]*ultima.Skill
SkillGroupsMap map[int]*ultima.SkillGroup
SoundsMap map[int]*ultima.Sound
TexturesMap map[int]*ultima.Texture
SpeechMap map[int]ultima.Speech
StringsMap map[string]map[int]string
MultisMap map[int]*ultima.Multi
MapsMap map[int]*TileMap
UnicodeFont ultima.Font
Fonts []ultima.Font
// contains filtered or unexported fields
}
SDK is a lightweight in-memory implementation of the ultima.Interface.
func (*SDK) Animation ¶
func (s *SDK) Animation(body, action, direction, hue int, preserveHue, firstFrame bool) (*ultima.Animation, error)
Animation returns a stored animation if present.
func (*SDK) RadarColor ¶
func (s *SDK) RadarColor(tileID int) (ultima.RadarColor, error)
func (*SDK) RadarColors ¶
func (s *SDK) RadarColors() iter.Seq[ultima.RadarColor]
func (*SDK) SkillGroup ¶
func (s *SDK) SkillGroup(id int) (*ultima.SkillGroup, error)
func (*SDK) SkillGroups ¶
func (s *SDK) SkillGroups() iter.Seq[*ultima.SkillGroup]
func (*SDK) StringEntry ¶
StringEntry returns a StringEntry for the given id and lang.
func (*SDK) StringWithLang ¶
StringWithLang retrieves a localized string.
func (*SDK) StringsWithLang ¶
StringsWithLang iterates over strings for a language.
Click to show internal directories.
Click to hide internal directories.