Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Block[] AllBlocks;
- public void LoadBlockData
- {
- if (File.Exists("blocks.txt"))
- {
- string[] data = File.ReadAllLines();
- AllBlocks = new Blocks[data.Length];
- foreach (string block in data)
- {
- string[] b = block.Split(' ');
- AllBlocks[uint.Parse(b[1])] = new Block { Layer = uint.Parse(b[0]), ID = uint.Parse(b[1]), ParamCount = uint.Parse(b[2]) };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment