Documentation ¶
Index ¶
- Variables
- func Blk2DBPos(p [3]int16) (i int64)
- func DB2BlkPos(i int64) (p [3]int16)
- func EmptyBlk() (blk *mtmap.MapBlk)
- func GetBlk(p [3]int16) <-chan *mtmap.MapBlk
- func GetNode(pos [3]int16) *mt.Node
- func LoadBlk(c *minetest.Client, p [3]int16, force bool)
- func OpenDB(file string) (err error)
- func PluginsLoaded()
- func Pos2int(p mt.Pos) (i [3]int16)
- func PosUpdate(c *minetest.Client, pos *mt.PlayerPos, LastUpdate int64)
- func ProcessPkt(c *minetest.Client, pkt *mt.Pkt)
- func RegisterSBM(s *SBM)
- func SetBlk(p [3]int16, blk *mtmap.MapBlk)
- func SetNode(pos [3]int16, node mt.Node)
- type MapBlkData
- type SBM
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MapBlkUpdateRate, _ = time.ParseDuration("2s") // in seconds
MapBlkUpdateRange = int16(10) // in mapblks
MapBlkUpdateHeight = int16(5) // in mapblks
)
Functions ¶
func GetNode ¶
GetNode returns the given mt.Content at a specified spot returns nil if blk does not exist
func LoadBlk ¶
LoadBlk sends a minetest.Client a blk at pos TODO: if force is false, will only update every 10 seconds (atm sends only once (per client)) triggers SBMs
func ProcessPkt ¶
DO NOT CALL IF YOU DONT KNOW WHAT YOUR DOING
Types ¶
type MapBlkData ¶
Click to show internal directories.
Click to hide internal directories.