Hello friends, first I would like to say I'm anti-retro. Although I guess with this thread it would make me some sort of hypocrite, since it would help(?) in the development of some of these emulators.
This is a class in some library I'm working on for both retros, and the original Habbo. With that in-mind comes the question(maybe): "Is it compatible with Pre-shuffle hotel builds?"; Yea man.
This class is able to construct both Pre/Post shuffle packets, it carries read/write methods, and will detect the type of protocol being used for the packet if not specified.
PS: By Protocol I mean Pre/Post structures.
There are also methods in this class to prepend data into the packet, these methods will encode the given value(int,string,bool), and push them to the top of the buffer(byte[]). There probably isn't a real use for these methods, but I thought.. why not?
I also should mention this class requires other classes/enums that are in the same namespace:
- Ancient.cs
- BigEndian.cs
- ByteUtils.cs
- Enumerators.cs
You can merge them into a clusterfuck, or import the namespace into your project, I'd personally just clusterfuck them. I don't know what else I should explain about this, if you have any questions or suggestions on what to add, spill it.
Ancient/Client Example:Spoiler:
Ancient/Server Example:Spoiler:
There are many more more other ways to initialize this class, with values/chunks. If I were to make an example for each constructor, I'd probably get bored of writing this thread.
Source/Classes




Reply With Quote![HMessage [C#]](http://ragezone.com/hyper728.png)


