mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-23 23:57:23 +01:00
refactor: clean up label-related code and introduce raycasting utilities
This commit is contained in:
parent
7bf33b6e65
commit
dac231f914
3 changed files with 193 additions and 175 deletions
|
|
@ -2,8 +2,6 @@ declare global {
|
|||
var Labels: LabelsModule;
|
||||
}
|
||||
|
||||
// --- Types ---
|
||||
|
||||
export interface StateLabelData {
|
||||
i: number;
|
||||
type: "state";
|
||||
|
|
@ -42,8 +40,6 @@ export interface CustomLabelData {
|
|||
|
||||
export type LabelData = StateLabelData | BurgLabelData | CustomLabelData;
|
||||
|
||||
// --- Implementation ---
|
||||
|
||||
class LabelsModule {
|
||||
private getNextId(): number {
|
||||
const labels = pack.labels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue