sheet

package
v5.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Type   string
	Key    string
	Name   string
	Value  string
	Points string
}

Attribute holds the data needed by the frontend to display an attribute.

type BasicDamage

type BasicDamage struct {
	Thrust string
	Swing  string
}

BasicDamage holds the data needed by the frontend to display the basic damage.

type Body

type Body struct {
	Name      string
	Locations []HitLocation
}

Body holds the data needed by the frontend to display the Body section of a sheet.

type Description

type Description struct {
	Gender       string
	Age          string
	Birthday     string
	Religion     string
	Height       string
	Weight       string
	SizeModifier string
	TechLevel    string
	Hair         string
	Eyes         string
	Skin         string
	Hand         string
}

Description holds the data needed by the frontend to display the description block.

type Encumbrance

type Encumbrance struct {
	Current    int
	MaxLoad    [encumbrance.LastLevel + 1]string
	Move       [encumbrance.LastLevel + 1]string
	Dodge      [encumbrance.LastLevel + 1]string
	Overloaded bool
}

Encumbrance holds the data needed by the frontend to display the Encumbrance section of a sheet.

type HitLocation

type HitLocation struct {
	Roll           string
	Location       string
	LocationDetail string
	HitPenalty     string
	DR             string
	DRDetail       string
	SubLocations   []HitLocation
}

HitLocation holds the data needed by the frontend to display the hit locations.

type Identity

type Identity struct {
	Name         string
	Title        string
	Organization string
}

Identity holds the data needed by the frontend to display the identity block.

type LiftingAndMovingThings

type LiftingAndMovingThings struct {
	BasicLift                string
	OneHandedLift            string
	TwoHandedLift            string
	ShoveAndKnockOver        string
	RunningShoveAndKnockOver string
	CarryOnBack              string
	ShiftSlightly            string
}

LiftingAndMovingThings holds the data needed by the frontend to display the Lifting and Moving Things section of a sheet.

type Misc

type Misc struct {
	Created  string
	Modified string
	Player   string
}

Misc holds the data needed by the frontend to display the misc block.

type PageRef

type PageRef struct {
	Name   string
	Offset int
}

PageRef holds the data needed by the frontend to display and use a page reference.

type PointPool

type PointPool struct {
	Type   string
	Key    string
	Name   string
	Value  string
	Max    string
	Points string
	State  string
	Detail string
}

PointPool holds the data needed by the frontend to display a point pool.

type Points

type Points struct {
	Total         string
	Unspent       string
	Ancestry      string
	Attributes    string
	Advantages    string
	Disadvantages string
	Quirks        string
	Skills        string
	Spells        string
}

Points holds the data needed by the frontend to display the points block.

type Row

type Row struct {
	ID    uuid.UUID
	Depth int
	Cells []gurps.CellData
}

Row holds the data needed by the frontend to display a table row.

type Sheet

type Sheet struct {
	Identity               Identity
	Misc                   Misc
	Description            Description
	Points                 Points
	PrimaryAttributes      []Attribute
	SecondaryAttributes    []Attribute
	PointPools             []PointPool
	BasicDamage            BasicDamage
	Body                   Body
	Encumbrance            Encumbrance
	LiftingAndMovingThings LiftingAndMovingThings
	Reactions              *Table
	ConditionalModifiers   *Table
	MeleeWeapons           *Table
	RangedWeapons          *Table
	Traits                 *Table
	Skills                 *Table
	Spells                 *Table
	CarriedEquipment       *Table
	OtherEquipment         *Table
	Notes                  *Table
	Portrait               []byte
	PageRefs               map[string]PageRef
	Modified               bool
	ReadOnly               bool
}

Sheet holds the data needed by the frontend to display a GURPS character sheet.

func NewSheetFromEntity

func NewSheetFromEntity(entity *gurps.Entity, modified, readOnly bool) *Sheet

NewSheetFromEntity creates a new Sheet from the given entity.

type Table

type Table struct {
	Columns []gurps.HeaderData
	Rows    []Row
}

Table holds the data needed by the frontend to display a table.

Jump to

Keyboard shortcuts

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