113 lines
6.2 KiB
Go

package ls_structs
import (
"eq2emu/internal/common"
"eq2emu/internal/packets/parser"
"reflect"
)
type UnknownArray2Item struct {
Array2Unknown uint32 `eq2:"int32"`
}
// StartingItem represents equipment items for character creation
type StartingItem struct {
ModelID uint32 `eq2:"int32"`
SlotID uint8 `eq2:"int8"`
UseColor uint8 `eq2:"int8"`
UseHighlightColor uint8 `eq2:"int8"`
ModelColor common.EQ2Color `eq2:"color"`
ModelHighlightColor common.EQ2Color `eq2:"color"`
}
func RegisterLoginServerStructs(registry *parser.VersionRegistry) {
// CreateCharacterReply
registry.RegisterStruct("CreateCharacterReply", "1", reflect.TypeOf(CreateCharacterReplyV1{}))
registry.RegisterStruct("CreateCharacterReply", "1189", reflect.TypeOf(CreateCharacterReplyV1189{}))
registry.RegisterStruct("CreateCharacterReply", "60085", reflect.TypeOf(CreateCharacterReplyV60085{}))
// DeleteCharacterRequest
registry.RegisterStruct("DeleteCharacterRequest", "1", reflect.TypeOf(DeleteCharacterRequest{}))
// DeleteCharacterResponse
registry.RegisterStruct("DeleteCharacterResponse", "1", reflect.TypeOf(DeleteCharacterResponse{}))
// LoginRequest
registry.RegisterStruct("LoginRequest", "1", reflect.TypeOf(LoginRequestV1{}))
registry.RegisterStruct("LoginRequest", "562", reflect.TypeOf(LoginRequestV562{}))
registry.RegisterStruct("LoginRequest", "1208", reflect.TypeOf(LoginRequestV1208{}))
// LoginResponse
registry.RegisterStruct("LoginResponse", "1", reflect.TypeOf(LoginResponseV1{}))
registry.RegisterStruct("LoginResponse", "546", reflect.TypeOf(LoginResponseV546{}))
registry.RegisterStruct("LoginResponse", "561", reflect.TypeOf(LoginResponseV561{}))
registry.RegisterStruct("LoginResponse", "1096", reflect.TypeOf(LoginResponseV1096{}))
registry.RegisterStruct("LoginResponse", "1144", reflect.TypeOf(LoginResponseV1144{}))
registry.RegisterStruct("LoginResponse", "1153", reflect.TypeOf(LoginResponseV1153{}))
registry.RegisterStruct("LoginResponse", "1193", reflect.TypeOf(LoginResponseV1193{}))
registry.RegisterStruct("LoginResponse", "57048", reflect.TypeOf(LoginResponseV57048{}))
registry.RegisterStruct("LoginResponse", "60100", reflect.TypeOf(LoginResponseV60100{}))
// PlayRequest
registry.RegisterStruct("PlayRequest", "1", reflect.TypeOf(PlayRequestV1{}))
registry.RegisterStruct("PlayRequest", "284", reflect.TypeOf(PlayRequestV284{}))
// PlayResponse
registry.RegisterStruct("PlayResponse", "1", reflect.TypeOf(PlayResponseV1{}))
registry.RegisterStruct("PlayResponse", "1096", reflect.TypeOf(PlayResponseV1096{}))
registry.RegisterStruct("PlayResponse", "60085", reflect.TypeOf(PlayResponseV60085{}))
registry.RegisterStruct("PlayResponse", "60099", reflect.TypeOf(PlayResponseV60099{}))
// WorldList
registry.RegisterStruct("WorldList", "1", reflect.TypeOf(WorldListV1{}))
registry.RegisterStruct("WorldList", "373", reflect.TypeOf(WorldListV373{}))
registry.RegisterStruct("WorldList", "546", reflect.TypeOf(WorldListV546{}))
registry.RegisterStruct("WorldList", "562", reflect.TypeOf(WorldListV562{}))
registry.RegisterStruct("WorldList", "60114", reflect.TypeOf(WorldListV60114{}))
registry.RegisterStruct("WorldList", "65534", reflect.TypeOf(WorldListV65534{}))
// WorldUpdate
registry.RegisterStruct("WorldUpdate", "1", reflect.TypeOf(WorldUpdate{}))
// LoginReplyMsg
registry.RegisterStruct("LoginReplyMsg", "1", reflect.TypeOf(LoginReplyMsgV1{}))
registry.RegisterStruct("LoginReplyMsg", "284", reflect.TypeOf(LoginReplyMsgV284{}))
registry.RegisterStruct("LoginReplyMsg", "843", reflect.TypeOf(LoginReplyMsgV843{}))
registry.RegisterStruct("LoginReplyMsg", "1096", reflect.TypeOf(LoginReplyMsgV1096{}))
registry.RegisterStruct("LoginReplyMsg", "1142", reflect.TypeOf(LoginReplyMsgV1142{}))
registry.RegisterStruct("LoginReplyMsg", "1188", reflect.TypeOf(LoginReplyMsgV1188{}))
registry.RegisterStruct("LoginReplyMsg", "57080", reflect.TypeOf(LoginReplyMsgV57080{}))
registry.RegisterStruct("LoginReplyMsg", "60100", reflect.TypeOf(LoginReplyMsgV60100{}))
registry.RegisterStruct("LoginReplyMsg", "63181", reflect.TypeOf(LoginReplyMsgV63181{}))
registry.RegisterStruct("LoginReplyMsg", "65534", reflect.TypeOf(LoginReplyMsgV65534{}))
// LoginByNumRequest
registry.RegisterStruct("LoginByNumRequest", "1", reflect.TypeOf(LoginByNumRequestV1{}))
registry.RegisterStruct("LoginByNumRequest", "562", reflect.TypeOf(LoginByNumRequestV562{}))
registry.RegisterStruct("LoginByNumRequest", "1208", reflect.TypeOf(LoginByNumRequestV1208{}))
// BadLanguageFilter
registry.RegisterStruct("BadLanguageFilter", "1", reflect.TypeOf(BadLanguageFilter{}))
// CharSelectProfile
registry.RegisterStruct("CharSelectProfile", "1", reflect.TypeOf(CharSelectProfileV1{}))
registry.RegisterStruct("CharSelectProfile", "373", reflect.TypeOf(CharSelectProfileV373{}))
registry.RegisterStruct("CharSelectProfile", "546", reflect.TypeOf(CharSelectProfileV546{}))
registry.RegisterStruct("CharSelectProfile", "562", reflect.TypeOf(CharSelectProfileV562{}))
registry.RegisterStruct("CharSelectProfile", "887", reflect.TypeOf(CharSelectProfileV887{}))
registry.RegisterStruct("CharSelectProfile", "60085", reflect.TypeOf(CharSelectProfileV60085{}))
// CreateCharacter
registry.RegisterStruct("CreateCharacter", "1", reflect.TypeOf(CreateCharacterV1{}))
registry.RegisterStruct("CreateCharacter", "373", reflect.TypeOf(CreateCharacterV373{}))
registry.RegisterStruct("CreateCharacter", "546", reflect.TypeOf(CreateCharacterV546{}))
registry.RegisterStruct("CreateCharacter", "561", reflect.TypeOf(CreateCharacterV561{}))
registry.RegisterStruct("CreateCharacter", "562", reflect.TypeOf(CreateCharacterV562{}))
registry.RegisterStruct("CreateCharacter", "869", reflect.TypeOf(CreateCharacterV869{}))
registry.RegisterStruct("CreateCharacter", "1096", reflect.TypeOf(CreateCharacterV1096{}))
registry.RegisterStruct("CreateCharacter", "57080", reflect.TypeOf(CreateCharacterV57080{}))
registry.RegisterStruct("CreateCharacter", "60085", reflect.TypeOf(CreateCharacterV60085{}))
registry.RegisterStruct("CreateCharacter", "64659", reflect.TypeOf(CreateCharacterV64659{}))
registry.RegisterStruct("CreateCharacter", "65534", reflect.TypeOf(CreateCharacterV65534{}))
}