w3d_obj

package
v0.0.0-...-948f7eb Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Act

type Act struct {
	Act      acttype.ActType
	Vt       [3]float64
	Count    int
	DstObjID string
}

type GameObj

type GameObj struct {
	UUID    string
	GOType  gameobjtype.GameObjType
	Color24 uint32 // from htmlcolors.Color24
	PosVt   [3]float32
	RotVt   [3]float32
}

type Light

type Light struct {
	UUID  string
	PosVt [3]float32
	Color uint32
}

type NotiInvalid_data

type NotiInvalid_data struct {
	Dummy uint8
}

type NotiStageChat_data

type NotiStageChat_data struct {
	SenderNick string
	Chat       string
}

type NotiStageInfo_data

type NotiStageInfo_data struct {
	Tick          int64
	CameraPos     [3]float32
	CameraLookAt  [3]float32
	Lights        []*Light
	BackgroundPos [2]float32
	ObjList       []*GameObj
}

type ReqAct_data

type ReqAct_data struct {
	Act acttype.ActType
	Dir [3]float32
}

Act send user action

type ReqChat_data

type ReqChat_data struct {
	Chat string
}

type ReqHeartbeat_data

type ReqHeartbeat_data struct {
	Tick int64
}

type ReqInvalid_data

type ReqInvalid_data struct {
	Dummy uint8 // change as you need
}

Invalid not used, make empty packet error

type ReqLogin_data

type ReqLogin_data struct {
	SessionKey   string
	NickName     string
	AuthKey      string
	StageToEnter string // stage number or uuid, empty or unknown to random
}

type ReqStatsInfo_data

type ReqStatsInfo_data struct {
	Dummy uint8 // change as you need
}

StatsInfo game stats info

type RspAct_data

type RspAct_data struct {
	Dummy uint8 // change as you need
}

Act send user action

type RspChat_data

type RspChat_data struct {
	Dummy uint8
}

type RspHeartbeat_data

type RspHeartbeat_data struct {
	Tick int64
}

type RspInvalid_data

type RspInvalid_data struct {
	Dummy uint8 // change as you need
}

Invalid not used, make empty packet error

type RspLogin_data

type RspLogin_data struct {
	Version         string
	ProtocolVersion string
	DataVersion     string

	SessionKey  string
	StageUUID   string
	StageType   stagetype.StageType
	Type2Radius [gameobjtype.GameObjType_Count]float64
	NickName    string
	CmdList     [w3d_idcmd.CommandID_Count]bool
}

type RspStatsInfo_data

type RspStatsInfo_data struct {
	Stats []TeamStat
}

StatsInfo game stats info

type TeamStat

type TeamStat struct {
	UUID  string
	Alive bool
	AP    int
	Score int
	Kill  int
	Death int

	Color24  uint32 // from htmlcolors.Color24
	ActStats acttype_vector.ActTypeVector
}

Jump to

Keyboard shortcuts

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