contexts

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextSet

type ContextSet struct {
	Data map[string]*NamedContext
}

func Merge

func Merge(contextSets ...*ContextSet) *ContextSet

func NewContextSet

func NewContextSet() *ContextSet

func NewContextSetFromProto

func NewContextSetFromProto(protoContextSet *prefabProto.ContextSet) *ContextSet

func (*ContextSet) GetContextValue

func (c *ContextSet) GetContextValue(propertyName string) (any, bool)

func (*ContextSet) SetNamedContext

func (c *ContextSet) SetNamedContext(newNamedContext *NamedContext)

func (*ContextSet) WithNamedContext

func (c *ContextSet) WithNamedContext(newNamedContext *NamedContext) *ContextSet

func (*ContextSet) WithNamedContextValues

func (c *ContextSet) WithNamedContextValues(name string, values map[string]interface{}) *ContextSet

type NamedContext

type NamedContext struct {
	Data map[string]any
	Name string
}

func NewNamedContext

func NewNamedContext() *NamedContext

func NewNamedContextFromProto

func NewNamedContextFromProto(ctx *prefabProto.Context) *NamedContext

func NewNamedContextWithValues

func NewNamedContextWithValues(name string, values map[string]any) *NamedContext

Jump to

Keyboard shortcuts

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