Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalick committed Oct 16, 2021
1 parent d62a69f commit fdafaf1
Show file tree
Hide file tree
Showing 26 changed files with 39 additions and 143 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Supports reading both d2s (player saves) ~~and d2i (shared stash)~~ files.
To install the package, use the following:

```bash
go get github.com/vitalick/d2s
go get github.com/vitalick/go-d2editor
```

To install command line program, use the following:

```bash
go install github.com/vitalick/d2s/d2s-conv@latest
go install github.com/vitalick/d2editor-cli@latest
```

## Usage
Expand All @@ -26,18 +26,18 @@ go install github.com/vitalick/d2s/d2s-conv@latest

For convert JSON to .d2s, use the following:
```bash
d2s-conv -fromjson <input files>
d2editor-cli -fromjson <input files>
```

For convert .d2s to JSON, use the following:
```bash
d2s-conv -tojson <input files>
d2editor-cli -tojson <input files>
```

To specify the path to the output folder, we use the following:
```bash
d2s-conv -fromjson -o <output folder> <input files>
d2s-conv -tojson -o <output folder> <input files>
d2editor-cli -fromjson -o <output folder> <input files>
d2editor-cli -tojson -o <output folder> <input files>
```

### As package
Expand Down
2 changes: 1 addition & 1 deletion appearance.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

import "math"

Expand Down
2 changes: 1 addition & 1 deletion appearances.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

//Appearances ...
type Appearances struct {
Expand Down
10 changes: 5 additions & 5 deletions character.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package d2s
package d2editor

import (
"bytes"
"encoding/binary"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/d2s/npcdialogs"
"github.com/vitalick/d2s/quests"
"github.com/vitalick/d2s/waypoints"
"github.com/vitalick/go-d2editor/consts"
"github.com/vitalick/go-d2editor/npcdialogs"
"github.com/vitalick/go-d2editor/quests"
"github.com/vitalick/go-d2editor/waypoints"
"io"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion class.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion consts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

const (
nameSize = 16
Expand Down
3 changes: 0 additions & 3 deletions consts/go.mod

This file was deleted.

24 changes: 0 additions & 24 deletions d2s-conv/README.md

This file was deleted.

77 changes: 0 additions & 77 deletions d2s-conv/main.go

This file was deleted.

2 changes: 1 addition & 1 deletion d2s.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

import "errors"

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vitalick/d2s
module github.com/vitalick/go-d2editor

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions header.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package d2s
package d2editor

import (
"encoding/binary"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/go-d2editor/consts"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion location.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

//Location is information about difficult and opened acts on it
type Location struct {
Expand Down
4 changes: 2 additions & 2 deletions locations.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package d2s
package d2editor

import (
"encoding/binary"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/go-d2editor/consts"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion mercenary.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

//Mercenary ...
type Mercenary struct {
Expand Down
2 changes: 1 addition & 1 deletion npcdialogs/consts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package npcdialogs

import (
"github.com/vitalick/d2s/consts"
"github.com/vitalick/go-d2editor/consts"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion npcdialogs/difficulty.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"github.com/vitalick/bitslice"
"github.com/vitalick/d2s/utils"
"github.com/vitalick/go-d2editor/utils"
)

type DifficultyImportMap map[string]NPCDialogData
Expand Down
4 changes: 2 additions & 2 deletions quests/act.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package quests
import (
"encoding/json"
"errors"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/d2s/utils"
"github.com/vitalick/go-d2editor/consts"
"github.com/vitalick/go-d2editor/utils"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion quests/consts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package quests

import (
"github.com/vitalick/d2s/consts"
"github.com/vitalick/go-d2editor/consts"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions quests/difficulty.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bytes"
"encoding/binary"
"encoding/json"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/d2s/utils"
"github.com/vitalick/go-d2editor/consts"
"github.com/vitalick/go-d2editor/utils"
"io"
)

Expand Down
4 changes: 2 additions & 2 deletions quests/quest.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"errors"
"github.com/vitalick/bitslice"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/d2s/utils"
"github.com/vitalick/go-d2editor/consts"
"github.com/vitalick/go-d2editor/utils"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion skill.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d2s
package d2editor

import "math"

Expand Down
4 changes: 2 additions & 2 deletions status.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package d2s
package d2editor

import (
"encoding/binary"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/go-d2editor/consts"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion waypoints/consts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package waypoints

import (
"github.com/vitalick/d2s/consts"
"github.com/vitalick/go-d2editor/consts"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions waypoints/difficulty.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/binary"
"encoding/json"
"github.com/vitalick/bitslice"
"github.com/vitalick/d2s/consts"
"github.com/vitalick/d2s/utils"
"github.com/vitalick/go-d2editor/consts"
"github.com/vitalick/go-d2editor/utils"
"io"
)

Expand Down

0 comments on commit fdafaf1

Please sign in to comment.