mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-01 15:46:17 -04:00
d2ds1: LayerGroup.String method
This commit is contained in:
parent
82295fddb0
commit
49e8e42596
@ -18,6 +18,22 @@ const (
|
|||||||
SubstitutionLayerGroup
|
SubstitutionLayerGroup
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (l LayerGroupType) String() string {
|
||||||
|
switch l {
|
||||||
|
case FloorLayerGroup:
|
||||||
|
return "floor"
|
||||||
|
case WallLayerGroup:
|
||||||
|
return "wall"
|
||||||
|
case ShadowLayerGroup:
|
||||||
|
return "shadow"
|
||||||
|
case SubstitutionLayerGroup:
|
||||||
|
return "substitution"
|
||||||
|
}
|
||||||
|
|
||||||
|
// should not be reached
|
||||||
|
return "unknown"
|
||||||
|
}
|
||||||
|
|
||||||
type layerGroup []*Layer
|
type layerGroup []*Layer
|
||||||
|
|
||||||
type ds1Layers struct {
|
type ds1Layers struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user