dynamic_map_object

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flore

type Flore struct {
	TextureOverFlore string `json:"texture_over_flore"`
	TexturePriority  int    `json:"texture_priority"`
	X                int    `json:"x"`
	Y                int    `json:"y"`
}

type Object

type Object struct {
	// везде где есть приставка Type это оригиналдьные данные типа, все остальное сформированые
	ID                  int    `json:"id"`
	TypeID              int    `json:"type_id"`
	Type                string `json:"type"`
	Texture             string `json:"texture"`
	AnimateSpriteSheets string `json:"animate_sprite_sheets"`
	AnimateLoop         bool   `json:"animate_loop"`
	UnitOverlap         bool   `json:"unit_overlap"`
	Rotate              int    `json:"rotate"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	Inventory           bool   `json:"inventory"`
	BoxID               int    `json:"box_id"`
	MaxHP               int    `json:"max_hp"`
	TypeMaxHP           int    `json:"type_max_hp"`
	HP                  int    `json:"hp"`
	Scale               int    `json:"scale"`
	MaxScale            int    `json:"max_scale"` // определяется рандомно для растений максимальный размер куста
	GrowTime            int    `json:"grow_time"` // говорит время цикла когда растение росло для гладкой отрисовки
	Shadow              bool   `json:"shadow"`
	AnimationSpeed      int    `json:"animation_speed"`
	Priority            int    `json:"priority"`

	X int `json:"x"`
	Y int `json:"y"`

	TypeXShadowOffset int `json:"type_x_shadow_offset"`
	XShadowOffset     int `json:"x_shadow_offset"`
	TypeYShadowOffset int `json:"type_y_shadow_offset"`
	YShadowOffset     int `json:"y_shadow_offset"`
	ShadowIntensity   int `json:"shadow_intensity"`

	Dialog *dialog.Dialog `json:"dialog"`

	Destroyed   bool      `json:"destroyed"`
	DestroyTime time.Time `json:"destroy_time"`

	Effects     []*effect.Effect                `json:"effects"`
	TypeGeoData []*obstacle_point.ObstaclePoint `json:"type_geo_data"`
	GeoData     []*obstacle_point.ObstaclePoint `json:"geo_data"`
}

func (*Object) CalculateScale

func (o *Object) CalculateScale()

func (*Object) SetGeoData

func (o *Object) SetGeoData()

Jump to

Keyboard shortcuts

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