Documentation
¶
Index ¶
- func DecryptSerial(data []byte) ([]byte, error)
- func DmKeyToInvKey(key string, assets []string) string
- func EncryptSerial(data []byte, seed int32) ([]byte, error)
- func GetBlueprint(key, invdata string) string
- func GetBtik() map[string]string
- func GetPartSuffix(part string) string
- func GetSeedFromSerial(data []byte) (int32, error)
- func Hash(buffer []byte) uint
- func Serialize(item Item, seed int32) ([]byte, error)
- type Assets
- type Data
- type DigitalMarineItem
- type Item
- type PartsDatabase
- type Reader
- type Version
- type Versions
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptSerial ¶
func DmKeyToInvKey ¶ added in v0.3.5
func GetBlueprint ¶ added in v0.3.5
func GetPartSuffix ¶ added in v0.3.5
func GetSeedFromSerial ¶
Types ¶
type DigitalMarineItem ¶ added in v0.3.5
type DigitalMarineItem struct { CopyType string `json:"copyType"` Level int `json:"level"` Blueprint string `json:"blueprint"` Balance string `json:"balance"` Manufacturer string `json:"manufacturer"` ComponentNames []string `json:"componentNames"` Components []int `json:"components"` }
func GibbedToDm ¶ added in v0.3.5
func GibbedToDm(i Item) DigitalMarineItem
type Item ¶
type Item struct { Level int `json:"level"` Balance string `json:"balance"` Manufacturer string `json:"manufacturer"` InvData string `json:"inv_data"` Parts []string `json:"parts"` Generics []string `json:"generics"` Overflow string `json:"overflow"` Version uint64 `json:"version"` Wrapper *pb.OakInventoryItemSaveGameData `json:"wrapper"` }
func Deserialize ¶
func DmToGibbed ¶ added in v0.3.5
func DmToGibbed(dmi DigitalMarineItem) Item
type PartsDatabase ¶
func GetDB ¶
func GetDB() PartsDatabase
func (PartsDatabase) GetData ¶
func (db PartsDatabase) GetData(key string) Data
func (PartsDatabase) GetInventoryBalanceData ¶
func (db PartsDatabase) GetInventoryBalanceData() Data
func (PartsDatabase) GetInventoryData ¶
func (db PartsDatabase) GetInventoryData() Data
func (PartsDatabase) GetManufacturerData ¶
func (db PartsDatabase) GetManufacturerData() Data
Click to show internal directories.
Click to hide internal directories.