Documentation
¶
Index ¶
- Constants
- func CompressMap(data []byte) []byte
- func Float32FromBytes(bytes []byte) float32
- func Float32ToBytes(float float32) []byte
- func GetBit(b byte, n bit) bool
- func GetMapAndSize(path string) ([]byte, []byte, int, error)
- func ReadMapFromFile(path string) ([]byte, int, error)
- func ReverseBytes(b []byte) []byte
- type Color
- type Vec3
- type Vec3Float
Constants ¶
View Source
const ( BIT_SPRINT bit = 0b0000_0001 BIT_SNEAK bit = 0b0000_0010 BIT_CROUCH bit = 0b0000_0100 BIT_JUMP bit = 0b0000_1000 BIT_RIGHT bit = 0b0001_0000 BIT_LEFT bit = 0b0010_0000 BIT_DOWN bit = 0b0100_0000 BIT_UP bit = 0b1000_0000 BIT_WEAPON_PRIMARY bit = 0b0000_0001 BIT_WEAPON_SECONDARY bit = 0b0000_0010 )
Variables ¶
This section is empty.
Functions ¶
func CompressMap ¶
func Float32FromBytes ¶
func Float32ToBytes ¶
func ReverseBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.