Skip to content

Missing Resource Units #5

@vrozen

Description

@vrozen

Are resource unit types missing?

It might be useful to be able to type 4K instead of 4000 and 3M instead of 3000000.

Additionally, defining a unit of measurement could be used for checking diagram correctness.

//multiplies fixed point value Meter resources by 100 automatically
unit Meter times 100 

//explicit unit conversion
user converter buyRange from XP to Meter 

//pool has unit of measurement XP
pool xp of XP

//pool has unit of measurement Meter
pool range of Meter 

costRange: xp -5K-> buyRange
getRage: buyRange --> range

Not sure if this is a good idea.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions