mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-15 16:56:00 -05:00
moving package comments into doc.go files (#534)
This commit is contained in:
parent
18003a8543
commit
de116e8367
3
d2common/d2enum/doc.go
Normal file
3
d2common/d2enum/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2enum provides enumerations used throughout
|
||||
// the OpenDiablo2 codebase.
|
||||
package d2enum
|
@ -1,4 +1,3 @@
|
||||
// Package d2cof contains the logic for loading and processing COF files.
|
||||
package d2cof
|
||||
|
||||
import (
|
||||
|
2
d2common/d2fileformats/d2cof/doc.go
Normal file
2
d2common/d2fileformats/d2cof/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2cof contains the logic for loading and processing COF files.
|
||||
package d2cof
|
@ -1,4 +1,3 @@
|
||||
// Package d2dat contains the logic for loading and processing DAT files.
|
||||
package d2dat
|
||||
|
||||
// Load loads a DAT file.
|
||||
|
2
d2common/d2fileformats/d2dat/doc.go
Normal file
2
d2common/d2fileformats/d2dat/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2dat contains the logic for loading and processing DAT files.
|
||||
package d2dat
|
@ -1,4 +1,3 @@
|
||||
// Package d2dc6 contains the logic for loading and processing DC6 files.
|
||||
package d2dc6
|
||||
|
||||
import (
|
||||
|
2
d2common/d2fileformats/d2dc6/doc.go
Normal file
2
d2common/d2fileformats/d2dc6/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2dc6 contains the logic for loading and processing DC6 files.
|
||||
package d2dc6
|
@ -1,4 +1,3 @@
|
||||
// Package d2dcc contains the logic for loading and processing DCC files.
|
||||
package d2dcc
|
||||
|
||||
import (
|
||||
|
2
d2common/d2fileformats/d2dcc/doc.go
Normal file
2
d2common/d2fileformats/d2dcc/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2dcc contains the logic for loading and processing DCC files.
|
||||
package d2dcc
|
2
d2common/d2fileformats/d2ds1/doc.go
Normal file
2
d2common/d2fileformats/d2ds1/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2ds1 provides functionality for loading/processing DS1 files
|
||||
package d2ds1
|
@ -1,4 +1,3 @@
|
||||
// Package d2ds1 provides functionality for loading/processing DS1 files
|
||||
package d2ds1
|
||||
|
||||
import (
|
||||
|
3
d2common/d2fileformats/d2dt1/doc.go
Normal file
3
d2common/d2fileformats/d2dt1/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2dt1 provides functionality for loading/processing DT1 files.
|
||||
// https://d2mods.info/forum/viewtopic.php?t=65163
|
||||
package d2dt1
|
@ -1,5 +1,3 @@
|
||||
// Package d2dt1 provides functionality for loading/processing DT1 files.
|
||||
// https://d2mods.info/forum/viewtopic.php?t=65163
|
||||
package d2dt1
|
||||
|
||||
import (
|
||||
|
2
d2common/d2fileformats/d2mpq/doc.go
Normal file
2
d2common/d2fileformats/d2mpq/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2mpq contains the functions for handling MPQ files.
|
||||
package d2mpq
|
@ -1,4 +1,3 @@
|
||||
// Package d2mpq contains the functions for handling MPQ files.
|
||||
package d2mpq
|
||||
|
||||
import (
|
||||
|
2
d2common/d2fileformats/d2pl2/doc.go
Normal file
2
d2common/d2fileformats/d2pl2/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2pl2 handles processing of PL2 palette files.
|
||||
package d2pl2
|
@ -1,4 +1,3 @@
|
||||
// Package d2pl2 handles processing of PL2 palette files.
|
||||
package d2pl2
|
||||
|
||||
import (
|
||||
|
2
d2common/d2math/doc.go
Normal file
2
d2common/d2math/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2math provides various math-related things
|
||||
package d2math
|
2
d2common/d2resource/doc.go
Normal file
2
d2common/d2resource/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2resource stores the paths of the resources inside the mpq files.
|
||||
package d2resource
|
@ -1,4 +1,3 @@
|
||||
// Package d2resource stores the paths of the resources inside the mpq files.
|
||||
package d2resource
|
||||
|
||||
var LanguageCode string
|
||||
|
3
d2common/doc.go
Normal file
3
d2common/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2common provides common stuff for all of the other
|
||||
// high-level packages in the codebase
|
||||
package d2common
|
@ -1,6 +1,3 @@
|
||||
/*
|
||||
Package d2asset has behaviors to load and save assets from disk.
|
||||
*/
|
||||
package d2asset
|
||||
|
||||
import (
|
||||
|
2
d2core/d2asset/doc.go
Normal file
2
d2core/d2asset/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2asset has behaviors to load and save assets from disk.
|
||||
package d2asset
|
@ -1,4 +1,3 @@
|
||||
// Package d2config contains configuration objects and functions
|
||||
package d2config
|
||||
|
||||
import (
|
||||
|
2
d2core/d2config/doc.go
Normal file
2
d2core/d2config/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2config contains configuration management for OpenDiablo2
|
||||
package d2config
|
2
d2core/d2gui/doc.go
Normal file
2
d2core/d2gui/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2gui provides higher-level ui component management
|
||||
package d2gui
|
2
d2core/d2hero/doc.go
Normal file
2
d2core/d2hero/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2hero utilities for managing a hero state.
|
||||
package d2hero
|
@ -1,4 +1,3 @@
|
||||
// Package d2hero utilities for managing a hero state.
|
||||
package d2hero
|
||||
|
||||
import (
|
||||
|
2
d2core/d2input/doc.go
Normal file
2
d2core/d2input/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2input provides an input manager
|
||||
package d2input
|
2
d2core/d2inventory/doc.go
Normal file
2
d2core/d2inventory/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2inventory provides repreentations of player inventory
|
||||
package d2inventory
|
3
d2core/d2map/d2mapengine/doc.go
Normal file
3
d2core/d2map/d2mapengine/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2mapengine provides a map engine, something that
|
||||
// can place diablo tile data onto a plane.
|
||||
package d2mapengine
|
2
d2core/d2map/d2mapentity/doc.go
Normal file
2
d2core/d2map/d2mapentity/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2mapentity provides representations of map entities
|
||||
package d2mapentity
|
3
d2core/d2map/d2mapgen/doc.go
Normal file
3
d2core/d2map/d2mapgen/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2mapgen provides map generator implementations
|
||||
// for use with the map engine
|
||||
package d2mapgen
|
2
d2core/d2map/d2maprenderer/doc.go
Normal file
2
d2core/d2map/d2maprenderer/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2maprenderer provides a renderer for the map engine
|
||||
package d2maprenderer
|
3
d2core/d2map/d2mapstamp/doc.go
Normal file
3
d2core/d2map/d2mapstamp/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2mapstamp provides a representation of a preset map
|
||||
// which can be used "like a stamp" by the map engine
|
||||
package d2mapstamp
|
@ -1,4 +1,3 @@
|
||||
// Package d2screen contains the interface for screens
|
||||
package d2screen
|
||||
|
||||
import (
|
||||
|
3
d2core/d2screen/doc.go
Normal file
3
d2core/d2screen/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2screen provides a means of defining and
|
||||
// transitioning between game screens
|
||||
package d2screen
|
3
d2core/d2term/doc.go
Normal file
3
d2core/d2term/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2term provides a in-game terminal that allows
|
||||
// executing custom commands for debugging
|
||||
package d2term
|
@ -1,4 +1,3 @@
|
||||
// Package d2term provides a in-game terminal that allows executing custom commands for debugging
|
||||
package d2term
|
||||
|
||||
import (
|
||||
|
3
d2core/d2ui/doc.go
Normal file
3
d2core/d2ui/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2ui provides ui elements like buttons, scrollbars,
|
||||
// checkboxes, text labels, etc.
|
||||
package d2ui
|
2
d2game/d2gamescreen/doc.go
Normal file
2
d2game/d2gamescreen/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2gamescreen is where the game screens are defined
|
||||
package d2gamescreen
|
2
d2game/d2player/doc.go
Normal file
2
d2game/d2player/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2player contains the information necessary for managing players
|
||||
package d2player
|
@ -1,4 +1,3 @@
|
||||
// Package d2player contains the information necessary for managing players
|
||||
package d2player
|
||||
|
||||
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
||||
|
3
d2networking/d2client/d2clientconnectiontype/doc.go
Normal file
3
d2networking/d2client/d2clientconnectiontype/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2clientconnectiontype provides types
|
||||
// for client connections
|
||||
package d2clientconnectiontype
|
2
d2networking/d2client/d2localclient/doc.go
Normal file
2
d2networking/d2client/d2localclient/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2localclient facilitates communication between a local client and server.
|
||||
package d2localclient
|
@ -1,4 +1,3 @@
|
||||
// Package d2localclient facilitates communication between a local client and server.
|
||||
package d2localclient
|
||||
|
||||
import (
|
||||
|
2
d2networking/d2client/d2remoteclient/doc.go
Normal file
2
d2networking/d2client/d2remoteclient/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package d2remoteclient facilitates communication between a remote client and server.
|
||||
package d2remoteclient
|
@ -1,4 +1,3 @@
|
||||
// Package d2remoteclient facilitates communication between a remote client and server.
|
||||
package d2remoteclient
|
||||
|
||||
import (
|
||||
|
11
d2networking/d2netpacket/d2netpackettype/doc.go
Normal file
11
d2networking/d2netpacket/d2netpackettype/doc.go
Normal file
@ -0,0 +1,11 @@
|
||||
// Package d2netpackettype defines types which are encoded to JSON and sent in network
|
||||
// packet payloads.
|
||||
// Package d2netpacket/d2netpackettype defines a uint32 enumerable representing each
|
||||
// packet type.
|
||||
//
|
||||
// A struct is defined for each packet type. Each struct comes with a function which
|
||||
// returns a NetPacket declaring the type enum (header) followed by the associated
|
||||
// struct (body). The NetPacket is marshaled to JSON for transport. On receipt of
|
||||
// the packet, the enum is read as a single byte then the remaining data (the struct)
|
||||
// is unmarshalled to the type associated with the type enum.
|
||||
package d2netpackettype
|
@ -1,14 +1,3 @@
|
||||
// Package d2netpacket defines types which are encoded to JSON and sent in network
|
||||
// packet payloads.
|
||||
/*
|
||||
Package d2netpacket/d2netpackettype defines a uint32 enumerable representing each
|
||||
packet type.
|
||||
|
||||
A struct is defined for each packet type. Each struct comes with a function which
|
||||
returns a NetPacket declaring the type enum (header) followed by the associated
|
||||
struct (body). The NetPacket is marshalled to JSON for transport. On receipt of
|
||||
the packet, the enum is read as a single byte then the remaining data (the struct)
|
||||
is unmarshalled to the type associated with the type enum.*/
|
||||
package d2netpacket
|
||||
|
||||
import "github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket/d2netpackettype"
|
||||
|
3
d2script/doc.go
Normal file
3
d2script/doc.go
Normal file
@ -0,0 +1,3 @@
|
||||
// Package d2script provides a virtual machine for
|
||||
// interpretting scripts
|
||||
package d2script
|
Loading…
Reference in New Issue
Block a user