Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ini ini = new Ini("../config/TileTypes.ini");
- foreach (string section in ini.GetSections()){
- foreach(string key in ini.GetKeys(section)){
- ini.GetValue(key);
- TileType type = new TileType()
- }
- Dictionary<string, TileType> detailedInfo = new Dictionary<string, TileType>();
- type = new TileType();
- detailedInfo.Add(key, type);
- }
- /*Ini File Follows*/
- ;I really didn't want to do it this way, but here we go. New Types of Tiles are here!
- ;Syntax Is:
- ;[TILETYPE] <-ALL CAPS
- ;name=tilename
- ;tileChar='ch' <-single char to use for printing to console: debug only, really.
- ;passable=true/false
- ;speedMod=.05 <- floating point from 0.0 to 1.0
- ;image=imagename.png <-do not path this, we handle that in the engine
- [WATER]
- name="water"
- tilechar=~
- passable=false
- speedmod=0
- image=water.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement