probe

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package probe holds the ECS components this test game adds on top of the physics2d plugin's own Transform2D / Velocity2D / PhysicsBody2D.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	Scenario string `json:"scenario"`
	Label    string `json:"label"`
}

Probe tags every entity the test harness spawns. Scenario is the owning scenario's name and Label identifies the body inside that scenario, so failure messages can name the exact body that misbehaved instead of a bare entity ID.

func (Probe) AppendWire added in v0.16.9

func (c Probe) AppendWire(b []byte) []byte

func (Probe) FromProto added in v0.17.0

func (c Probe) FromProto(p *pbprobe.Probe) Probe

func (Probe) MarshalWire

func (c Probe) MarshalWire() []byte

func (Probe) Name

func (Probe) Name() string

Name returns the ECS component name.

func (Probe) ProtoDescriptor added in v0.17.0

func (c Probe) ProtoDescriptor() protoreflect.MessageDescriptor

func (Probe) SizeWire added in v0.16.9

func (c Probe) SizeWire() int

func (Probe) ToProto added in v0.17.0

func (c Probe) ToProto() *pbprobe.Probe

func (Probe) UnmarshalWire

func (c Probe) UnmarshalWire(data []byte) (any, error)

Jump to

Keyboard shortcuts

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