Move to gitea
This commit is contained in:
parent
cbba9006e4
commit
98dad4d273
@ -4,12 +4,12 @@ import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/gamedata"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/innernetobjects"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/mapdata"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/packets"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/gamedata"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/innernetobjects"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/mapdata"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/packets"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GameDataProcessor struct {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/gamedata"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/innernetobjects"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/gamedata"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/innernetobjects"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GameRPCProcessor struct {
|
||||
|
21
go.mod
21
go.mod
@ -3,6 +3,7 @@ module tea.melonie54.xyz/sean/go-susapp
|
||||
go 1.17
|
||||
|
||||
replace (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/collision => ./src/collision
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum => ./src/enum
|
||||
tea.melonie54.xyz/sean/go-susapp/src/gamedata => ./src/gamedata
|
||||
tea.melonie54.xyz/sean/go-susapp/src/innernetobjects => ./src/innernetobjects
|
||||
@ -11,18 +12,18 @@ replace (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol => ./src/protocol
|
||||
tea.melonie54.xyz/sean/go-susapp/src/systemtypes => ./src/systemtypes
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util => ./src/util
|
||||
tea.melonie54.xyz/sean/go-susapp/src/collision => ./src/collision
|
||||
)
|
||||
|
||||
require (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/gamedata latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/innernetobjects latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/packets latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/systemtypes latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/mapdata latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/collision latest
|
||||
github.com/gotk3/gotk3 v0.6.1
|
||||
tea.melonie54.xyz/sean/go-susapp/src/collision v0.0.0-20211216203152-cbba9006e452
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/gamedata v0.0.0-20211216203152-cbba9006e452
|
||||
tea.melonie54.xyz/sean/go-susapp/src/innernetobjects v0.0.0-20211216203152-cbba9006e452
|
||||
tea.melonie54.xyz/sean/go-susapp/src/mapdata v0.0.0-20211216203152-cbba9006e452
|
||||
tea.melonie54.xyz/sean/go-susapp/src/packets v0.0.0-20211216203152-cbba9006e452
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
)
|
||||
|
||||
require tea.melonie54.xyz/sean/go-susapp/src/systemtypes v0.0.0 // indirect
|
||||
|
@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"github.com/gotk3/gotk3/gdk"
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
package main
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
|
||||
func renderSkeld(r *Renderer) {
|
||||
renderVents(r, enum.VENTS_SKELD)
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"time"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
"github.com/gotk3/gotk3/gdk"
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
)
|
||||
|
@ -1,13 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/collision"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/gamedata"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/innernetobjects"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/packets"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/collision"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/gamedata"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/innernetobjects"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/packets"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type MovementProcessor struct {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package main
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
|
||||
var taskMapTypeMapped = map[byte]map[byte]enum.TaskData{
|
||||
enum.MAP_THE_SKELD: enum.TASKS_SKELD,
|
||||
|
@ -4,12 +4,12 @@ import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/gamedata"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/innernetobjects"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/packets"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/gamedata"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/innernetobjects"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/packets"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type PacketProcessor struct {
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/innernetobjects"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/innernetobjects"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
"github.com/gotk3/gotk3/cairo"
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
|
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
)
|
||||
|
||||
type SettingsJSON struct {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"github.com/gotk3/gotk3/glib"
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package collision
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
func CollisionLineCircle(a util.Vec2, b util.Vec2, c util.Vec2, r float32) (bool, util.Vec2) {
|
||||
|
@ -8,5 +8,5 @@ replace (
|
||||
)
|
||||
|
||||
require (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ package collision
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type CollisionAsset [][]util.Vec2
|
||||
|
@ -1,6 +1,6 @@
|
||||
package enum
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
type VentData struct {
|
||||
ID byte
|
||||
|
@ -1,6 +1,6 @@
|
||||
package enum
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
var VENTS_AIRSHIP = map[byte]VentData{
|
||||
0: NewVentData(0, util.NewVec2(-12.6322, 8.4735), []byte{1}),
|
||||
|
@ -1,6 +1,6 @@
|
||||
package enum
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
var VENTS_MIRA = map[byte]VentData{
|
||||
1: NewVentData(1, util.NewVec2(23.769283, -1.576561), []byte{1}),
|
||||
|
@ -1,6 +1,6 @@
|
||||
package enum
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
var VENTS_POLUS = map[byte]VentData{
|
||||
0: NewVentData(0, util.NewVec2(1.9281311, -9.195087), []byte{1}),
|
||||
|
@ -1,6 +1,6 @@
|
||||
package enum
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
var VENTS_SKELD = map[byte]VentData{
|
||||
0: NewVentData(0, util.NewVec2(2.543373, -9.59182), []byte{1}),
|
||||
|
@ -1,7 +1,7 @@
|
||||
package gamedata
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type DataH2G struct {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package gamedata
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
//
|
||||
|
@ -1,6 +1,6 @@
|
||||
package gamedata
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type SpawnH2G struct {
|
||||
SpawnType uint32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package gamedata
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type DespawnH2G struct {
|
||||
NetID uint32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package gamedata
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type SceneChangeC2H struct {
|
||||
ClientID uint32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package gamedata
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type ReadyC2H struct {
|
||||
ReadyClientID uint32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package gamedata
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type ClientInfoC2S struct {
|
||||
ClientID uint32
|
||||
|
@ -8,6 +8,6 @@ replace (
|
||||
)
|
||||
|
||||
require (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GameData struct {
|
||||
|
@ -10,8 +10,8 @@ replace (
|
||||
)
|
||||
|
||||
require (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/systemtypes latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/systemtypes v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
package innernetobjects
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type InnerNetObject interface {
|
||||
Write(packet *protocol.Packet, isSpawn bool)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/systemtypes"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/systemtypes"
|
||||
)
|
||||
|
||||
type MiraShipStatus struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type PlayerControl struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type PlayerNetworkTransform struct {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package innernetobjects
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
// PlayerPhysics has no data
|
||||
type PlayerPhysics struct{}
|
||||
|
@ -1,9 +1,9 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/systemtypes"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/systemtypes"
|
||||
)
|
||||
|
||||
type PolusShipStatus struct {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/systemtypes"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/systemtypes"
|
||||
)
|
||||
|
||||
func WriteShipStatus(Systems map[int]systemtypes.SystemType, SystemsMask *uint32, packet *protocol.Packet, isSpawn bool) {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/systemtypes"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/systemtypes"
|
||||
)
|
||||
|
||||
type SkeldShipStatus struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package innernetobjects
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type VoteBanSystem struct {
|
||||
|
@ -7,4 +7,4 @@ replace (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util => ../util
|
||||
)
|
||||
|
||||
require tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
require tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
package mapdata
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
|
||||
var LobbySpawnPositions = []util.Vec2{
|
||||
util.NewVec2(-1.6, 2.4),
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type HostGameC2S struct {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package packets
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type HostGameS2C struct {
|
||||
GameID int32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package packets
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type JoinGameC2S struct {
|
||||
GameID int32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package packets
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type JoinGameS2C struct {
|
||||
DisconnectReason int32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package packets
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type JoinGameS2G struct {
|
||||
GameID int32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package packets
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type StartGameH2G struct {
|
||||
GameID int32
|
||||
|
@ -1,8 +1,8 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type RemoveGameS2C struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type RemovePlayerH2C struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type RemovePlayerS2G struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GameDataAll struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GameDataTo struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type JoinedGameH2C struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type EndGameH2G struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type AlterGameH2G struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type KickPlayerH2G struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type WaitForHostC2H struct {
|
||||
|
@ -3,7 +3,7 @@ package packets
|
||||
import (
|
||||
"net"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type RedirectS2C struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type ReselectServerS2C struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GetGameListV2C2S struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type GetGameListV2S2C struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type ReportPlayerC2S struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type ReportPlayerS2C struct {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package packets
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
// PacketBase PacketType
|
||||
|
||||
|
@ -9,7 +9,7 @@ tea.melonie54.xyz/sean/go-susapp/src/enum => ../enum
|
||||
)
|
||||
|
||||
require (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/enum v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
)
|
||||
|
@ -3,4 +3,4 @@ module tea.melonie54.xyz/sean/go-susapp/src/protocol
|
||||
go 1.17
|
||||
|
||||
replace tea.melonie54.xyz/sean/go-susapp/src/util => ../util
|
||||
require tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
require tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"math"
|
||||
"net"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type Packet struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package systemtypes
|
||||
|
||||
import (
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
type AutoDoorsSystem struct {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type DeconSystem struct {
|
||||
Timer byte
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type DoorsSystem struct {
|
||||
DoorCooldowns []*DoorCooldown
|
||||
|
@ -8,6 +8,6 @@ replace (
|
||||
)
|
||||
|
||||
require (
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util latest
|
||||
tea.melonie54.xyz/sean/go-susapp/src/protocol v0.0.0
|
||||
tea.melonie54.xyz/sean/go-susapp/src/util v0.0.0
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type HqHudSystem struct {
|
||||
ActiveConsoles []*UserConsolePair
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type HudOverrideSystem struct {
|
||||
IsSabotaged bool
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type LifeSuppSystem struct {
|
||||
Timer float32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type MedScanSystem struct {
|
||||
Players []byte
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type ReactorSystem struct {
|
||||
Timer float32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type SabotageSystem struct {
|
||||
Cooldown float32
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type SecurityCameraSystem struct {
|
||||
Players []byte
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type SwitchSystem struct {
|
||||
ExpectedSwitches byte
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type SystemType interface {
|
||||
Write(packet *protocol.Packet, isSpawn bool)
|
||||
|
@ -1,6 +1,6 @@
|
||||
package systemtypes
|
||||
|
||||
import "codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
import "tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
|
||||
type UserConsolePair struct {
|
||||
PlayerID byte
|
||||
|
@ -1,7 +1,3 @@
|
||||
module tea.melonie54.xyz/sean/go-susapp/src/util
|
||||
|
||||
go 1.17
|
||||
|
||||
replace tea.melonie54.xyz/sean/go-susapp/src/protocol => ../protocol
|
||||
|
||||
require tea.melonie54.xyz/sean/go-susapp/src/protocol latest
|
||||
|
8
state.go
8
state.go
@ -4,10 +4,10 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/collision"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/innernetobjects"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/collision"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/innernetobjects"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
)
|
||||
|
||||
type State struct {
|
||||
|
12
sus.go
12
sus.go
@ -12,14 +12,14 @@ import (
|
||||
"github.com/gotk3/gotk3/glib"
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
|
||||
"codehub.onpointcoding.net/sean/go-susapp/enum"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/gamedata"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/packets"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/protocol"
|
||||
"codehub.onpointcoding.net/sean/go-susapp/util"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/enum"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/gamedata"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/packets"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/protocol"
|
||||
"tea.melonie54.xyz/sean/go-susapp/src/util"
|
||||
)
|
||||
|
||||
const appID = "net.onpointcoding.susapp"
|
||||
const appID = "xyz.melonie54.susapp"
|
||||
|
||||
func main() {
|
||||
fmt.Println("Booting Sus App")
|
||||
|
Loading…
Reference in New Issue
Block a user