Documentation
¶
Overview ¶
Package studio serves Modlock Studio: one web page, built with the Modlock library, whose first workspace browses and draws the game's own assets from the player's install. Nothing of the game ships with Modlock; the page reads every asset through the local server from the files on disk.
Index ¶
- func Handler(page string, assets *Assets) http.Handler
- type Assets
- type Buffer
- func (m *Buffer) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Buffer) CloneVT() *Buffer
- func (this *Buffer) EqualMessageVT(thatMsg any) bool
- func (this *Buffer) EqualVT(that *Buffer) bool
- func (x *Buffer) GetCount() uint32
- func (x *Buffer) GetFields() []*Field
- func (x *Buffer) GetMeshopt() bool
- func (x *Buffer) GetStride() uint32
- func (x *Buffer) MarshalJSON() ([]byte, error)
- func (x *Buffer) MarshalProtoJSON(s *json.MarshalState)
- func (x *Buffer) MarshalProtoText() string
- func (m *Buffer) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Buffer) MarshalToVT(dAtA []byte) (int, error)
- func (m *Buffer) MarshalVT() (dAtA []byte, err error)
- func (*Buffer) ProtoMessage()
- func (x *Buffer) Reset()
- func (m *Buffer) SizeVT() (n int)
- func (x *Buffer) String() string
- func (x *Buffer) UnmarshalJSON(b []byte) error
- func (x *Buffer) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Buffer) UnmarshalVT(dAtA []byte) error
- type DrawCall
- func (m *DrawCall) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DrawCall) CloneVT() *DrawCall
- func (this *DrawCall) EqualMessageVT(thatMsg any) bool
- func (this *DrawCall) EqualVT(that *DrawCall) bool
- func (x *DrawCall) GetBaseVertex() int32
- func (x *DrawCall) GetIndexBuffer() uint32
- func (x *DrawCall) GetIndexCount() uint32
- func (x *DrawCall) GetMaterial() string
- func (x *DrawCall) GetStartIndex() uint32
- func (x *DrawCall) GetVertexBuffer() uint32
- func (x *DrawCall) MarshalJSON() ([]byte, error)
- func (x *DrawCall) MarshalProtoJSON(s *json.MarshalState)
- func (x *DrawCall) MarshalProtoText() string
- func (m *DrawCall) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DrawCall) MarshalToVT(dAtA []byte) (int, error)
- func (m *DrawCall) MarshalVT() (dAtA []byte, err error)
- func (*DrawCall) ProtoMessage()
- func (x *DrawCall) Reset()
- func (m *DrawCall) SizeVT() (n int)
- func (x *DrawCall) String() string
- func (x *DrawCall) UnmarshalJSON(b []byte) error
- func (x *DrawCall) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DrawCall) UnmarshalVT(dAtA []byte) error
- type Field
- func (m *Field) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Field) CloneVT() *Field
- func (this *Field) EqualMessageVT(thatMsg any) bool
- func (this *Field) EqualVT(that *Field) bool
- func (x *Field) GetFormat() uint32
- func (x *Field) GetIndex() uint32
- func (x *Field) GetOffset() uint32
- func (x *Field) GetSemantic() string
- func (x *Field) MarshalJSON() ([]byte, error)
- func (x *Field) MarshalProtoJSON(s *json.MarshalState)
- func (x *Field) MarshalProtoText() string
- func (m *Field) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Field) MarshalToVT(dAtA []byte) (int, error)
- func (m *Field) MarshalVT() (dAtA []byte, err error)
- func (*Field) ProtoMessage()
- func (x *Field) Reset()
- func (m *Field) SizeVT() (n int)
- func (x *Field) String() string
- func (x *Field) UnmarshalJSON(b []byte) error
- func (x *Field) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Field) UnmarshalVT(dAtA []byte) error
- type File
- func (m *File) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *File) CloneVT() *File
- func (this *File) EqualMessageVT(thatMsg any) bool
- func (this *File) EqualVT(that *File) bool
- func (x *File) GetDir() uint32
- func (x *File) GetName() string
- func (x *File) GetSize() uint64
- func (x *File) MarshalJSON() ([]byte, error)
- func (x *File) MarshalProtoJSON(s *json.MarshalState)
- func (x *File) MarshalProtoText() string
- func (m *File) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *File) MarshalToVT(dAtA []byte) (int, error)
- func (m *File) MarshalVT() (dAtA []byte, err error)
- func (*File) ProtoMessage()
- func (x *File) Reset()
- func (m *File) SizeVT() (n int)
- func (x *File) String() string
- func (x *File) UnmarshalJSON(b []byte) error
- func (x *File) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *File) UnmarshalVT(dAtA []byte) error
- type Listing
- func (m *Listing) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Listing) CloneVT() *Listing
- func (this *Listing) EqualMessageVT(thatMsg any) bool
- func (this *Listing) EqualVT(that *Listing) bool
- func (x *Listing) GetDirs() []string
- func (x *Listing) GetFiles() []*File
- func (x *Listing) MarshalJSON() ([]byte, error)
- func (x *Listing) MarshalProtoJSON(s *json.MarshalState)
- func (x *Listing) MarshalProtoText() string
- func (m *Listing) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Listing) MarshalToVT(dAtA []byte) (int, error)
- func (m *Listing) MarshalVT() (dAtA []byte, err error)
- func (*Listing) ProtoMessage()
- func (x *Listing) Reset()
- func (m *Listing) SizeVT() (n int)
- func (x *Listing) String() string
- func (x *Listing) UnmarshalJSON(b []byte) error
- func (x *Listing) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Listing) UnmarshalVT(dAtA []byte) error
- type Material
- func (m *Material) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Material) CloneVT() *Material
- func (this *Material) EqualMessageVT(thatMsg any) bool
- func (this *Material) EqualVT(that *Material) bool
- func (x *Material) GetShader() string
- func (x *Material) GetTextures() map[string]string
- func (x *Material) MarshalJSON() ([]byte, error)
- func (x *Material) MarshalProtoJSON(s *json.MarshalState)
- func (x *Material) MarshalProtoText() string
- func (m *Material) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Material) MarshalToVT(dAtA []byte) (int, error)
- func (m *Material) MarshalVT() (dAtA []byte, err error)
- func (*Material) ProtoMessage()
- func (x *Material) Reset()
- func (m *Material) SizeVT() (n int)
- func (x *Material) String() string
- func (x *Material) UnmarshalJSON(b []byte) error
- func (x *Material) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Material) UnmarshalVT(dAtA []byte) error
- type Material_TexturesEntry
- func (x *Material_TexturesEntry) GetKey() string
- func (x *Material_TexturesEntry) GetValue() string
- func (x *Material_TexturesEntry) MarshalJSON() ([]byte, error)
- func (x *Material_TexturesEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *Material_TexturesEntry) MarshalProtoText() string
- func (*Material_TexturesEntry) ProtoMessage()
- func (x *Material_TexturesEntry) Reset()
- func (x *Material_TexturesEntry) String() string
- func (x *Material_TexturesEntry) UnmarshalJSON(b []byte) error
- func (x *Material_TexturesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type Mesh
- func (m *Mesh) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Mesh) CloneVT() *Mesh
- func (this *Mesh) EqualMessageVT(thatMsg any) bool
- func (this *Mesh) EqualVT(that *Mesh) bool
- func (x *Mesh) GetDrawCalls() []*DrawCall
- func (x *Mesh) GetGroupMask() uint64
- func (x *Mesh) GetIndexBuffers() []*Buffer
- func (x *Mesh) GetLodMask() uint64
- func (x *Mesh) GetName() string
- func (x *Mesh) GetVertexBuffers() []*Buffer
- func (x *Mesh) MarshalJSON() ([]byte, error)
- func (x *Mesh) MarshalProtoJSON(s *json.MarshalState)
- func (x *Mesh) MarshalProtoText() string
- func (m *Mesh) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Mesh) MarshalToVT(dAtA []byte) (int, error)
- func (m *Mesh) MarshalVT() (dAtA []byte, err error)
- func (*Mesh) ProtoMessage()
- func (x *Mesh) Reset()
- func (m *Mesh) SizeVT() (n int)
- func (x *Mesh) String() string
- func (x *Mesh) UnmarshalJSON(b []byte) error
- func (x *Mesh) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Mesh) UnmarshalVT(dAtA []byte) error
- type Model
- func (m *Model) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Model) CloneVT() *Model
- func (this *Model) EqualMessageVT(thatMsg any) bool
- func (this *Model) EqualVT(that *Model) bool
- func (x *Model) GetDefaultGroups() uint64
- func (x *Model) GetGroups() []string
- func (x *Model) GetLods() uint32
- func (x *Model) GetMaterials() map[string]*Material
- func (x *Model) GetMeshes() []*Mesh
- func (x *Model) MarshalJSON() ([]byte, error)
- func (x *Model) MarshalProtoJSON(s *json.MarshalState)
- func (x *Model) MarshalProtoText() string
- func (m *Model) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Model) MarshalToVT(dAtA []byte) (int, error)
- func (m *Model) MarshalVT() (dAtA []byte, err error)
- func (*Model) ProtoMessage()
- func (x *Model) Reset()
- func (m *Model) SizeVT() (n int)
- func (x *Model) String() string
- func (x *Model) UnmarshalJSON(b []byte) error
- func (x *Model) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Model) UnmarshalVT(dAtA []byte) error
- type Model_MaterialsEntry
- func (x *Model_MaterialsEntry) GetKey() string
- func (x *Model_MaterialsEntry) GetValue() *Material
- func (x *Model_MaterialsEntry) MarshalJSON() ([]byte, error)
- func (x *Model_MaterialsEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *Model_MaterialsEntry) MarshalProtoText() string
- func (*Model_MaterialsEntry) ProtoMessage()
- func (x *Model_MaterialsEntry) Reset()
- func (x *Model_MaterialsEntry) String() string
- func (x *Model_MaterialsEntry) UnmarshalJSON(b []byte) error
- func (x *Model_MaterialsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type Resource
- func (m *Resource) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Resource) CloneVT() *Resource
- func (this *Resource) EqualMessageVT(thatMsg any) bool
- func (this *Resource) EqualVT(that *Resource) bool
- func (x *Resource) GetBlocks() []string
- func (x *Resource) GetJson() string
- func (x *Resource) MarshalJSON() ([]byte, error)
- func (x *Resource) MarshalProtoJSON(s *json.MarshalState)
- func (x *Resource) MarshalProtoText() string
- func (m *Resource) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Resource) MarshalToVT(dAtA []byte) (int, error)
- func (m *Resource) MarshalVT() (dAtA []byte, err error)
- func (*Resource) ProtoMessage()
- func (x *Resource) Reset()
- func (m *Resource) SizeVT() (n int)
- func (x *Resource) String() string
- func (x *Resource) UnmarshalJSON(b []byte) error
- func (x *Resource) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Resource) UnmarshalVT(dAtA []byte) error
- type Texture
- func (m *Texture) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Texture) CloneVT() *Texture
- func (this *Texture) EqualMessageVT(thatMsg any) bool
- func (this *Texture) EqualVT(that *Texture) bool
- func (x *Texture) GetCube() bool
- func (x *Texture) GetDepth() uint32
- func (x *Texture) GetFormat() uint32
- func (x *Texture) GetHeight() uint32
- func (x *Texture) GetMips() uint32
- func (x *Texture) GetServed() bool
- func (x *Texture) GetWidth() uint32
- func (x *Texture) MarshalJSON() ([]byte, error)
- func (x *Texture) MarshalProtoJSON(s *json.MarshalState)
- func (x *Texture) MarshalProtoText() string
- func (m *Texture) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Texture) MarshalToVT(dAtA []byte) (int, error)
- func (m *Texture) MarshalVT() (dAtA []byte, err error)
- func (*Texture) ProtoMessage()
- func (x *Texture) Reset()
- func (m *Texture) SizeVT() (n int)
- func (x *Texture) String() string
- func (x *Texture) UnmarshalJSON(b []byte) error
- func (x *Texture) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Texture) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
Assets serves the game's own files from the player's install, read where they lie: it never copies, converts or caches them on disk. The page decodes vertex and index buffers and uploads textures in their stored GPU formats, so the server does no pixel or vertex work.
func OpenAssets ¶
OpenAssets opens the archive at pak, such as game/citadel/pak01_dir.vpk in the Deadlock install. When it cannot, every asset route answers why, so the page can say it.
func Unavailable ¶
Unavailable returns Assets whose routes all answer err, for a player whose install could not be found.
type Buffer ¶
type Buffer struct {
// Count is the number of vertices or indices.
Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// Stride is the size of one vertex or index in bytes.
Stride uint32 `protobuf:"varint,2,opt,name=stride,proto3" json:"stride,omitempty"`
// Meshopt reports that the bytes are meshopt-encoded.
Meshopt bool `protobuf:"varint,3,opt,name=meshopt,proto3" json:"meshopt,omitempty"`
// Fields are a vertex buffer's attributes; an index buffer has none.
Fields []*Field `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}
Buffer describes one vertex or index buffer. The buffer route answers its bytes, meshopt-encoded when meshopt is set.
func (*Buffer) CloneMessageVT ¶
func (m *Buffer) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Buffer) EqualMessageVT ¶
func (*Buffer) GetMeshopt ¶
func (*Buffer) MarshalJSON ¶
MarshalJSON marshals the Buffer to JSON.
func (*Buffer) MarshalProtoJSON ¶
func (x *Buffer) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Buffer message to JSON.
func (*Buffer) MarshalProtoText ¶
func (*Buffer) MarshalToSizedBufferVT ¶
func (*Buffer) ProtoMessage ¶
func (*Buffer) ProtoMessage()
func (*Buffer) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Buffer from JSON.
func (*Buffer) UnmarshalProtoJSON ¶
func (x *Buffer) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Buffer message from JSON.
func (*Buffer) UnmarshalVT ¶
type DrawCall ¶
type DrawCall struct {
// Material is the material's resource name, without the _c suffix.
Material string `protobuf:"bytes,1,opt,name=material,proto3" json:"material,omitempty"`
// VertexBuffer is the vertex buffer's index in Mesh.vertex_buffers.
VertexBuffer uint32 `protobuf:"varint,2,opt,name=vertex_buffer,json=vertexBuffer,proto3" json:"vertexBuffer,omitempty"`
// IndexBuffer is the index buffer's index in Mesh.index_buffers.
IndexBuffer uint32 `protobuf:"varint,3,opt,name=index_buffer,json=indexBuffer,proto3" json:"indexBuffer,omitempty"`
// StartIndex is the first index the call draws.
StartIndex uint32 `protobuf:"varint,4,opt,name=start_index,json=startIndex,proto3" json:"startIndex,omitempty"`
// IndexCount is how many indices the call draws.
IndexCount uint32 `protobuf:"varint,5,opt,name=index_count,json=indexCount,proto3" json:"indexCount,omitempty"`
// BaseVertex is added to every index.
BaseVertex int32 `protobuf:"varint,6,opt,name=base_vertex,json=baseVertex,proto3" json:"baseVertex,omitempty"`
// contains filtered or unexported fields
}
DrawCall is one draw of a mesh: a range of one index buffer over one vertex buffer, with one material.
func (*DrawCall) CloneMessageVT ¶
func (m *DrawCall) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DrawCall) EqualMessageVT ¶
func (*DrawCall) GetBaseVertex ¶
func (*DrawCall) GetIndexBuffer ¶
func (*DrawCall) GetIndexCount ¶
func (*DrawCall) GetMaterial ¶
func (*DrawCall) GetStartIndex ¶
func (*DrawCall) GetVertexBuffer ¶
func (*DrawCall) MarshalJSON ¶
MarshalJSON marshals the DrawCall to JSON.
func (*DrawCall) MarshalProtoJSON ¶
func (x *DrawCall) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the DrawCall message to JSON.
func (*DrawCall) MarshalProtoText ¶
func (*DrawCall) MarshalToSizedBufferVT ¶
func (*DrawCall) ProtoMessage ¶
func (*DrawCall) ProtoMessage()
func (*DrawCall) UnmarshalJSON ¶
UnmarshalJSON unmarshals the DrawCall from JSON.
func (*DrawCall) UnmarshalProtoJSON ¶
func (x *DrawCall) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the DrawCall message from JSON.
func (*DrawCall) UnmarshalVT ¶
type Field ¶
type Field struct {
// Semantic is the attribute's semantic in upper case, such as "POSITION".
Semantic string `protobuf:"bytes,1,opt,name=semantic,proto3" json:"semantic,omitempty"`
// Index tells apart attributes of one semantic, such as two TEXCOORDs.
Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
// Format is the attribute's DXGI format.
Format uint32 `protobuf:"varint,3,opt,name=format,proto3" json:"format,omitempty"`
// Offset is the attribute's byte offset within a vertex.
Offset uint32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
// contains filtered or unexported fields
}
Field is one vertex attribute.
func (*Field) CloneMessageVT ¶
func (m *Field) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Field) EqualMessageVT ¶
func (*Field) GetSemantic ¶
func (*Field) MarshalJSON ¶
MarshalJSON marshals the Field to JSON.
func (*Field) MarshalProtoJSON ¶
func (x *Field) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Field message to JSON.
func (*Field) MarshalProtoText ¶
func (*Field) MarshalToSizedBufferVT ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Field from JSON.
func (*Field) UnmarshalProtoJSON ¶
func (x *Field) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Field message from JSON.
func (*Field) UnmarshalVT ¶
type File ¶
type File struct {
// Dir is the file's directory, by its position in Listing.dirs.
Dir uint32 `protobuf:"varint,1,opt,name=dir,proto3" json:"dir,omitempty"`
// Name is the file's name within its directory, such as "archer.vmdl_c".
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Size is the file's size in bytes.
Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
File is one file of the archive.
func (*File) CloneMessageVT ¶
func (m *File) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*File) EqualMessageVT ¶
func (*File) MarshalJSON ¶
MarshalJSON marshals the File to JSON.
func (*File) MarshalProtoJSON ¶
func (x *File) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the File message to JSON.
func (*File) MarshalProtoText ¶
func (*File) MarshalToSizedBufferVT ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) UnmarshalJSON ¶
UnmarshalJSON unmarshals the File from JSON.
func (*File) UnmarshalProtoJSON ¶
func (x *File) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the File message from JSON.
func (*File) UnmarshalVT ¶
type Listing ¶
type Listing struct {
// Dirs are the archive's directories, sorted, such as "models/heroes_wip".
// The archive's root is the empty string.
Dirs []string `protobuf:"bytes,1,rep,name=dirs,proto3" json:"dirs,omitempty"`
// Files are the archive's files, sorted by directory and then by name.
Files []*File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
// contains filtered or unexported fields
}
Listing is every file in the game's archive, grouped by directory so each directory's path is sent once.
func (*Listing) CloneMessageVT ¶
func (m *Listing) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Listing) EqualMessageVT ¶
func (*Listing) MarshalJSON ¶
MarshalJSON marshals the Listing to JSON.
func (*Listing) MarshalProtoJSON ¶
func (x *Listing) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Listing message to JSON.
func (*Listing) MarshalProtoText ¶
func (*Listing) MarshalToSizedBufferVT ¶
func (*Listing) ProtoMessage ¶
func (*Listing) ProtoMessage()
func (*Listing) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Listing from JSON.
func (*Listing) UnmarshalProtoJSON ¶
func (x *Listing) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Listing message from JSON.
func (*Listing) UnmarshalVT ¶
type Material ¶
type Material struct {
// Shader is the shader's name, such as "pbr.vfx".
Shader string `protobuf:"bytes,1,opt,name=shader,proto3" json:"shader,omitempty"`
// Textures maps each texture parameter, such as "g_tColor", to the
// compiled texture's archive path.
Textures map[string]string `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
Material is a material's shader and textures.
func (*Material) CloneMessageVT ¶
func (m *Material) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Material) EqualMessageVT ¶
func (*Material) GetTextures ¶
func (*Material) MarshalJSON ¶
MarshalJSON marshals the Material to JSON.
func (*Material) MarshalProtoJSON ¶
func (x *Material) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Material message to JSON.
func (*Material) MarshalProtoText ¶
func (*Material) MarshalToSizedBufferVT ¶
func (*Material) ProtoMessage ¶
func (*Material) ProtoMessage()
func (*Material) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Material from JSON.
func (*Material) UnmarshalProtoJSON ¶
func (x *Material) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Material message from JSON.
func (*Material) UnmarshalVT ¶
type Material_TexturesEntry ¶
type Material_TexturesEntry struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Material_TexturesEntry) GetKey ¶
func (x *Material_TexturesEntry) GetKey() string
func (*Material_TexturesEntry) GetValue ¶
func (x *Material_TexturesEntry) GetValue() string
func (*Material_TexturesEntry) MarshalJSON ¶
func (x *Material_TexturesEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Material_TexturesEntry to JSON.
func (*Material_TexturesEntry) MarshalProtoJSON ¶
func (x *Material_TexturesEntry) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Material_TexturesEntry message to JSON.
func (*Material_TexturesEntry) MarshalProtoText ¶
func (x *Material_TexturesEntry) MarshalProtoText() string
func (*Material_TexturesEntry) ProtoMessage ¶
func (*Material_TexturesEntry) ProtoMessage()
func (*Material_TexturesEntry) Reset ¶
func (x *Material_TexturesEntry) Reset()
func (*Material_TexturesEntry) String ¶
func (x *Material_TexturesEntry) String() string
func (*Material_TexturesEntry) UnmarshalJSON ¶
func (x *Material_TexturesEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Material_TexturesEntry from JSON.
func (*Material_TexturesEntry) UnmarshalProtoJSON ¶
func (x *Material_TexturesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Material_TexturesEntry message from JSON.
type Mesh ¶
type Mesh struct {
// Name is the mesh's name, often empty.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// VertexBuffers are the mesh's vertex buffers, by draw call buffer index.
VertexBuffers []*Buffer `protobuf:"bytes,2,rep,name=vertex_buffers,json=vertexBuffers,proto3" json:"vertexBuffers,omitempty"`
// IndexBuffers are the mesh's index buffers, by draw call buffer index.
IndexBuffers []*Buffer `protobuf:"bytes,3,rep,name=index_buffers,json=indexBuffers,proto3" json:"indexBuffers,omitempty"`
// DrawCalls are the mesh's draw calls across its scene objects.
DrawCalls []*DrawCall `protobuf:"bytes,4,rep,name=draw_calls,json=drawCalls,proto3" json:"drawCalls,omitempty"`
// LodMask has bit n set when the mesh draws at level of detail n.
LodMask uint64 `protobuf:"varint,5,opt,name=lod_mask,json=lodMask,proto3" json:"lodMask,omitempty"`
// GroupMask has bit n set when the mesh belongs to mesh group n.
GroupMask uint64 `protobuf:"varint,6,opt,name=group_mask,json=groupMask,proto3" json:"groupMask,omitempty"`
// contains filtered or unexported fields
}
Mesh is one mesh of a model.
func (*Mesh) CloneMessageVT ¶
func (m *Mesh) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Mesh) EqualMessageVT ¶
func (*Mesh) GetDrawCalls ¶
func (*Mesh) GetGroupMask ¶
func (*Mesh) GetIndexBuffers ¶
func (*Mesh) GetLodMask ¶
func (*Mesh) GetVertexBuffers ¶
func (*Mesh) MarshalJSON ¶
MarshalJSON marshals the Mesh to JSON.
func (*Mesh) MarshalProtoJSON ¶
func (x *Mesh) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Mesh message to JSON.
func (*Mesh) MarshalProtoText ¶
func (*Mesh) MarshalToSizedBufferVT ¶
func (*Mesh) ProtoMessage ¶
func (*Mesh) ProtoMessage()
func (*Mesh) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Mesh from JSON.
func (*Mesh) UnmarshalProtoJSON ¶
func (x *Mesh) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Mesh message from JSON.
func (*Mesh) UnmarshalVT ¶
type Model ¶
type Model struct {
// Meshes are the model's meshes in the order the buffer route numbers them.
Meshes []*Mesh `protobuf:"bytes,1,rep,name=meshes,proto3" json:"meshes,omitempty"`
// Groups names the model's mesh groups, by bit of Mesh.group_mask.
Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
// DefaultGroups is the mask of mesh groups the game draws by default; zero
// means every group.
DefaultGroups uint64 `protobuf:"varint,3,opt,name=default_groups,json=defaultGroups,proto3" json:"defaultGroups,omitempty"`
// Lods is how many levels of detail the model has, at least one.
Lods uint32 `protobuf:"varint,4,opt,name=lods,proto3" json:"lods,omitempty"`
// Materials holds each material the draw calls name, by its name.
Materials map[string]*Material `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
Model is a compiled model: every mesh it holds, in every mesh group and level of detail, and the materials its draw calls name.
func (*Model) CloneMessageVT ¶
func (m *Model) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Model) EqualMessageVT ¶
func (*Model) GetDefaultGroups ¶
func (*Model) GetMaterials ¶
func (*Model) MarshalJSON ¶
MarshalJSON marshals the Model to JSON.
func (*Model) MarshalProtoJSON ¶
func (x *Model) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Model message to JSON.
func (*Model) MarshalProtoText ¶
func (*Model) MarshalToSizedBufferVT ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Model from JSON.
func (*Model) UnmarshalProtoJSON ¶
func (x *Model) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Model message from JSON.
func (*Model) UnmarshalVT ¶
type Model_MaterialsEntry ¶
type Model_MaterialsEntry struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *Material `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Model_MaterialsEntry) GetKey ¶
func (x *Model_MaterialsEntry) GetKey() string
func (*Model_MaterialsEntry) GetValue ¶
func (x *Model_MaterialsEntry) GetValue() *Material
func (*Model_MaterialsEntry) MarshalJSON ¶
func (x *Model_MaterialsEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Model_MaterialsEntry to JSON.
func (*Model_MaterialsEntry) MarshalProtoJSON ¶
func (x *Model_MaterialsEntry) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Model_MaterialsEntry message to JSON.
func (*Model_MaterialsEntry) MarshalProtoText ¶
func (x *Model_MaterialsEntry) MarshalProtoText() string
func (*Model_MaterialsEntry) ProtoMessage ¶
func (*Model_MaterialsEntry) ProtoMessage()
func (*Model_MaterialsEntry) Reset ¶
func (x *Model_MaterialsEntry) Reset()
func (*Model_MaterialsEntry) String ¶
func (x *Model_MaterialsEntry) String() string
func (*Model_MaterialsEntry) UnmarshalJSON ¶
func (x *Model_MaterialsEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Model_MaterialsEntry from JSON.
func (*Model_MaterialsEntry) UnmarshalProtoJSON ¶
func (x *Model_MaterialsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Model_MaterialsEntry message from JSON.
type Resource ¶
type Resource struct {
// Blocks are the resource's block tags in file order, such as "DATA".
Blocks []string `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
// Json holds each KeyValues3 block decoded, as one JSON object keyed by
// block tag.
Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"`
// contains filtered or unexported fields
}
Resource is any compiled resource's blocks.
func (*Resource) CloneMessageVT ¶
func (m *Resource) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Resource) EqualMessageVT ¶
func (*Resource) MarshalJSON ¶
MarshalJSON marshals the Resource to JSON.
func (*Resource) MarshalProtoJSON ¶
func (x *Resource) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Resource message to JSON.
func (*Resource) MarshalProtoText ¶
func (*Resource) MarshalToSizedBufferVT ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Resource from JSON.
func (*Resource) UnmarshalProtoJSON ¶
func (x *Resource) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Resource message from JSON.
func (*Resource) UnmarshalVT ¶
type Texture ¶
type Texture struct {
// Width is the largest mip's width in texels.
Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
// Height is the largest mip's height in texels.
Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// Depth is the largest mip's depth; one for a flat texture.
Depth uint32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"`
// Format is the texture's stored format, as the game numbers it.
Format uint32 `protobuf:"varint,4,opt,name=format,proto3" json:"format,omitempty"`
// Mips is how many mips the file holds.
Mips uint32 `protobuf:"varint,5,opt,name=mips,proto3" json:"mips,omitempty"`
// Cube reports a cube map, whose mips hold six faces.
Cube bool `protobuf:"varint,6,opt,name=cube,proto3" json:"cube,omitempty"`
// Served reports that the mip route can answer this format's mips.
Served bool `protobuf:"varint,7,opt,name=served,proto3" json:"served,omitempty"`
// contains filtered or unexported fields
}
Texture is a compiled texture's header.
func (*Texture) CloneMessageVT ¶
func (m *Texture) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Texture) EqualMessageVT ¶
func (*Texture) MarshalJSON ¶
MarshalJSON marshals the Texture to JSON.
func (*Texture) MarshalProtoJSON ¶
func (x *Texture) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Texture message to JSON.
func (*Texture) MarshalProtoText ¶
func (*Texture) MarshalToSizedBufferVT ¶
func (*Texture) ProtoMessage ¶
func (*Texture) ProtoMessage()
func (*Texture) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Texture from JSON.
func (*Texture) UnmarshalProtoJSON ¶
func (x *Texture) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Texture message from JSON.