How to add mods support to my game?

How to add mods support to my game? I think about custom maps, change variables etc.