From 1c8240d86977d1474dc124d0272978e146bd4a90 Mon Sep 17 00:00:00 2001 From: gravestench Date: Sun, 22 Nov 2020 13:54:18 -0800 Subject: [PATCH] fixed remaining lint errors --- d2common/d2animation/dc6_animation.go | 1 + d2common/d2animation/dcc_animation.go | 1 + d2common/d2animation/doc.go | 2 ++ d2common/d2interface/scene.go | 1 + d2core/d2asset/asset_manager_test.go | 6 +++--- main.go | 2 +- 6 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 d2common/d2animation/doc.go diff --git a/d2common/d2animation/dc6_animation.go b/d2common/d2animation/dc6_animation.go index 47673b02..c9afc1c7 100644 --- a/d2common/d2animation/dc6_animation.go +++ b/d2common/d2animation/dc6_animation.go @@ -14,6 +14,7 @@ import ( var _ d2interface.Animation = &DC6Animation{} // Static check to confirm struct conforms to // interface +// NewDC6Animation creates an animation from a dc6 file func NewDC6Animation( dc6 *d2dc6.DC6, pal d2interface.Palette, diff --git a/d2common/d2animation/dcc_animation.go b/d2common/d2animation/dcc_animation.go index 6ce0f09c..11f4a1ac 100644 --- a/d2common/d2animation/dcc_animation.go +++ b/d2common/d2animation/dcc_animation.go @@ -17,6 +17,7 @@ import ( var _ d2interface.Animation = &DCCAnimation{} // Static check to confirm struct conforms to // interface +// NewDCCAnimation creates an animation from a dcc file func NewDCCAnimation( dcc *d2dcc.DCC, pal d2interface.Palette, diff --git a/d2common/d2animation/doc.go b/d2common/d2animation/doc.go new file mode 100644 index 00000000..f0a00126 --- /dev/null +++ b/d2common/d2animation/doc.go @@ -0,0 +1,2 @@ +// Package d2animation provides functions for creating animations for various file formats +package d2animation diff --git a/d2common/d2interface/scene.go b/d2common/d2interface/scene.go index c9cf4ea8..72f3e2f8 100644 --- a/d2common/d2interface/scene.go +++ b/d2common/d2interface/scene.go @@ -4,6 +4,7 @@ import ( "github.com/gravestench/akara" ) +// Scene is an extension of akara.System type Scene interface { akara.SystemInitializer Key() string diff --git a/d2core/d2asset/asset_manager_test.go b/d2core/d2asset/asset_manager_test.go index 87aa9077..545f257b 100644 --- a/d2core/d2asset/asset_manager_test.go +++ b/d2core/d2asset/asset_manager_test.go @@ -1,13 +1,13 @@ package d2asset import ( - "github.com/OpenDiablo2/OpenDiablo2/d2common/d2fileformats/d2tbl" - "github.com/OpenDiablo2/OpenDiablo2/d2common/d2util" - "github.com/OpenDiablo2/OpenDiablo2/d2core/d2records" "testing" "github.com/OpenDiablo2/OpenDiablo2/d2common/d2cache" + "github.com/OpenDiablo2/OpenDiablo2/d2common/d2fileformats/d2tbl" "github.com/OpenDiablo2/OpenDiablo2/d2common/d2loader" + "github.com/OpenDiablo2/OpenDiablo2/d2common/d2util" + "github.com/OpenDiablo2/OpenDiablo2/d2core/d2records" ) func TestAssetManager_LoadFile_NoSource(t *testing.T) { diff --git a/main.go b/main.go index 07f32749..26f33c39 100644 --- a/main.go +++ b/main.go @@ -3,11 +3,11 @@ package main import ( "log" - "github.com/OpenDiablo2/OpenDiablo2/d2core/d2systems" "github.com/gravestench/akara" "gopkg.in/alecthomas/kingpin.v2" "github.com/OpenDiablo2/OpenDiablo2/d2app" + "github.com/OpenDiablo2/OpenDiablo2/d2core/d2systems" ) // GitBranch is set by the CI build process to the name of the branch