옵션 |
|
class foo : public MySerialize{ private: SERIAL(0x15, long , gametime, 0L); SERIAL(0x20, int , health , 100); SERIAL(0x21, int , magic , 100); public: public init(){ } public serialize(){ } } |
class foo : public MySerialize{ private: long gametime; int health; int magic; public: public init(){ gametime = 0L; health = 100; magic = 100; } public serialize(){ serialize(0x15, gametime); serialize(0x20, health);serialize(0x21, magic); } } |