1
1
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:
dk 2020-07-03 15:33:46 -07:00 committed by GitHub
parent 18003a8543
commit de116e8367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
52 changed files with 86 additions and 31 deletions

3
d2common/d2enum/doc.go Normal file
View File

@ -0,0 +1,3 @@
// Package d2enum provides enumerations used throughout
// the OpenDiablo2 codebase.
package d2enum

View File

@ -1,4 +1,3 @@
// Package d2cof contains the logic for loading and processing COF files.
package d2cof
import (

View File

@ -0,0 +1,2 @@
// Package d2cof contains the logic for loading and processing COF files.
package d2cof

View File

@ -1,4 +1,3 @@
// Package d2dat contains the logic for loading and processing DAT files.
package d2dat
// Load loads a DAT file.

View File

@ -0,0 +1,2 @@
// Package d2dat contains the logic for loading and processing DAT files.
package d2dat

View File

@ -1,4 +1,3 @@
// Package d2dc6 contains the logic for loading and processing DC6 files.
package d2dc6
import (

View File

@ -0,0 +1,2 @@
// Package d2dc6 contains the logic for loading and processing DC6 files.
package d2dc6

View File

@ -1,4 +1,3 @@
// Package d2dcc contains the logic for loading and processing DCC files.
package d2dcc
import (

View File

@ -0,0 +1,2 @@
// Package d2dcc contains the logic for loading and processing DCC files.
package d2dcc

View File

@ -0,0 +1,2 @@
// Package d2ds1 provides functionality for loading/processing DS1 files
package d2ds1

View File

@ -1,4 +1,3 @@
// Package d2ds1 provides functionality for loading/processing DS1 files
package d2ds1
import (

View File

@ -0,0 +1,3 @@
// Package d2dt1 provides functionality for loading/processing DT1 files.
// https://d2mods.info/forum/viewtopic.php?t=65163
package d2dt1

View File

@ -1,5 +1,3 @@
// Package d2dt1 provides functionality for loading/processing DT1 files.
// https://d2mods.info/forum/viewtopic.php?t=65163
package d2dt1
import (

View File

@ -0,0 +1,2 @@
// Package d2mpq contains the functions for handling MPQ files.
package d2mpq

View File

@ -1,4 +1,3 @@
// Package d2mpq contains the functions for handling MPQ files.
package d2mpq
import (

View File

@ -0,0 +1,2 @@
// Package d2pl2 handles processing of PL2 palette files.
package d2pl2

View File

@ -1,4 +1,3 @@
// Package d2pl2 handles processing of PL2 palette files.
package d2pl2
import (

2
d2common/d2math/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package d2math provides various math-related things
package d2math

View File

@ -0,0 +1,2 @@
// Package d2resource stores the paths of the resources inside the mpq files.
package d2resource

View File

@ -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
View File

@ -0,0 +1,3 @@
// Package d2common provides common stuff for all of the other
// high-level packages in the codebase
package d2common

View File

@ -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
View File

@ -0,0 +1,2 @@
// Package d2asset has behaviors to load and save assets from disk.
package d2asset

View File

@ -1,4 +1,3 @@
// Package d2config contains configuration objects and functions
package d2config
import (

2
d2core/d2config/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package d2config contains configuration management for OpenDiablo2
package d2config

2
d2core/d2gui/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package d2gui provides higher-level ui component management
package d2gui

2
d2core/d2hero/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package d2hero utilities for managing a hero state.
package d2hero

View File

@ -1,4 +1,3 @@
// Package d2hero utilities for managing a hero state.
package d2hero
import (

2
d2core/d2input/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package d2input provides an input manager
package d2input

View File

@ -0,0 +1,2 @@
// Package d2inventory provides repreentations of player inventory
package d2inventory

View File

@ -0,0 +1,3 @@
// Package d2mapengine provides a map engine, something that
// can place diablo tile data onto a plane.
package d2mapengine

View File

@ -0,0 +1,2 @@
// Package d2mapentity provides representations of map entities
package d2mapentity

View File

@ -0,0 +1,3 @@
// Package d2mapgen provides map generator implementations
// for use with the map engine
package d2mapgen

View File

@ -0,0 +1,2 @@
// Package d2maprenderer provides a renderer for the map engine
package d2maprenderer

View 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

View File

@ -1,4 +1,3 @@
// Package d2screen contains the interface for screens
package d2screen
import (

3
d2core/d2screen/doc.go Normal file
View 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
View File

@ -0,0 +1,3 @@
// Package d2term provides a in-game terminal that allows
// executing custom commands for debugging
package d2term

View File

@ -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
View File

@ -0,0 +1,3 @@
// Package d2ui provides ui elements like buttons, scrollbars,
// checkboxes, text labels, etc.
package d2ui

View File

@ -0,0 +1,2 @@
// Package d2gamescreen is where the game screens are defined
package d2gamescreen

2
d2game/d2player/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package d2player contains the information necessary for managing players
package d2player

View File

@ -1,4 +1,3 @@
// Package d2player contains the information necessary for managing players
package d2player
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"

View File

@ -0,0 +1,3 @@
// Package d2clientconnectiontype provides types
// for client connections
package d2clientconnectiontype

View File

@ -0,0 +1,2 @@
// Package d2localclient facilitates communication between a local client and server.
package d2localclient

View File

@ -1,4 +1,3 @@
// Package d2localclient facilitates communication between a local client and server.
package d2localclient
import (

View File

@ -0,0 +1,2 @@
// Package d2remoteclient facilitates communication between a remote client and server.
package d2remoteclient

View File

@ -1,4 +1,3 @@
// Package d2remoteclient facilitates communication between a remote client and server.
package d2remoteclient
import (

View 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

View File

@ -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
View File

@ -0,0 +1,3 @@
// Package d2script provides a virtual machine for
// interpretting scripts
package d2script