Implemented Entity tagged union for highlighted entity (similar to abstract class in some ways)
This commit is contained in:
7
src/common/structures.zig
Normal file
7
src/common/structures.zig
Normal file
@@ -0,0 +1,7 @@
|
||||
const Road = @import("../infrastructure/road.zig").Road;
|
||||
const Node = @import("../infrastructure/node.zig").Node;
|
||||
|
||||
pub const Entity = union(enum) {
|
||||
node: *Node,
|
||||
road: *Road,
|
||||
};
|
||||
Reference in New Issue
Block a user