mirror of
https://github.com/CPunch/gopenfusion.git
synced 2025-10-10 19:30:08 +00:00
major refactoring: db.Player is now core.Player
- misc. cleanup - core/db/players.go: works with core.Player types, will also grab inventory table
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"github.com/CPunch/gopenfusion/db"
|
||||
"github.com/CPunch/gopenfusion/protocol"
|
||||
)
|
||||
|
||||
func Player2PCStyle(plr *db.Player) (protocol.SPCStyle, protocol.SPCStyle2) {
|
||||
return protocol.SPCStyle{
|
||||
IPC_UID: int64(plr.PlayerID),
|
||||
INameCheck: int8(plr.NameCheck),
|
||||
SzFirstName: plr.FirstName,
|
||||
SzLastName: plr.LastName,
|
||||
IGender: int8(plr.Gender),
|
||||
IFaceStyle: int8(plr.FaceStyle),
|
||||
IHairStyle: int8(plr.HairStyle),
|
||||
IHairColor: int8(plr.HairColor),
|
||||
ISkinColor: int8(plr.SkinColor),
|
||||
IEyeColor: int8(plr.EyeColor),
|
||||
IHeight: int8(plr.Height),
|
||||
IBody: int8(plr.Body),
|
||||
},
|
||||
protocol.SPCStyle2{
|
||||
IAppearanceFlag: int8(plr.AppearanceFlag),
|
||||
ITutorialFlag: int8(plr.TutorialFlag),
|
||||
IPayzoneFlag: int8(plr.PayZoneFlag),
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user