找回密码
 点一下
查看: 2140|回复: 1

SC2 Serialization

[复制链接]
发表于 2010-6-15 22:36:15 | 显示全部楼层 |阅读模式
via SC2mapster

//OMG, the author is The Laughing Man
Untitled.png

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:


    [li]Boolean (Implemented)
    [/li][li]Byte (Implemented)
    [/li][li]Character
    [/li][li]Integer (Implemented)
    [/li][li]Fixed/Real (Implemented)
    [/li][li]String (Implemented)
    [/li][li]Text
    [/li]
Advanced Variable Types:

    [li]Ability Command (Implemented)
    [/li][li]Actor
    [/li][li]Actor Message
    [/li][li]Actor Scope
    [/li][li]AI Filter
    [/li][li]Animation Name
    [/li][li]Attribute ID (Game)
    [/li][li]Attribute ID (Player)
    [/li][li]Attribute Value
    [/li][li]Bank
    [/li][li]Battle Report
    [/li][li]Camera Object
    [/li][li]Cinematic
    [/li][li]Color
    [/li][li]Conversation
    [/li][li]Conversation Reply
    [/li][li]Conversation State Index
    [/li][li]Dialog
    [/li][li]Difficulty Level
    [/li][li]Doodad
    [/li][li]Leaderboard
    [/li][li]Marker
    [/li][li]Mercenary
    [/li][li]Model Camera
    [/li][li]Objective
    [/li][li]Order
    [/li][li]Ping
    [/li][li]Planet
    [/li][li]Player Color
    [/li][li]Player Group
    [/li][li]Point
    [/li][li]Portrait
    [/li][li]Purchase Category
    [/li][li]Purchase Group
    [/li][li]Purchase Item
    [/li][li]Region
    [/li][li]Research Category
    [/li][li]Research Item
    [/li][li]Research Tier
    [/li][li]Revealer
    [/li][li]Room Button
    [/li][li]Sound
    [/li][li]Sound Link
    [/li][li]Target Filter
    [/li][li]Text Tag
    [/li][li]Time Of Day
    [/li][li]Timer
    [/li][li]Timer Window
    [/li][li]Transmission
    [/li][li]Transmission Source
    [/li][li]Trigger
    [/li][li]Unit
    [/li][li]Unit Filter
    [/li][li]Unit Group
    [/li][li]Unit Type
    [/li][li]Water
    [/li][li]Wave
    [/li][li]Wave Info
    [/li][li]Wave Target
    [/li]

sc2-serialization-r5.zip

6 KB, 下载次数: 14

发表于 2010-6-15 23:18:35 | 显示全部楼层
如果连Unit也Serializable的话。那就比官方还强大了啊。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-9-20 16:02 , Processed in 0.212654 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表