oMap and MapObject - HerissonMignion/FactorioOrganizer GitHub Wiki

oMap

oMap is just a list of all the MapObject it contains. It has multiple functions to get MapObject closest to a specified virtual coordinate. It has a void Save and a constructor who take a file path to load the save.

MapObject

MapObject is either a machine or a belt. It's type is specified in the constructor. When MapObject is a machine, it has a void SetRecipe who will handle defining its inputs, outputs and IsFurnace. For belts, the only usefull property is BeltOutput but for machines, it's the arrays Outputs Inputs, TheRecipe and IsFurnace and NeedCoal. TheRecipe defines the inputs, outputs and IsFurnace. Inputs and outputs are items of the game. The recipe is also defined by an item of the game, usually the item the recipe produce in output.