OpenClonk Bugtracker - OpenClonk
View Issue Details
0002054OpenClonkEnginepublic2019-03-31 08:012019-03-31 08:09
ReporterMarky 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002054: Feature request: Register custom OCFs
DescriptionMade a separate issue for the OCF proposal from https://bugs.openclonk.org/view.php?id=1384


We could also remove OCF and replace it with these custom bits. In fact the features could be separated and work like this:

static OCF_Prey = RegisterOCF("Prey");
static OCF_Monster = RegisterOCF("Monster");
RegisterCrossCheck(OCF_Monster, OCF_Prey, "OnHitPrey");

It could even be made downwards compatible with some of old OCFs like OCF_Alive, and also work in FindObject(Find_OCF(...)).
TagsNo tags attached.
related to 0001384new  Make cross-check script-accessible 
Attached Files

Notes
(0006212)
Marky   
2019-03-31 08:09   
I am not sure about the gain of this. Yes, it allows to create custom OCFs, but what is the difference between those and a property (yes, there is a difference implementation-wise)?
After all, either is just a boolean flag (well, properties can be of other types, too). Also, I'd imagine that the amount of custom OCFs could increase very fast in a custom pack?

Issue History
2019-03-31 08:01MarkyNew Issue
2019-03-31 08:02MarkyRelationship addedrelated to 0001384
2019-03-31 08:09MarkyNote Added: 0006212