public Block() { type = 0; config = null; }
/// <summary> /// Adds a block type to the index and adds it's name to a dictionary for quick lookup /// </summary> /// <param name="configs">A list of configs</param> /// <param name="types"></param> /// <param name="config">The controller object for this block</param> /// <returns>The index of the block</returns> private void AddBlockType(List <BlockConfig> configs, Dictionary <ushort, ushort> types, BlockConfig config) { config.type = (ushort)configs.Count; configs.Add(config); names.Add(config.Name, config.type); types.Add(config.TypeInConfig, config.type); }