RegionManager

   
Type RegionManager
Library wattageTileEngine.*
Keywords Wattage, RegionManager, Tile Engine
See also  

Overview

The RegionManager provides a way to load and unload smaller regions of a world as they move into and out of the camera’s view. This enables the Wattage Tile Engine to work with very large worlds which would not fit into memory if loaded in their entirety.

Guides

Syntax

local TileEngine = require "plugin.wattageTileEngine"
local RegionManagerType = TileEngine.RegionManager

Constructor

RegionManager.new()

Functions

RegionManager.setCameraLocation()
RegionManager.centerEntityOnTile()
RegionManager.centerNonResourceEntityOnTile()
RegionManager.getEntityLocation()
RegionManager.getNonResourceEntityLocation()
RegionManager.setEntityLocation()
RegionManager.setNonResourceEntityLocation()