Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
As the title says a WorldData deserializer for the latest EE version, written in C#.
The code is completely commented and also contains help on how to use it.
This is an updated and improved version of Capasha's deserializer.
The title shows for which version of EE it is. When this isn't the same as EE's current version then it's outdated.
Code:
http://pastebin.com/DsWyWxj9
How to use:
It's advisable to put the code snippet inside a method/function, but not required.
The code snippet uses variables that define the read data, personalized per block.
After the for-lop, but still inside the while-loop you can handle the found information.
Do mind that you should first check what variables have been given a value to (if the value of a variable is -1 or null that means the block doesn't use that data).
Offline
Updated:
You could get the position of only the first item, it's updated so you actually receive all blocks with all their positions.
(A block is mentioned only once, but with positions for all occurrences of the block)
Offline
(A block is mentioned only once, but with positions for all occurrences of the block)
That's basically the way init gives the block list to the player.
Anyhow, it looks good.
Offline
den3107 wrote:(A block is mentioned only once, but with positions for all occurrences of the block)
That's basically the way init gives the block list to the player.
I knew that, though forgot to actually implement it...
Basically put it there since I know that people that have never been in touch with RoomData are not aware of this (and might want to be).
Anyhow, it looks good.
Glad you like it, much appreciated!
Offline
Quick update:
Previously you could only use the world deserializer for the "init" event.
Now you can also use it for the "reset" event.
Offline
[ Started around 1732483423.9754 - Generated in 0.086 seconds, 12 queries executed - Memory usage: 1.42 MiB (Peak: 1.53 MiB) ]