Skip to content

Commit

Permalink
More Usable FlagSetter
Browse files Browse the repository at this point in the history
  • Loading branch information
BellCubeDev committed Sep 29, 2023
1 parent 5c923b8 commit 243bfc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"name": "fomod",
"description": "A library for creating, parsing, editing, and validating XML-based Fomod installers, widely popularized in the Bethesda modding scne",
"version": "0.1.4",
"version": "0.1.5",
"main": "dist/index.js",
"repository": "https://github.com/BellCubeDev/fomod-js/",
"bugs": {
Expand Down
8 changes: 7 additions & 1 deletion src/definitions/Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@ export class FlagSetter extends XmlRepresentation {
static override readonly tagName = 'flag';
readonly tagName = 'flag';

private readonly flagInstance: FlagInstance<false, true>;
readonly flagInstance: FlagInstance<false, true>;

get flagName() { return this.flagInstance.name; }
set flagName(name: string) { this.flagInstance.name = name; }

get flagValue() { return this.flagInstance.usedValue; }
set flagValue(value: string) { this.flagInstance.usedValue = value; }

constructor(flagInstance: FlagInstance<false, true>) {
super();
Expand Down

0 comments on commit 243bfc4

Please sign in to comment.