15 lines
237 B
TypeScript
15 lines
237 B
TypeScript
export interface ModifiableData<T> {
|
|
base: T;
|
|
mod: T;
|
|
total?: T;
|
|
}
|
|
|
|
export interface ResourceData<T> extends ModifiableData<T> {
|
|
value: T;
|
|
max?: T;
|
|
}
|
|
|
|
export interface UsableResource<T> {
|
|
total: T;
|
|
used: T;
|
|
}
|