Give the module an importable path
The module was declared as `module game`, which is not a resolvable import path: nothing outside this repository could depend on the konstructor engine, whatever it was published as. It is now git.teletypegames.org/engines/gorpg, matching where the repo lives. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
module game
|
module git.teletypegames.org/engines/gorpg
|
||||||
|
|
||||||
go 1.20
|
go 1.20
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/domain"
|
"git.teletypegames.org/engines/gorpg/src/domain"
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"game/src/konstructor/engines/easy_ebitengine"
|
"git.teletypegames.org/engines/gorpg/src/konstructor/engines/easy_ebitengine"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Domain struct {
|
type Domain struct {
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"image/color"
|
"image/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"image/color"
|
"image/color"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
func (d *Domain) AddToInventory(item *konstructor.Item) bool {
|
func (d *Domain) AddToInventory(item *konstructor.Item) bool {
|
||||||
return true
|
return true
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Level1Playground1 konstructor.PlaygroundID = "level_1_playground_1"
|
Level1Playground1 konstructor.PlaygroundID = "level_1_playground_1"
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ package domain
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
func (d *Domain) Process(options konstructor.DomainProcessArgs) {
|
func (d *Domain) Process(options konstructor.DomainProcessArgs) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SwordItemType konstructor.ItemTypeMapKey = "sword"
|
SwordItemType konstructor.ItemTypeMapKey = "sword"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TestNPCType konstructor.NPCTypeMapKey = "test_npc"
|
TestNPCType konstructor.NPCTypeMapKey = "test_npc"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TestPlatformType konstructor.PlatformTypeMapKey = "test_platform"
|
TestPlatformType konstructor.PlatformTypeMapKey = "test_platform"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "game/src/konstructor"
|
import "git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultPlayerType konstructor.PlayerTypeID = "default"
|
DefaultPlayerType konstructor.PlayerTypeID = "default"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package easy_ebitengine
|
package easy_ebitengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package easy_ebitengine
|
package easy_ebitengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
_ "image/png"
|
_ "image/png"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package easy_ebitengine
|
package easy_ebitengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package easy_ebitengine
|
package easy_ebitengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package easy_ebitengine
|
package easy_ebitengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package easy_ebitengine
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"game/src/konstructor"
|
"git.teletypegames.org/engines/gorpg/src/konstructor"
|
||||||
"image/color"
|
"image/color"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
|
|||||||
Reference in New Issue
Block a user