gametexts

package
Version: v0.0.0-...-1f9a799 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const STATUS_ACTIVE = 2
View Source
const STATUS_DISABLED = 0
View Source
const STATUS_SUBMITTED = 1
View Source
const TEXT_MAX_LENGTH = 240
View Source
const TEXT_MIN_LENGTH = 160

Variables

This section is empty.

Functions

func CreateText

func CreateText(data map[string]interface{}) entities.GameText

func GetActiveTextLanguages

func GetActiveTextLanguages() []entities.Language

Retrieves list of languages that are actually used by texts in game

func GetText

func GetText(textId string) (entities.GameText, bool)

func GetTextLanguages

func GetTextLanguages() []entities.Language

func UpdateText

func UpdateText(textId string, data map[string]interface{}) entities.GameText

func ValidateText

func ValidateText(data map[string]interface{}) (bool, map[string]string)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL