prototyping

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Id         int               `json:"Id"`
	Name       string            `json:"Name"`
	Properties map[string]string `json:"Properties"`
	Stats      map[string]int    `json:"Stats"`
	Tags       sets.Set[string]  `json:"Tags"`
}

func NewEntity

func NewEntity(id int, name string) *Entity

func (*Entity) Clone

func (e *Entity) Clone() *Entity

func (*Entity) WithProperty

func (e *Entity) WithProperty(key string, value string) *Entity

func (*Entity) WithStat

func (e *Entity) WithStat(key string, value int) *Entity

func (*Entity) WithTag

func (e *Entity) WithTag(key string) *Entity

Jump to

Keyboard shortcuts

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