memory

package
v0.0.0-...-9f6735e Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumWindows

func EnumWindows(enumFunc uintptr, lparam uintptr) (err error)

func FindProcessByName

func FindProcessByName(name string) (uint32, error)

func FindWindow

func FindWindow(title string) (syscall.Handle, error)

func GetBytes

func GetBytes(key interface{}) ([]byte, error)

func GetDLLModuleAddress

func GetDLLModuleAddress(nameDLL string, namePID uint32) *uint8

func GetDLLModuleAddressSize

func GetDLLModuleAddressSize(nameDLL string, namePID uint32) uint32

func GetProcessName

func GetProcessName(id uint32) string

func GetWindowText

func GetWindowText(hwnd syscall.Handle, str *uint16, maxCount int32) (len int32, err error)

func ListProcesses

func ListProcesses() []uint32

func SetLayeredWindowAttributes

func SetLayeredWindowAttributes(hwnd w32.HWND, cr w32.COLORREF, alpha byte, flags uint32) bool

Types

type CSMatrix

type CSMatrix [4][4]float32

type Editor

type Editor struct {
	DLLEngine int32
	DLLClient int32
	// contains filtered or unexported fields
}

func NewEditor

func NewEditor(procName string) (e *Editor)

func (Editor) Read

func (e Editor) Read(size int32, offsets ...int32) (RawData, error)

func (Editor) Read2

func (e Editor) Read2(size int32, offsets ...int32) RawData

todo: add error to RawData which carries error to the .Int32 functions and returns them there

func (Editor) Write

func (e Editor) Write(addr int32, data interface{}) error

type HitBox

type HitBox struct {
	Bone     int32      /// 0x00
	Group    int32      /// 0x04
	Mins     Vector3    /// 0x08
	Maxs     Vector3    /// 0x14
	HitBoxID int32      /// 0x20
	Pad1     [0xC]byte  /// 0x24
	Radius   float32    /// 0x30
	Pad2     [0x10]byte /// 0x34
}

type InternalPlayer

type InternalPlayer struct {
	//Pad1 [0xF4]byte //0x0000
	Team int32      //0x00F4
	Pad1 [0x8]byte  //0x00F8 oHealth-oTeamNumber-4
	HP   int32      //0x0100
	Pad2 [0x34]byte //0x0104 oVecOrigin-oHealth-4
	X    float32    //0x0138
	Y    float32    //0x013C
	Z    float32    //0x0140
}

type RawData

type RawData []byte

func (RawData) CSMatrix

func (r RawData) CSMatrix() CSMatrix

func (RawData) HitBox

func (r RawData) HitBox() HitBox

func (RawData) Int32

func (r RawData) Int32() int32

todo: move to types.go todo: add length checks

func (RawData) InternalPlayer

func (r RawData) InternalPlayer() (p InternalPlayer)

func (RawData) String

func (r RawData) String() string

func (RawData) Uintptr

func (r RawData) Uintptr() uintptr

type Vector2

type Vector2 struct {
	X, Y float32
}

type Vector3

type Vector3 struct {
	X, Y, Z float32
}

Jump to

Keyboard shortcuts

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