scene

package
v0.0.0-...-fb6b14c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	Name          string   `json:"audioName"`
	Duration      int      `json:"duration"`
	IsLine        bool     `json:"isLineAudio"`
	IsPoint       bool     `json:"isPointAudio"`
	IsRawRes      bool     `json:"isRawRes"`
	StartPlayTime int      `json:"startPlayTime"`
	TotalEndTime  int      `json:"totalEndTime"`
	Frequency     int      `json:"frequency"`
	Names         []string `json:"names"`
	Volume        float32  `json:"volume"`
	Pitch         float32  `json:"pitch"`
	Speed         float32  `json:"speed"`
}

Audio 音频信息

func LoadAudio

func LoadAudio(sceneName string) (audioList []*Audio)

LoadAudio 加载音频配置

type CropPic

type CropPic struct {
	CenterLine float32 `json:"centerLine"`
	Top        float32 `json:"top"`
	Bottom     float32 `json:"bottom"`
	Left       float32 `json:"left"`
	Right      float32 `json:"right"`
}

CropPic 裁剪图片

type Info

type Info struct {
	Title        string   `json:"title"`
	Desp         string   `json:"desp"`
	EngTitle     string   `json:"engTitle"`
	EngDesp      string   `json:"engDesp"`
	ImagePath    string   `json:"imagePath"`
	CropPicSmall *CropPic `json:"cropPicSmall"`
	CropPicLarge *CropPic `json:"cropPicLarge"`
}

Info 场景信息

func Load

func Load(file string) (infoList []*Info)

Load 加载文件信息

type Obj

type Obj struct {
	core.QObject
	// contains filtered or unexported fields
}

Obj 场景对象

Jump to

Keyboard shortcuts

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