watch

package
v0.0.0-...-71ffa5d Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckObjects

func CheckObjects(watcher Watcher, oldObj *visible_objects.VisibleObject, id, teamID int,
	typeMark, typeObject string, view, radar bool, uuidObj string, data, updateData []byte) (string, string, *visible_objects.VisibleObject)

func CheckViewCoordinate

func CheckViewCoordinate(watcher Watcher, x, y int, b *battle.Battle, units []*unit.Unit, radius int) (bool, bool)

Types

type Watcher

type Watcher interface {
	InitVisibleObjects()
	GetVisibleObjectByTypeAndID(string, int) *visible_objects.VisibleObject
	GetVisibleObjects() <-chan *visible_objects.VisibleObject
	UnsafeRangeVisibleObjects() ([]*visible_objects.VisibleObject, *sync.RWMutex)
	RemoveVisibleObject(removeObj *visible_objects.VisibleObject)
	AddDynamicObject(object *dynamic_map_object.Object, mapID int, view, radar bool, mapTime int64)
	RemoveDynamicObject(id int)
	GetMapDynamicObjects(mapID int) <-chan *visible_objects.VisibleObject
	UnsafeRangeMapDynamicObjects() ([]*visible_objects.VisibleObject, *sync.RWMutex)
	GetMapDynamicObjectByID(id int) *visible_objects.VisibleObject
	AddVisibleObject(newObj *visible_objects.VisibleObject)
	GetTeamID() int
	CheckUnion(id int) bool
}

Jump to

Keyboard shortcuts

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