Documentation ¶
Index ¶
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) GetTemplate() map[string]*File_Template
- func (f *File) Normalize() error
- func (*File) ProtoMessage()
- func (f *File) Render(spec *templateproto.Specifier) (*dm.Quest_Desc, error)
- func (m *File) Reset()
- func (m *File) String() string
- func (m *File) XXX_DiscardUnknown()
- func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *File) XXX_Merge(src proto.Message)
- func (m *File) XXX_Size() int
- func (m *File) XXX_Unmarshal(b []byte) error
- type File_Template
- func (*File_Template) Descriptor() ([]byte, []int)
- func (m *File_Template) GetDistributorConfigName() string
- func (m *File_Template) GetDistributorParameters() *templateproto.File_Template
- func (m *File_Template) GetMeta() *v1.Quest_Desc_Meta
- func (m *File_Template) GetParameters() *templateproto.File_Template
- func (t *File_Template) Normalize() error
- func (*File_Template) ProtoMessage()
- func (m *File_Template) Reset()
- func (m *File_Template) String() string
- func (m *File_Template) XXX_DiscardUnknown()
- func (m *File_Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *File_Template) XXX_Merge(src proto.Message)
- func (m *File_Template) XXX_Size() int
- func (m *File_Template) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Template map[string]*File_Template `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
File represents a file full of DM template definitions.
func (*File) Descriptor ¶
func (*File) GetTemplate ¶
func (m *File) GetTemplate() map[string]*File_Template
func (*File) Normalize ¶
Normalize will normalize all of the Templates in this message, returning an error if any are invalid.
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) Render ¶
func (f *File) Render(spec *templateproto.Specifier) (*dm.Quest_Desc, error)
Render renders the specified template with the given parameters.
func (*File) XXX_DiscardUnknown ¶
func (m *File) XXX_DiscardUnknown()
func (*File) XXX_Unmarshal ¶
type File_Template ¶
type File_Template struct { DistributorConfigName string `` /* 126-byte string literal not displayed */ Parameters *templateproto.File_Template `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"` DistributorParameters *templateproto.File_Template `protobuf:"bytes,3,opt,name=distributor_parameters,json=distributorParameters,proto3" json:"distributor_parameters,omitempty"` Meta *v1.Quest_Desc_Meta `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Template defines a single template.
func (*File_Template) Descriptor ¶
func (*File_Template) Descriptor() ([]byte, []int)
func (*File_Template) GetDistributorConfigName ¶
func (m *File_Template) GetDistributorConfigName() string
func (*File_Template) GetDistributorParameters ¶
func (m *File_Template) GetDistributorParameters() *templateproto.File_Template
func (*File_Template) GetMeta ¶
func (m *File_Template) GetMeta() *v1.Quest_Desc_Meta
func (*File_Template) GetParameters ¶
func (m *File_Template) GetParameters() *templateproto.File_Template
func (*File_Template) Normalize ¶
func (t *File_Template) Normalize() error
Normalize will normalize this Template, returning an error if it is invalid.
func (*File_Template) ProtoMessage ¶
func (*File_Template) ProtoMessage()
func (*File_Template) Reset ¶
func (m *File_Template) Reset()
func (*File_Template) String ¶
func (m *File_Template) String() string
func (*File_Template) XXX_DiscardUnknown ¶
func (m *File_Template) XXX_DiscardUnknown()
func (*File_Template) XXX_Marshal ¶
func (m *File_Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*File_Template) XXX_Merge ¶
func (m *File_Template) XXX_Merge(src proto.Message)
func (*File_Template) XXX_Size ¶
func (m *File_Template) XXX_Size() int
func (*File_Template) XXX_Unmarshal ¶
func (m *File_Template) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.