Skip to content

Transform ObjectEditingOutput to proper Standard Library Usage #1092

@Frotty

Description

@Frotty

So currently when parsing a map, all the object data is output into the objectEditingOutput folder in the _build directory. This is nice, however the output is in a very raw format, example for a custom ability based on the "slow" ability:

@compiletime function create_w3a_A01M()
	let def = createObjectDefinition("w3a", 'A01M', 'Aslo')
	..setLvlDataString("abuf", 1, 0, "B01P")
	..setLvlDataUnreal("acdn", 1, 0, 10.0)
	..setLvlDataInt("amcs", 1, 0, 25)
	..setLvlDataUnreal("Slo1", 1, 1, 0.3)
	..setLvlDataUnreal("Slo2", 1, 2, 0.3)
	..setLvlDataUnreal("adur", 1, 0, 35.0)
	..setLvlDataUnreal("ahdu", 1, 0, 8.75)
	..setLvlDataUnreal("aran", 1, 0, 800.0)

In the standard library, there exists a wrapper for this class https://github.com/wurstscript/WurstStdlib2/blob/master/wurst/objediting/AbilityObjEditing.wurst
indentified by the 'Aslo' base ability being used. It would be very nice if the output would make use of these standard library classes to produce more useful output instead of this raw format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions