squad_inventory

package
v0.0.0-...-54eea7a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllRepair

func AllRepair(user *player.Player) error

func BodyRemove

func BodyRemove(user *player.Player, unit *unit.Unit)

func ChangeSquad

func ChangeSquad(user *player.Player, SquadID int) error

func CreateStartKit

func CreateStartKit(client *player.Player, full bool)

func EquipRepair

func EquipRepair(user *player.Player) error

func GetInventory

func GetInventory(client *player.Player)

func ItemToInventory

func ItemToInventory(user *player.Player, storageSlot int) error

func ItemToStorage

func ItemToStorage(user *player.Player, inventorySlot int) error

func ItemsRepair

func ItemsRepair(user *player.Player) error

func RemoveAmmo

func RemoveAmmo(user *player.Player, numEquipSlot int, unit *unit.Unit, dst string) error

func RemoveEquip

func RemoveEquip(user *player.Player, numEquipSlot int, typeSlot int, unit *unit.Unit, dst string) error

func RemoveMSBody

func RemoveMSBody(user *player.Player) error

func RemoveSlotBySource

func RemoveSlotBySource(user *player.Player, inventorySlot int, source string, quantity int) int

func RemoveThorium

func RemoveThorium(user *player.Player, numThoriumSlot int) error

func RemoveUnitAmmo

func RemoveUnitAmmo(user *player.Player, numEquipSlot, numberUnitSlot int, dst string) error

func RemoveUnitBody

func RemoveUnitBody(user *player.Player, unitSlot int) error

func RemoveUnitEquip

func RemoveUnitEquip(user *player.Player, numEquipSlot, typeSlot, numberUnitSlot int, dst string) error

func RemoveUnitWeapon

func RemoveUnitWeapon(user *player.Player, numEquipSlot, numberUnitSlot int, dst string) error

func RemoveWeapon

func RemoveWeapon(user *player.Player, numEquipSlot int, unit *unit.Unit, dst string) error

func RenameSquad

func RenameSquad(user *player.Player, newName string) error

func SelectType

func SelectType(typeEquipSlot int, body *detail.Body) map[int]*detail.BodyEquipSlot

func SetAmmo

func SetAmmo(user *player.Player, idAmmo, inventorySlot, numEquipSlot int, unit *unit.Unit, source string) error

func SetEquip

func SetEquip(user *player.Player, idEquip, inventorySlot, numEquipSlot, typeEquipSlot int, unit *unit.Unit, source string) error

func SetMSBody

func SetMSBody(user *player.Player, idBody, inventorySlot int, source string) error

func SetThorium

func SetThorium(user *player.Player, inventorySlot, numThoriumSlot int, source string) error

func SetUnitAmmo

func SetUnitAmmo(user *player.Player, idAmmo, inventorySlot, numEquipSlot, numberUnitSlot int, source string) error

func SetUnitBody

func SetUnitBody(user *player.Player, idBody, inventorySlot, numberUnitSlot int, source string) error

func SetUnitEquip

func SetUnitEquip(user *player.Player, idEquip, inventorySlot, numEquipSlot, typeEquipSlot, numberUnitSlot int, source string) error

func SetUnitWeapon

func SetUnitWeapon(user *player.Player, idWeapon, inventorySlot, numEquipSlot, numberUnitSlot int, source string) error

func SetWeapon

func SetWeapon(user *player.Player, idWeapon, inventorySlot, numEquipSlot int, unit *unit.Unit, source string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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