resource

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CraftDetail

type CraftDetail struct {
	TypeID int     `json:"id"`
	Name   string  `json:"name"`
	Size   float32 `json:"size"`
}

type Map

type Map struct {
	ID          int       `json:"id"`
	Name        string    `json:"name"`
	Type        string    `json:"type"`
	TypeID      int       `json:"type_id"`
	ResourceID  int       `json:"resource_id"`
	Resource    *Resource `json:"resource"`
	Count       int       `json:"count"`
	MapID       int       `json:"map_id"`
	X           int       `json:"x"`
	Y           int       `json:"y"`
	Rotate      int       `json:"rotate"`
	DestroyTime time.Time `json:"destroy_time"`
	MaxCount    int       `json:"max_count"`
	MinCount    int       `json:"min_count"`
	FullMove    bool      `json:"full_move"`
	MiddleMove  bool      `json:"middle_move"`
	LowMove     bool      `json:"low_move"`
}

func (*Map) Move

func (r *Map) Move() bool

type RecycledResource

type RecycledResource struct {
	TypeID int     `json:"type_id"`
	Name   string  `json:"name"`
	Size   float32 `json:"size"`
}

type Resource

type Resource struct {
	TypeID int     `json:"type_id"`
	Name   string  `json:"name"`
	Size   float32 `json:"size"`

	// описывает что выходит из этих ресурсов при переработке
	EnrichedThorium int `json:"enriched_thorium"`
	Iron            int `json:"iron"`
	Copper          int `json:"copper"`
	Titanium        int `json:"titanium"`
	Silicon         int `json:"silicon"`
	Plastic         int `json:"plastic"`
}

func (*Resource) GetArmorItems

func (r *Resource) GetArmorItems() int

func (*Resource) GetBatteries

func (r *Resource) GetBatteries() int

func (*Resource) GetCopper

func (r *Resource) GetCopper() int

func (*Resource) GetElectronics

func (r *Resource) GetElectronics() int

func (*Resource) GetEnrichedThorium

func (r *Resource) GetEnrichedThorium() int

func (*Resource) GetGear

func (r *Resource) GetGear() int

func (*Resource) GetIron

func (r *Resource) GetIron() int

func (*Resource) GetPlastic

func (r *Resource) GetPlastic() int

func (*Resource) GetSilicon

func (r *Resource) GetSilicon() int

func (*Resource) GetSteel

func (r *Resource) GetSteel() int

func (*Resource) GetTitanium

func (r *Resource) GetTitanium() int

func (*Resource) GetTitaniumPlate

func (r *Resource) GetTitaniumPlate() int

func (*Resource) GetWire

func (r *Resource) GetWire() int

func (*Resource) GetWires

func (r *Resource) GetWires() int

Jump to

Keyboard shortcuts

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