object

package
v0.0.0-...-af996ba Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

Base holds the base information for Objects.

func (*Base) ID

func (obj *Base) ID() uint64

ID returns a unique ID for the object.

func (*Base) InitTypeAndID

func (obj *Base) InitTypeAndID(self interface{})

InitTypeAndID initializes the object with the appropriate self-identification information.

func (*Base) Is

func (obj *Base) Is(other Object) bool

Is returns true if this object is the passed-in object.

func (*Base) Self

func (obj *Base) Self() interface{}

Self returns this object.

type Object

type Object interface {
	// ID returns a unique ID for the object.
	ID() uint64
	// Self returns this object.
	Self() interface{}
	// Is returns true if this object is the passed-in object.
	Is(other Object) bool
}

Object defines what a generic object must implement.

Jump to

Keyboard shortcuts

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