You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we implement more item-use rules we will need each bot to hold a table lookup of items they have to check if they want to use the item they possess.
Currently, since we only have a few items implemented, we check if we want to use each of the items we implemented every execution cycle.... however, as our list of supported items grow this will become very inefficient as we at most can only use 6 items in our inventory. So I propose each bot hold a table of the function pointers to the 6 items he has, updated as items change, and only check those 6 (maybe also considering backpack) each frame.
The text was updated successfully, but these errors were encountered:
As we implement more item-use rules we will need each bot to hold a table lookup of items they have to check if they want to use the item they possess.
Currently, since we only have a few items implemented, we check if we want to use each of the items we implemented every execution cycle.... however, as our list of supported items grow this will become very inefficient as we at most can only use 6 items in our inventory. So I propose each bot hold a table of the function pointers to the 6 items he has, updated as items change, and only check those 6 (maybe also considering backpack) each frame.
The text was updated successfully, but these errors were encountered: