gamemode

package
v0.0.0-...-93368d4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package gamemode defines all available game modes and some utility functions.

Index

Constants

View Source
const (
	Survival = iota
	Creative
	Adventure
)

Variables

This section is empty.

Functions

func IsHardcore

func IsHardcore(d int) bool

IsHardcore returns true if gamemode has the hardcore flag, false otherwise.

func SetHardcore

func SetHardcore(d int, h bool) int

SetHardcore returns gamemode d with or without the hardcore flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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