mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-12-25 19:46:50 -05:00
d2ds1: LayerGroup.String method
This commit is contained in:
parent
82295fddb0
commit
49e8e42596
@ -18,6 +18,22 @@ const (
|
||||
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 ds1Layers struct {
|
||||
|
Loading…
Reference in New Issue
Block a user