SC2 Serialization
Quote from Wikipedia:In computer science, in the context of data storage and transmission, serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file, a memory buffer, or transmitted across a network connection link to be "resurrected" later in the same or another computer environment. When the resulting series of bits is reread according to the serialization format, it can be used to create a semantically identical clone of the original object. For many complex objects, such as those that make extensive use of references, this process is not straightforward.
This library is meant to allow you to store any type of variable into a String in such a way that it is able to be "resurrected" 100%, it is more conventional to use then simply converting the variable you want into a string. If you convert anything into a string normally there is no way to know later on what type of variable it was unless you keep up with it. Serializing the data allows you to check the variable type later on, stores every bit of data that is necessary to bring it back, and even has some built in handling for corruption issues.
Basic Variable Types:
- Boolean (Implemented)
- Byte (Implemented)
- Character
- Integer (Implemented)
- Fixed/Real (Implemented)
- String (Implemented)
- Text
Advanced Variable Types:
- Ability Command (Implemented)
- Actor
- Actor Message
- Actor Scope
- AI Filter
- Animation Name
- Attribute ID (Game)
- Attribute ID (Player)
- Attribute Value
- Bank
- Battle Report
- Camera Object
- Cinematic
- Color
- Conversation
- Conversation Reply
- Conversation State Index
- Dialog
- Difficulty Level
- Doodad
- Leaderboard
- Marker
- Mercenary
- Model Camera
- Objective
- Order
- Ping
- Planet
- Player Color
- Player Group
- Point
- Portrait
- Purchase Category
- Purchase Group
- Purchase Item
- Region
- Research Category
- Research Item
- Research Tier
- Revealer
- Room Button
- Sound
- Sound Link
- Target Filter
- Text Tag
- Time Of Day
- Timer
- Timer Window
- Transmission
- Transmission Source
- Trigger
- Unit
- Unit Filter
- Unit Group
- Unit Type
- Water
- Wave
- Wave Info
- Wave Target
I guess this would be a good addition to the Andromeda Standard Lib, probably as enrichment.
It converts any variable you want into a string type value. info here
I wish I understood what this stuff does :( my map could probably turn out alot better if I did
Well ubermikeleet, this whole library is meant to allow one to serialize any object so I guess I am planning on doing some more useful ones. But no offense or anything you seem to be in some big rush for my project or something?
There is a lot of work that goes into creating each object to make sure that it works with the other languages I am planning on getting it to work with. My new version includes a library for PHP and I am planning on adding more languages.
What's with the new serializeByte? Planning on changing how you unserialize things?
No offense, but you've only done data types so far that are already handled by banks (which I guess isn't the only usage, but probably the most important one)..do you plan on doing more useful ones soon?