MB Dev Notes added to critical classes.
This commit is contained in:
@@ -8,10 +8,6 @@
|
||||
|
||||
package engine.InterestManagement;
|
||||
|
||||
/* This class is the main interface for Magicbane's
|
||||
* Interest management facilities.
|
||||
*/
|
||||
|
||||
import engine.math.Vector3fImmutable;
|
||||
import engine.mbEnums;
|
||||
import engine.net.Dispatch;
|
||||
@@ -31,10 +27,17 @@ import static engine.objects.Realm.getRealm;
|
||||
|
||||
public enum RealmMap {
|
||||
|
||||
REALM_MAP;
|
||||
// MB Dev Notes:
|
||||
// This class loads and caches realm maps used by each
|
||||
// map set for its realm overlay. The RealmMap loaded is
|
||||
// controlled by config entry MB_WORLD_REALMMAP
|
||||
//
|
||||
// Unlike a Heightmap this is a just color lookup; identical to
|
||||
// the old image maps used in 90s web technology.
|
||||
//
|
||||
// Realm Map images are stored on disk in /mb.data/realmmaps/
|
||||
|
||||
// Spatial hashmap. Used for determining which Realm
|
||||
// a player is currently located within.
|
||||
REALM_MAP;
|
||||
|
||||
private static final HashMap<Color, Integer> _rgbToIDMap = new HashMap<>();
|
||||
public static int[][] _realmImageMap;
|
||||
|
||||
@@ -18,6 +18,14 @@ import java.util.HashMap;
|
||||
|
||||
import static java.lang.Math.PI;
|
||||
|
||||
|
||||
// MB Dev Notes:
|
||||
// The Terrain class handles lookups into the Heightmap data.
|
||||
// It supports all current maps along with the differences in
|
||||
// their parenting configuration.
|
||||
//
|
||||
// Heightmap images are stored on disk in /mb.data/heightmaps/
|
||||
|
||||
public class Terrain {
|
||||
public static final HashMap<Integer, short[][]> _heightmap_pixel_cache = new HashMap<>();
|
||||
public short[][] terrain_pixel_data;
|
||||
|
||||
Reference in New Issue
Block a user