46 lines
1.5 KiB
Go
46 lines
1.5 KiB
Go
// Package appearances provides appearance management for the EverQuest II server emulator.
|
|
//
|
|
// Appearances define the visual characteristics of entities in the game world, including
|
|
// player character customization options, NPC appearances, and visual variations.
|
|
// The system supports client version compatibility to ensure proper rendering across
|
|
// different EQ2 client versions.
|
|
//
|
|
// Basic Usage:
|
|
//
|
|
// db, _ := database.NewSQLite("appearances.db")
|
|
//
|
|
// // Create new appearance
|
|
// appearance := appearances.New(db)
|
|
// appearance.ID = 1001
|
|
// appearance.Name = "Human Male"
|
|
// appearance.MinClient = 1096
|
|
// appearance.Save()
|
|
//
|
|
// // Load existing appearance
|
|
// loaded, _ := appearances.Load(db, 1001)
|
|
// loaded.Delete()
|
|
//
|
|
// Master List:
|
|
//
|
|
// masterList := appearances.NewMasterList()
|
|
// masterList.LoadAllAppearances(db)
|
|
// masterList.AddAppearance(appearance)
|
|
//
|
|
// // Find appearances
|
|
// found := masterList.GetAppearance(1001)
|
|
// compatible := masterList.GetCompatibleAppearances(1096)
|
|
// humans := masterList.FindAppearancesByName("Human")
|
|
//
|
|
// Appearance Types:
|
|
//
|
|
// // Get appearance type from name
|
|
// hairType := appearances.GetAppearanceType("hair_color1")
|
|
//
|
|
// // Get name from type constant
|
|
// typeName := appearances.GetAppearanceTypeName(appearances.AppearanceHairColor1)
|
|
//
|
|
// The package includes all appearance type constants from the original EQ2EMu
|
|
// implementation, supporting hair colors, skin tones, facial features, clothing,
|
|
// and body customization options for both standard and SOGA character models.
|
|
package appearances
|