data

package
v0.0.0-...-588393b Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2015 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(email string, password string) bool

func CountUser

func CountUser() int

func DeleteMaterial

func DeleteMaterial(hex string) string

func DeleteObject

func DeleteObject(hex string) string

func DeleteScene

func DeleteScene(hex string) string

func DeleteSprite

func DeleteSprite(hex string) string

Types

type Action

type Action struct {
	Target       string
	ActionScript string
}

type Animation

type Animation struct {
	Name           string
	RefName        string
	Target         string
	Kind           string
	FrameRate      string
	FrameValueType string
	Type           string
	Frames         []AnimationFrame
}

type AnimationFrame

type AnimationFrame struct {
	Frame string
	Value string
}

type Camera

type Camera struct {
	Name       string
	RefName    string
	Kind       string
	Properties map[string]string
}

type Color

type Color struct {
	Red   string
	Green string
	Blue  string
}

type Image

type Image struct {
	Name       string
	RefName    string
	Source     string
	Properties map[string]string
}

type Light

type Light struct {
	Name       string
	RefName    string
	Kind       string
	Properties map[string]string
}

type Material

type Material struct {
	Id      bson.ObjectId `bson:"_id"`
	Name    string
	Color   *Color
	Texture string
	Alpha   string
}

func GetMaterialByHex

func GetMaterialByHex(hex string) Material

func GetMaterialList

func GetMaterialList() []Material

func SaveMaterial

func SaveMaterial(material *Material) *Material

type Object

type Object struct {
	Id         bson.ObjectId `bson:"_id"`
	Name       string
	RefName    string
	Kind       string
	Properties map[string]string
	Material   *Material
}

func GetObjectByHex

func GetObjectByHex(hex string) Object

func GetObjectList

func GetObjectList() []Object

func SaveObject

func SaveObject(obj *Object) *Object

type Scene

type Scene struct {
	Id           bson.ObjectId `bson:"_id"`
	Name         string
	RefName      string
	MainCamera   string
	Objects      []Object
	Cameras      []Camera
	Lights       []Light
	Sprites      []Sprite
	Images       []Image
	Texts        []Text
	Animations   []Animation
	RenderScript string
	Actions      map[string]string
}

func GetSceneByHex

func GetSceneByHex(hex string) Scene

func GetSceneList

func GetSceneList() []Scene

func SaveScene

func SaveScene(scene *Scene) *Scene

type Sprite

type Sprite struct {
	Id         bson.ObjectId `bson:"_id"`
	Name       string
	RefName    string
	AssetName  string
	Properties map[string]string
}

func GetSpriteByHex

func GetSpriteByHex(hex string) Sprite

func GetSpriteList

func GetSpriteList() []Sprite

func SaveSprite

func SaveSprite(sprite *Sprite) *Sprite

type Text

type Text struct {
	Name       string
	RefName    string
	Properties map[string]string
}

type User

type User struct {
	Id        bson.ObjectId `bson:"_id"`
	Email     string
	Password  string
	FirstName string
	LastName  string
}

func SaveUser

func SaveUser(user *User) *User

Jump to

Keyboard shortcuts

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