entities

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

README

pkg/entities

This package defines the core entities used in the launchrail application.

Responsibility

  • Define the data structures for rockets, flights, and other relevant entities.
  • Provide a consistent and well-defined data model for the application.

Scope

  • Include all necessary attributes for each entity.
  • Support different units of measurement.

Gotchas

  • Ensuring data consistency across the application.
  • Handling changes to the data model.

Test Suite Overview

The test suite includes unit tests for the core entities, including:

  • Validating the data structures.
  • Ensuring data consistency.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RocketEntity

type RocketEntity struct {
	*ecs.BasicEntity
	*states.PhysicsState
	*types.Mass
	// contains filtered or unexported fields
}

RocketEntity represents a complete rocket with all its components

func NewRocketEntity

func NewRocketEntity(world *ecs.World, orkData *openrocket.RocketDocument, motor *components.Motor) *RocketEntity

NewRocketEntity creates a new rocket entity from OpenRocket data

func (*RocketEntity) GetComponent

func (r *RocketEntity) GetComponent(name string) interface{}

AddComponent adds a component to the entity

Jump to

Keyboard shortcuts

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