Documentation ¶
Index ¶
- Variables
- func ToEbitenFilter(t ImageFilter) ebiten.Filter
- type AnimFrame
- func (*AnimFrame) Descriptor() ([]byte, []int)
- func (m *AnimFrame) GetEvent() *AnimationEvent
- func (m *AnimFrame) GetFrameName() string
- func (*AnimFrame) ProtoMessage()
- func (m *AnimFrame) Reset()
- func (m *AnimFrame) String() string
- func (m *AnimFrame) XXX_DiscardUnknown()
- func (m *AnimFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AnimFrame) XXX_Merge(src proto.Message)
- func (m *AnimFrame) XXX_Size() int
- func (m *AnimFrame) XXX_Unmarshal(b []byte) error
- type Animation
- func (*Animation) Descriptor() ([]byte, []int)
- func (m *Animation) GetClips() []*AnimationClip
- func (m *Animation) GetName() string
- func (*Animation) ProtoMessage()
- func (m *Animation) Reset()
- func (m *Animation) String() string
- func (m *Animation) XXX_DiscardUnknown()
- func (m *Animation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Animation) XXX_Merge(src proto.Message)
- func (m *Animation) XXX_Size() int
- func (m *Animation) XXX_Unmarshal(b []byte) error
- type AnimationClip
- func (*AnimationClip) Descriptor() ([]byte, []int)
- func (m *AnimationClip) GetClipMode() AnimationClipMode
- func (m *AnimationClip) GetEndedEvent() *AnimationEvent
- func (m *AnimationClip) GetFps() float32
- func (m *AnimationClip) GetFrames() []*AnimFrame
- func (m *AnimationClip) GetName() string
- func (*AnimationClip) ProtoMessage()
- func (m *AnimationClip) Reset()
- func (m *AnimationClip) String() string
- func (m *AnimationClip) XXX_DiscardUnknown()
- func (m *AnimationClip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AnimationClip) XXX_Merge(src proto.Message)
- func (m *AnimationClip) XXX_Size() int
- func (m *AnimationClip) XXX_Unmarshal(b []byte) error
- type AnimationClipMode
- type AnimationEvent
- func (*AnimationEvent) Descriptor() ([]byte, []int)
- func (m *AnimationEvent) GetName() string
- func (m *AnimationEvent) GetValue() string
- func (*AnimationEvent) ProtoMessage()
- func (m *AnimationEvent) Reset()
- func (m *AnimationEvent) String() string
- func (m *AnimationEvent) XXX_DiscardUnknown()
- func (m *AnimationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AnimationEvent) XXX_Merge(src proto.Message)
- func (m *AnimationEvent) XXX_Size() int
- func (m *AnimationEvent) XXX_Unmarshal(b []byte) error
- type AtlasFile
- func (*AtlasFile) Descriptor() ([]byte, []int)
- func (m *AtlasFile) GetAnimations() map[string]*Animation
- func (m *AtlasFile) GetClips() map[string]*AnimationClip
- func (m *AtlasFile) GetFilters() []ImageFilter
- func (m *AtlasFile) GetFrames() map[string]*Frame
- func (m *AtlasFile) GetImages() [][]byte
- func (*AtlasFile) ProtoMessage()
- func (m *AtlasFile) Reset()
- func (m *AtlasFile) String() string
- func (m *AtlasFile) XXX_DiscardUnknown()
- func (m *AtlasFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AtlasFile) XXX_Merge(src proto.Message)
- func (m *AtlasFile) XXX_Size() int
- func (m *AtlasFile) XXX_Unmarshal(b []byte) error
- type Frame
- func (*Frame) Descriptor() ([]byte, []int)
- func (m *Frame) GetH() uint32
- func (m *Frame) GetImage() uint32
- func (m *Frame) GetOx() int32
- func (m *Frame) GetOy() int32
- func (m *Frame) GetW() uint32
- func (m *Frame) GetX() uint32
- func (m *Frame) GetY() uint32
- func (*Frame) ProtoMessage()
- func (m *Frame) Reset()
- func (m *Frame) String() string
- func (m *Frame) XXX_DiscardUnknown()
- func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Frame) XXX_Merge(src proto.Message)
- func (m *Frame) XXX_Size() int
- func (m *Frame) XXX_Unmarshal(b []byte) error
- type ImageFilter
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) GetEvent ¶
func (m *AnimFrame) GetEvent() *AnimationEvent
func (*AnimFrame) GetFrameName ¶ added in v0.3.0
func (*AnimFrame) ProtoMessage ¶
func (*AnimFrame) ProtoMessage()
func (*AnimFrame) XXX_DiscardUnknown ¶
func (m *AnimFrame) XXX_DiscardUnknown()
func (*AnimFrame) XXX_Marshal ¶
func (*AnimFrame) XXX_Unmarshal ¶
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) GetClips ¶
func (m *Animation) GetClips() []*AnimationClip
func (*Animation) ProtoMessage ¶
func (*Animation) ProtoMessage()
func (*Animation) XXX_DiscardUnknown ¶
func (m *Animation) XXX_DiscardUnknown()
func (*Animation) XXX_Marshal ¶
func (*Animation) XXX_Unmarshal ¶
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) GetAnimations ¶ added in v0.3.0
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) ProtoMessage ¶
func (*AtlasFile) ProtoMessage()
func (*AtlasFile) XXX_DiscardUnknown ¶
func (m *AtlasFile) XXX_DiscardUnknown()
func (*AtlasFile) XXX_Marshal ¶
func (*AtlasFile) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Frame) ProtoMessage()
func (*Frame) XXX_DiscardUnknown ¶
func (m *Frame) XXX_DiscardUnknown()
func (*Frame) XXX_Marshal ¶
func (*Frame) XXX_Unmarshal ¶
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
Click to show internal directories.
Click to hide internal directories.