pb

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnimationClipMode_name = map[int32]string{
	0: "ONCE",
	1: "LOOP",
	2: "PING_PONG",
	4: "CLAMP_FOREVER",
}
View Source
var AnimationClipMode_value = map[string]int32{
	"ONCE":          0,
	"LOOP":          1,
	"PING_PONG":     2,
	"CLAMP_FOREVER": 4,
}
View Source
var ImageFilter_name = map[int32]string{
	0: "DEFAULT",
	1: "NEAREST",
	2: "LINEAR",
}
View Source
var ImageFilter_value = map[string]int32{
	"DEFAULT": 0,
	"NEAREST": 1,
	"LINEAR":  2,
}

Functions

func ToEbitenFilter

func ToEbitenFilter(t ImageFilter) ebiten.Filter

Types

type AnimFrame

type AnimFrame struct {
	FrameName            string          `protobuf:"bytes,1,opt,name=frame_name,json=frameName,proto3" json:"frame_name,omitempty"`
	Event                *AnimationEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AnimFrame) Descriptor

func (*AnimFrame) Descriptor() ([]byte, []int)

func (*AnimFrame) GetEvent

func (m *AnimFrame) GetEvent() *AnimationEvent

func (*AnimFrame) GetFrameName added in v0.3.0

func (m *AnimFrame) GetFrameName() string

func (*AnimFrame) ProtoMessage

func (*AnimFrame) ProtoMessage()

func (*AnimFrame) Reset

func (m *AnimFrame) Reset()

func (*AnimFrame) String

func (m *AnimFrame) String() string

func (*AnimFrame) XXX_DiscardUnknown

func (m *AnimFrame) XXX_DiscardUnknown()

func (*AnimFrame) XXX_Marshal

func (m *AnimFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnimFrame) XXX_Merge

func (m *AnimFrame) XXX_Merge(src proto.Message)

func (*AnimFrame) XXX_Size

func (m *AnimFrame) XXX_Size() int

func (*AnimFrame) XXX_Unmarshal

func (m *AnimFrame) XXX_Unmarshal(b []byte) error

type Animation

type Animation struct {
	Name                 string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Clips                []*AnimationClip `protobuf:"bytes,2,rep,name=clips,proto3" json:"clips,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Animation) Descriptor

func (*Animation) Descriptor() ([]byte, []int)

func (*Animation) GetClips

func (m *Animation) GetClips() []*AnimationClip

func (*Animation) GetName added in v0.3.0

func (m *Animation) GetName() string

func (*Animation) ProtoMessage

func (*Animation) ProtoMessage()

func (*Animation) Reset

func (m *Animation) Reset()

func (*Animation) String

func (m *Animation) String() string

func (*Animation) XXX_DiscardUnknown

func (m *Animation) XXX_DiscardUnknown()

func (*Animation) XXX_Marshal

func (m *Animation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Animation) XXX_Merge

func (m *Animation) XXX_Merge(src proto.Message)

func (*Animation) XXX_Size

func (m *Animation) XXX_Size() int

func (*Animation) XXX_Unmarshal

func (m *Animation) XXX_Unmarshal(b []byte) error

type AnimationClip

type AnimationClip struct {
	Name                 string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Fps                  float32           `protobuf:"fixed32,2,opt,name=fps,proto3" json:"fps,omitempty"`
	ClipMode             AnimationClipMode `protobuf:"varint,3,opt,name=clip_mode,json=clipMode,proto3,enum=pb.AnimationClipMode" json:"clip_mode,omitempty"`
	Frames               []*AnimFrame      `protobuf:"bytes,4,rep,name=frames,proto3" json:"frames,omitempty"`
	EndedEvent           *AnimationEvent   `protobuf:"bytes,5,opt,name=ended_event,json=endedEvent,proto3" json:"ended_event,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*AnimationClip) Descriptor

func (*AnimationClip) Descriptor() ([]byte, []int)

func (*AnimationClip) GetClipMode

func (m *AnimationClip) GetClipMode() AnimationClipMode

func (*AnimationClip) GetEndedEvent

func (m *AnimationClip) GetEndedEvent() *AnimationEvent

func (*AnimationClip) GetFps

func (m *AnimationClip) GetFps() float32

func (*AnimationClip) GetFrames

func (m *AnimationClip) GetFrames() []*AnimFrame

func (*AnimationClip) GetName

func (m *AnimationClip) GetName() string

func (*AnimationClip) ProtoMessage

func (*AnimationClip) ProtoMessage()

func (*AnimationClip) Reset

func (m *AnimationClip) Reset()

func (*AnimationClip) String

func (m *AnimationClip) String() string

func (*AnimationClip) XXX_DiscardUnknown

func (m *AnimationClip) XXX_DiscardUnknown()

func (*AnimationClip) XXX_Marshal

func (m *AnimationClip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnimationClip) XXX_Merge

func (m *AnimationClip) XXX_Merge(src proto.Message)

func (*AnimationClip) XXX_Size

func (m *AnimationClip) XXX_Size() int

func (*AnimationClip) XXX_Unmarshal

func (m *AnimationClip) XXX_Unmarshal(b []byte) error

type AnimationClipMode

type AnimationClipMode int32
const (
	AnimationClipMode_ONCE          AnimationClipMode = 0
	AnimationClipMode_LOOP          AnimationClipMode = 1
	AnimationClipMode_PING_PONG     AnimationClipMode = 2
	AnimationClipMode_CLAMP_FOREVER AnimationClipMode = 4
)

func (AnimationClipMode) EnumDescriptor

func (AnimationClipMode) EnumDescriptor() ([]byte, []int)

func (AnimationClipMode) String

func (x AnimationClipMode) String() string

type AnimationEvent

type AnimationEvent struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AnimationEvent) Descriptor

func (*AnimationEvent) Descriptor() ([]byte, []int)

func (*AnimationEvent) GetName

func (m *AnimationEvent) GetName() string

func (*AnimationEvent) GetValue

func (m *AnimationEvent) GetValue() string

func (*AnimationEvent) ProtoMessage

func (*AnimationEvent) ProtoMessage()

func (*AnimationEvent) Reset

func (m *AnimationEvent) Reset()

func (*AnimationEvent) String

func (m *AnimationEvent) String() string

func (*AnimationEvent) XXX_DiscardUnknown

func (m *AnimationEvent) XXX_DiscardUnknown()

func (*AnimationEvent) XXX_Marshal

func (m *AnimationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnimationEvent) XXX_Merge

func (m *AnimationEvent) XXX_Merge(src proto.Message)

func (*AnimationEvent) XXX_Size

func (m *AnimationEvent) XXX_Size() int

func (*AnimationEvent) XXX_Unmarshal

func (m *AnimationEvent) XXX_Unmarshal(b []byte) error

type AtlasFile

type AtlasFile struct {
	Images               [][]byte                  `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	Filters              []ImageFilter             `protobuf:"varint,2,rep,packed,name=filters,proto3,enum=pb.ImageFilter" json:"filters,omitempty"`
	Frames               map[string]*Frame         `` /* 153-byte string literal not displayed */
	Clips                map[string]*AnimationClip `` /* 151-byte string literal not displayed */
	Animations           map[string]*Animation     `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*AtlasFile) Descriptor

func (*AtlasFile) Descriptor() ([]byte, []int)

func (*AtlasFile) GetAnimations added in v0.3.0

func (m *AtlasFile) GetAnimations() map[string]*Animation

func (*AtlasFile) GetClips added in v0.3.0

func (m *AtlasFile) GetClips() map[string]*AnimationClip

func (*AtlasFile) GetFilters

func (m *AtlasFile) GetFilters() []ImageFilter

func (*AtlasFile) GetFrames

func (m *AtlasFile) GetFrames() map[string]*Frame

func (*AtlasFile) GetImages

func (m *AtlasFile) GetImages() [][]byte

func (*AtlasFile) ProtoMessage

func (*AtlasFile) ProtoMessage()

func (*AtlasFile) Reset

func (m *AtlasFile) Reset()

func (*AtlasFile) String

func (m *AtlasFile) String() string

func (*AtlasFile) XXX_DiscardUnknown

func (m *AtlasFile) XXX_DiscardUnknown()

func (*AtlasFile) XXX_Marshal

func (m *AtlasFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AtlasFile) XXX_Merge

func (m *AtlasFile) XXX_Merge(src proto.Message)

func (*AtlasFile) XXX_Size

func (m *AtlasFile) XXX_Size() int

func (*AtlasFile) XXX_Unmarshal

func (m *AtlasFile) XXX_Unmarshal(b []byte) error

type Frame

type Frame struct {
	Image                uint32   `protobuf:"varint,1,opt,name=image,proto3" json:"image,omitempty"`
	X                    uint32   `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"`
	Y                    uint32   `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"`
	W                    uint32   `protobuf:"varint,4,opt,name=w,proto3" json:"w,omitempty"`
	H                    uint32   `protobuf:"varint,5,opt,name=h,proto3" json:"h,omitempty"`
	Ox                   int32    `protobuf:"varint,6,opt,name=ox,proto3" json:"ox,omitempty"`
	Oy                   int32    `protobuf:"varint,7,opt,name=oy,proto3" json:"oy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Frame) Descriptor

func (*Frame) Descriptor() ([]byte, []int)

func (*Frame) GetH

func (m *Frame) GetH() uint32

func (*Frame) GetImage

func (m *Frame) GetImage() uint32

func (*Frame) GetOx added in v0.3.0

func (m *Frame) GetOx() int32

func (*Frame) GetOy added in v0.3.0

func (m *Frame) GetOy() int32

func (*Frame) GetW

func (m *Frame) GetW() uint32

func (*Frame) GetX

func (m *Frame) GetX() uint32

func (*Frame) GetY

func (m *Frame) GetY() uint32

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) Reset

func (m *Frame) Reset()

func (*Frame) String

func (m *Frame) String() string

func (*Frame) XXX_DiscardUnknown

func (m *Frame) XXX_DiscardUnknown()

func (*Frame) XXX_Marshal

func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Frame) XXX_Merge

func (m *Frame) XXX_Merge(src proto.Message)

func (*Frame) XXX_Size

func (m *Frame) XXX_Size() int

func (*Frame) XXX_Unmarshal

func (m *Frame) XXX_Unmarshal(b []byte) error

type ImageFilter

type ImageFilter int32
const (
	// DEFAULT represents the default filter.
	ImageFilter_DEFAULT ImageFilter = 0
	// NEAREST represents nearest (crisp-edged) filter
	ImageFilter_NEAREST ImageFilter = 1
	// LINEAR represents linear filter
	ImageFilter_LINEAR ImageFilter = 2
)

func (ImageFilter) EnumDescriptor

func (ImageFilter) EnumDescriptor() ([]byte, []int)

func (ImageFilter) String

func (x ImageFilter) String() string

Jump to

Keyboard shortcuts

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