gstext

package module
v0.0.0-...-53f5ec9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

gstext

Game story text interpreter

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "1.0.0"

Functions

This section is empty.

Types

type GameText

type GameText struct {
	Scriptname    string `json:"scriptname" xml:"scriptname" yaml:"scriptname" toml:"scriptname"`
	Description   string `json:"description" xml:"description" yaml:"description" toml:"description"`
	Author        string `json:"author" xml:"author" yaml:"author" toml:"author"`
	Formatversion string `json:"formatversion" xml:"formatversion" yaml:"formatversion" toml:"formatversion"`
	Text          []Text `json:"text" xml:"text" yaml:"text" toml:"text"`
}

func JSONUnmarshalGameText

func JSONUnmarshalGameText(data []byte) (GameText, error)

func TOMLUnmarshalGameText

func TOMLUnmarshalGameText(data []byte) (GameText, error)

func XMLUnmarshalGameText

func XMLUnmarshalGameText(data []byte) (GameText, error)

func YAMLUnmarshalGameText

func YAMLUnmarshalGameText(data []byte) (GameText, error)

func (*GameText) JSONMarshal

func (r *GameText) JSONMarshal() ([]byte, error)

func (*GameText) TOMLMarshal

func (r *GameText) TOMLMarshal() ([]byte, error)

func (*GameText) XMLMarshal

func (r *GameText) XMLMarshal() ([]byte, error)

func (*GameText) YAMLMarshal

func (r *GameText) YAMLMarshal() ([]byte, error)

type Text

type Text struct {
	Type    string `json:"type" xml:"type" yaml:"type" toml:"type"`
	Meta    string `json:"meta" xml:"meta" yaml:"meta" toml:"meta"`
	Remark  string `json:"remark" xml:"remark" yaml:"remark" toml:"remark"`
	Content string `json:"content" xml:"content" yaml:"content" toml:"content"`
}

Directories

Path Synopsis
cmd
ui

Jump to

Keyboard shortcuts

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