Not logged inOpenClonk Forum
Up Topic QuickShift: an alternative

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Zapper
I don't think I even remember who it was who told me to leave that in.

But yeah, the best would probably be to turn the Clonk libraries from stuff that is included into stuff that is just called from the Clonk script. But that would be a whole new can of worms.

PS: For example like this:
Clonk.ocd/Script.c:

public func RejectCollect(object obj)
{
    if (this->Call(Lib_CarryHeavy.RejectCollect, obj)) return true;
    if (this->Call(Lib_Inventory.RejectCollect, obj)) return true;
    if (this->Call(Lib_Controls.RejectCollect, obj)) return true;
    // more checks...
    return _inherited(obj, ...);
}


That would solve the issue with the order of inclusion and possibly with name pollution. It would have some other issues, though.

PPS: For all I care, go ahead and clean up the inventory stuff

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill