size

package
v0.0.0-...-a30bc99 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package size implements a system for size categories of creatures

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Name       string `json:"name" db:"name"`
	Level      int    `json:"level" db:"level"`
	BaseHeight int    `json:"base_height" db:"base_height"` // Base height in inches
	BaseWeight int    `json:"base_weight" db:"base_weight"` // Base weight in pounds
}

Category is a general size category for creatures

func GetCategoryByName

func GetCategoryByName(name string) Category

GetCategoryByName returns a size category based on name

func (Category) Larger

func (category Category) Larger() Category

Larger returns a category larger than the current one, or the current one if it's the biggest

func (Category) Smaller

func (category Category) Smaller() Category

Smaller returns a category smaller than the current one, or the current one if it's the smallest

Jump to

Keyboard shortcuts

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