types

package
v0.0.0-...-84bb2ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ver    *int64       `json:"ver,omitempty"`
	Ebiver *string      `json:"ebiver,omitempty"`
	Uid    *string      `json:"uid,omitempty"`
	Name   *string      `json:"name,omitempty"`
	Extra  *interface{} `json:"extra,omitempty"`
}

type Objconf

type Objconf struct {
	Ver      *int64       `json:"ver,omitempty"`
	Ebiver   *string      `json:"ebiver,omitempty"`
	Uid      *string      `json:"uid,omitempty"`
	Name     *string      `json:"name,omitempty"`
	Extra    *interface{} `json:"extra,omitempty"`
	Typename *string      `json:"typename,omitempty"`
}

type PotGame

type PotGame struct {
	Config *Config       `json:"config,omitempty"`
	Scene  []interface{} `json:"scene,omitempty"`
}

PotGame PotGame,即Game结构,也就是PotCore里最高的结构,下设Config(GameConfig)和Scene(场景)

func UnmarshalPotGame

func UnmarshalPotGame(data []byte) (PotGame, error)

func (*PotGame) Marshal

func (r *PotGame) Marshal() ([]byte, error)

type PotObject

type PotObject struct {
	Objconf *Objconf     `json:"objconf,omitempty"`
	Content *interface{} `json:"content,omitempty"`
}

func UnmarshalPotObject

func UnmarshalPotObject(data []byte) (PotObject, error)

func (*PotObject) Marshal

func (r *PotObject) Marshal() ([]byte, error)

type PotScene

type PotScene struct {
	Config *Config       `json:"config,omitempty"`
	Object []interface{} `json:"object,omitempty"`
}

func UnmarshalPotScene

func UnmarshalPotScene(data []byte) (PotScene, error)

func (*PotScene) Marshal

func (r *PotScene) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL