codegen

package
v0.0.0-...-6b508d1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildingPrototypeId_Main uint8 = iota + 1
	BuildingPrototypeId_Pit
	BuildingPrototypeId_Mine
)
View Source
const (
	UnitPrototypeId_AntiAir uint8 = iota + 1
	UnitPrototypeId_Air
	UnitPrototypeId_Tank
	UnitPrototypeId_Worker
	UnitPrototypeId_Turret
)

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type Building

type Building struct {
	Object
}

type Object

type Object struct {
	PrototypeId uint8
	Position    Point
}

type Player

type Player struct {
	Id         uint8
	Buildings  []*Building
	Units      []*Unit
	SpawnArea  image.Rectangle
	WorkerPort image.Point
}

type Point

type Point struct {
	X, Y int
}

type Unit

type Unit struct {
	Object
	Command uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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