Closed KuSpa closed 5 years ago
I don't have enough knowledge of the game to implement this(buildings) properly: I can imagine 2 ways of ownership and relations:
first:
pub enum Tile {
Ground { concealed: bool, buildings: Vec<Box<Building>>},
...
}
pros:
cons:
second:
struct Base {position: &Entity/Parent/Tile/..., ...}
and add it as child to the Ground Entity
pros:
cons:
I prefer the second approach.
yeah, second approach.
create a base:
[ ] update leveldescription to contain special information about buildings - outdated[ ] add a base to the leveldescription