d2enum: composite_type: removed Int method

This commit is contained in:
M. Sz 2021-03-11 08:23:24 +01:00
parent fbd675c076
commit e7ea9cacce
2 changed files with 1 additions and 5 deletions

View File

@ -37,7 +37,3 @@ func (i CompositeType) String() string {
}
return _CompositeType_name[_CompositeType_index[i]:_CompositeType_index[i+1]]
}
func (i CompositeType) Int() int {
return int(i)
}

View File

@ -193,7 +193,7 @@ func (c *COF) Marshal() []byte {
sw.PushBytes(c.unknownBodyBytes...)
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)
if c.CofLayers[i].Selectable {