read a .we minetest schema
- use ground has maze walls
This commit is contained in:
25
java/org/artisanlogiciel/games/minetest/Raw.java
Normal file
25
java/org/artisanlogiciel/games/minetest/Raw.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package org.artisanlogiciel.games.minetest;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class Raw
|
||||
extends Range {
|
||||
// y is index
|
||||
public HashMap<Integer,Node> nodes;
|
||||
|
||||
public Raw() {
|
||||
super();
|
||||
nodes = new HashMap<>();
|
||||
}
|
||||
|
||||
public void addNode(Integer y, Node node)
|
||||
{
|
||||
updateBounds(y.intValue());
|
||||
nodes.put(y,node);
|
||||
}
|
||||
|
||||
public Node getNode( int y)
|
||||
{
|
||||
return nodes.get(new Integer(y));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user