entity

package
Version: v0.0.0-...-4859cea Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslatePacket

func TranslatePacket(pk packet.Packet, store *Store) bool

TranslatePacket translates the EntityRuntimeID inside of certain packets.

Types

type Store

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

Store is an entity store, used for translating the entity runtime ids.

func (*Store) Clear

func (store *Store) Clear() *Store

Clear clears the entity store.

func (*Store) Delete

func (store *Store) Delete(eid int64) *Store

Delete removes an entity from the store.

func (*Store) Get

func (store *Store) Get(eid int64) int64

Get gets the alternative runtimeid for the supplied runtimeid.

func (*Store) Range

func (store *Store) Range(fun func(key, value interface{}) bool)

Range loops through the entity store.

func (*Store) Set

func (store *Store) Set(one, two int64) *Store

Set sets the runtime id and the alternative runtime id.

Jump to

Keyboard shortcuts

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