mirror of
https://github.com/Luzifer/sii.git
synced 2024-10-18 05:14:19 +00:00
Add UserProfile block
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6b9c7c1493
commit
972949a8a6
1 changed files with 37 additions and 0 deletions
37
block_user_profile.go
Normal file
37
block_user_profile.go
Normal file
|
@ -0,0 +1,37 @@
|
|||
package sii
|
||||
|
||||
func init() {
|
||||
RegisterBlock(&UserProfile{})
|
||||
}
|
||||
|
||||
type UserProfile struct {
|
||||
Face int64 `sii:"face"`
|
||||
Brand Ptr `sii:"brand"`
|
||||
MapPath string `sii:"map_path"`
|
||||
Logo Ptr `sii:"logo"`
|
||||
CompanyName string `sii:"company_name"`
|
||||
Male bool `sii:"male"`
|
||||
CachedExperience int64 `sii:"cached_experience"`
|
||||
CachedDistance int64 `sii:"18182"`
|
||||
UserData []RawValue `sii:"user_data"`
|
||||
ActiveMods []string `sii:"active_mods"`
|
||||
Customization int64 `sii:"customization"` // ??? Maybe bit-flags?
|
||||
CachedStats []int64 `sii:"cached_stats"`
|
||||
CachedDiscovery []int64 `sii:"cached_discovery"`
|
||||
Version int64 `sii:"version"`
|
||||
OnlineUserName string `sii:"online_user_name"`
|
||||
OnlinePassword string `sii:"online_password"`
|
||||
ProfileName string `sii:"profile_name"`
|
||||
CreationTime int64 `sii:"creation_time"`
|
||||
SaveTime int64 `sii:"save_time"`
|
||||
|
||||
blockName string
|
||||
}
|
||||
|
||||
func (UserProfile) Class() string { return "user_profile" }
|
||||
|
||||
func (u *UserProfile) Init(class, name string) {
|
||||
u.blockName = name
|
||||
}
|
||||
|
||||
func (u UserProfile) Name() string { return u.blockName }
|
Loading…
Reference in a new issue