mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 07:07:25 -05:00
d2enum: composite_type: removed Int method
This commit is contained in:
parent
fbd675c076
commit
e7ea9cacce
@ -37,7 +37,3 @@ func (i CompositeType) String() string {
|
|||||||
}
|
}
|
||||||
return _CompositeType_name[_CompositeType_index[i]:_CompositeType_index[i+1]]
|
return _CompositeType_name[_CompositeType_index[i]:_CompositeType_index[i+1]]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i CompositeType) Int() int {
|
|
||||||
return int(i)
|
|
||||||
}
|
|
||||||
|
@ -193,7 +193,7 @@ func (c *COF) Marshal() []byte {
|
|||||||
sw.PushBytes(c.unknownBodyBytes...)
|
sw.PushBytes(c.unknownBodyBytes...)
|
||||||
|
|
||||||
for i := range c.CofLayers {
|
for i := range c.CofLayers {
|
||||||
sw.PushBytes(byte(c.CofLayers[i].Type.Int()))
|
sw.PushBytes(byte(c.CofLayers[i].Type))
|
||||||
sw.PushBytes(c.CofLayers[i].Shadow)
|
sw.PushBytes(c.CofLayers[i].Shadow)
|
||||||
|
|
||||||
if c.CofLayers[i].Selectable {
|
if c.CofLayers[i].Selectable {
|
||||||
|
Loading…
Reference in New Issue
Block a user