campaign

package
v0.0.0-...-79996cc Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package campaign contains types and functions for the single player campaigns.

Package campaign contains types and functions for the single player campaigns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() ([]string, error)

List returns the list of available campaign JSONs.

It searches in: - The embedded bindata for built-in scenarios - Scenarios on disk at the assets/campaigns folder. - User-made scenarios at ~/doodle/campaigns.

Types

type Campaign

type Campaign struct {
	Version int     `json:"version"`
	Title   string  `json:"title"`
	Author  string  `json:"author"`
	Levels  []Level `json:"levels"`
}

Campaign structure for the JSON campaign files.

type Level

type Level struct {
	Filename string `json:"filename"`
}

Level is the "levels" object of the JSON file.

Jump to

Keyboard shortcuts

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