dogma

package
v0.0.0-...-ca7d38b Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateOnline     = 17
	StateActive     = 31
	StateOverloaded = 63
)

Module state constants

View Source
const (
	EffectArmorRepair                  = 27
	EffectEMPWave                      = 38
	EffectEnergyNeutralizerFalloff     = 6187
	EffectEnergyNosferatuFalloff       = 6197
	EffectFighterMissile               = 4729
	EffectFueledArmorRepair            = 5275
	EffectFueledShieldBoosting         = 4936
	EffectHiPower                      = 12
	EffectLoPower                      = 11
	EffectMedPower                     = 13
	EffectMiningLaser                  = 67
	EffectProjectileFired              = 34
	EffectRemoteArmorRepairFalloff     = 6188
	EffectRemoteHullRepairFalloff      = 6185
	EffectRemoteShieldTransferFalloff  = 6186
	EffectRemoteEnergyTransfer         = 6184
	EffectAncillaryRemoteShieldBooster = 6652
	EffectAncillaryRemoteArmorRepairer = 6651
	EffectRigSlot                      = 2663
	EffectShieldBoosting               = 4
	EffectStructureRepair              = 26
	EffectSubSystem                    = 3772
	EffectTargetAttack                 = 10
	EffectUseMissiles                  = 101
)

Effect constants

Variables

This section is empty.

Functions

func IsAbyssal

func IsAbyssal(typeID int32) bool

func IsCyno

func IsCyno(typeID int32) bool

func IsFitted

func IsFitted(location int32) bool

func SwapAbyssal

func SwapAbyssal(typeID int32) int32

SwapAbyssal to a T2 module

func UcFirst

func UcFirst(str string) string

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context is a single instance in the fitting engine

func NewContext

func NewContext() (*Context, error)

NewContext returns a new context. This must be destroyed if successful.

func (*Context) ActivateAllModules

func (c *Context) ActivateAllModules() error

ActivateAllModules on a ship

func (*Context) AddCharge

func (c *Context) AddCharge(t uint32, idx C.dogma_key_t) error

AddCharge to a module

func (*Context) AddDrone

func (c *Context) AddDrone(t uint32, num uint8) error

AddDrone to a ship

func (*Context) AddModule

func (c *Context) AddModule(t uint32, location int32) (C.dogma_key_t, error)

AddModule to a ship

func (*Context) AddModuleAndCharge

func (c *Context) AddModuleAndCharge(t uint32, ch uint32, location int32) (C.dogma_key_t, error)

AddModuleAndCharge to a ship

func (*Context) CPULeft

func (c *Context) CPULeft() (float64, error)

CPULeft of the current fit

func (*Context) DeactivateMWD

func (c *Context) DeactivateMWD() error

DeactivateMWD on a ship

func (*Context) Destroy

func (c *Context) Destroy() error

Destroy the context when finished

func (*Context) GetAttributes

func (c *Context) GetAttributes() (*attributes.Attributes, error)

GetAttributes gets all the fit attributes

func (*Context) GetCategory

func (c *Context) GetCategory(t uint32) uint8

GetCategory of a type

func (*Context) GetChargeAttribute

func (c *Context) GetChargeAttribute(t uint16, i C.dogma_key_t) (float64, error)

GetChargeAttribute of a charge in a module, on a ship

func (*Context) GetChargeAttributes

func (c *Context) GetChargeAttributes(attrIds []uint16, idx C.dogma_key_t) ([]float64, error)

GetChargeAttributes Get all the things of a charge, in a module, on a ship.

func (*Context) GetDroneAttribute

func (c *Context) GetDroneAttribute(t uint16, i C.dogma_typeid_t) (float64, error)

GetDroneAttribute of a fitted drone on a ship

func (*Context) GetModuleAttribute

func (c *Context) GetModuleAttribute(t uint16, i C.dogma_key_t) (float64, error)

GetModuleAttribute of a fitted module on a ship

func (*Context) GetShipAttribute

func (c *Context) GetShipAttribute(t uint16) (float64, error)

GetShipAttribute of the current fit

func (*Context) PowerLeft

func (c *Context) PowerLeft() (float64, error)

PowerLeft of the current fitting

func (*Context) RemoveModule

func (c *Context) RemoveModule(idx C.dogma_key_t) error

RemoveModule from a ship

func (*Context) SetShip

func (c *Context) SetShip(t uint32) error

SetShip changes the context ship

func (*Context) Strip

func (c *Context) Strip()

Strip all the modules from a ship

func (*Context) Validate

func (c *Context) Validate() (float64, float64, error)

Validate the current fit? Probably delete this

Jump to

Keyboard shortcuts

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