Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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()
Click to show internal directories.
Click to hide internal directories.