branchsbox/modeldoc-fgdgencancel
15 Commits over 31 Days - 0.02cph!
Make ParticleAttachment public
Hammer.Skip works for enum fields
Engine's string to particleattachment type supports string numbers
Model.GetData<>() supports deserializing to enums
ModelParticle class uses ParticleAttachment enum
Merge ModelDoc.ListAttribute into ModelDoc.GenericGameData, and rename it to ModelDoc.GameData
Demote Model.TryToGetData()'s error to a warning
Update base_modeldata.fgd
Attribute suffix for ModelDoc attributes
FGDTypeAttribute can now provide choices to fgd properties
Fix missing 'using' in FGDWriter
Remove no longer needed interop methods
FGDWriter can use ComponentModel.DisplayName & JsonPropertyName Attributes
ComponentModel.DisplayName replacing Property.Title
JsonPropertyName replacing Property.Name
If a class as no properties with [Property] attribute, all properties will be exported to .fgd
Delete ParticleAttachmentType
Switch ModelGameData back to JSON for deserialization
Update BasePathNode.cs
Obsolete Model.GetJson, GetData(str), HasData(str)
Update ModelExtension.cs
Cleanup
Fix Model.GetData<>() not working with structs
ModelBreakPiece works with Model.GetData<>()
FGDWriter can output classes as "choices" selector in tools
This is a workaround to be able to use strings as data in fgd choices type, which c# enums do not allow.
Move 'particle' (particles_list) modelgamedata to c#
More strict usage for AutoGenerate, FGDType and BitFlags attributes
Classes can dictate their own FGD type via FGDTypeAttribute
(So you don't have to put the attribute on every property every time)
Rename ParticleAttachment fields to be consistent
Move door_sounds modelgamedata to c#
Move prop_data to c#
Update models_gamedata.fgd
Move explosion_behavior to c#
Delete IModelGameData, Add ModelDoc.GenericGameData Attribute
GenericGameData fgd autogen