This page is still a work in progress. All the information listed here is handy.
Optimizer is a singleton. There should be only one such an instance to be activated in the scene simultaneously:
Optimizer.Instance;
Get an Item by the item’s GUID:
public Item GetItemByGUID(string GUID);
Get a random item. Useful for selecting a random item in an optimization move:
public Item GetRandomItem(bool includedInactivated = false);
public Item GetRandomItem(HashSet<string> meta, bool includedInactivated);
public Item GetRandomItemAny(); // Includes inactivated
For getting all the activated items:
public List<Item> GetAllActivatedItems();
Get an Item by the item’s GUID: