Documentation ¶
Index ¶
- Constants
- func IsAbyssal(typeID int32) bool
- func IsCyno(typeID int32) bool
- func IsFitted(location int32) bool
- func SwapAbyssal(typeID int32) int32
- func UcFirst(str string) string
- type Context
- func (c *Context) ActivateAllModules() error
- func (c *Context) AddCharge(t uint32, idx C.dogma_key_t) error
- func (c *Context) AddDrone(t uint32, num uint8) error
- func (c *Context) AddModule(t uint32, location int32) (C.dogma_key_t, error)
- func (c *Context) AddModuleAndCharge(t uint32, ch uint32, location int32) (C.dogma_key_t, error)
- func (c *Context) CPULeft() (float64, error)
- func (c *Context) DeactivateMWD() error
- func (c *Context) Destroy() error
- func (c *Context) GetAttributes() (*attributes.Attributes, error)
- func (c *Context) GetCategory(t uint32) uint8
- func (c *Context) GetChargeAttribute(t uint16, i C.dogma_key_t) (float64, error)
- func (c *Context) GetChargeAttributes(attrIds []uint16, idx C.dogma_key_t) ([]float64, error)
- func (c *Context) GetDroneAttribute(t uint16, i C.dogma_typeid_t) (float64, error)
- func (c *Context) GetModuleAttribute(t uint16, i C.dogma_key_t) (float64, error)
- func (c *Context) GetShipAttribute(t uint16) (float64, error)
- func (c *Context) PowerLeft() (float64, error)
- func (c *Context) RemoveModule(idx C.dogma_key_t) error
- func (c *Context) SetShip(t uint32) error
- func (c *Context) Strip()
- func (c *Context) Validate() (float64, float64, error)
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 ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a single instance in the fitting engine
func NewContext ¶
NewContext returns a new context. This must be destroyed if successful.
func (*Context) ActivateAllModules ¶
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) AddModuleAndCharge ¶
AddModuleAndCharge to a ship
func (*Context) GetAttributes ¶
func (c *Context) GetAttributes() (*attributes.Attributes, error)
GetAttributes gets all the fit attributes
func (*Context) GetChargeAttribute ¶
GetChargeAttribute of a charge in a module, on a ship
func (*Context) GetChargeAttributes ¶
GetChargeAttributes Get all the things of a charge, in a module, on a ship.
func (*Context) GetDroneAttribute ¶
GetDroneAttribute of a fitted drone on a ship
func (*Context) GetModuleAttribute ¶
GetModuleAttribute of a fitted module on a ship
func (*Context) GetShipAttribute ¶
GetShipAttribute of the current fit
func (*Context) RemoveModule ¶
func (c *Context) RemoveModule(idx C.dogma_key_t) error
RemoveModule from a ship
Click to show internal directories.
Click to hide internal directories.