Beispiel #1
0
        public void Serialize(BeauData.Serializer ioSerializer)
        {
            ioSerializer.Enum("type", ref m_Type);

            switch (m_Type)
            {
            case VariantType.Bool:
            {
                ioSerializer.Serialize("value", ref m_BoolValue);
                break;
            }

            case VariantType.Float:
            {
                ioSerializer.Serialize("value", ref m_FloatValue);
                break;
            }

            case VariantType.Int:
            {
                ioSerializer.Serialize("value", ref m_IntValue);
                break;
            }

            case VariantType.UInt:
            {
                ioSerializer.Serialize("value", ref m_UIntValue);
                break;
            }

            case VariantType.StringHash:
            {
                ioSerializer.UInt32Proxy("value", ref m_StringHashValue);
                break;
            }
            }
        }
Beispiel #2
0
 public void Serialize(BeauData.Serializer ioSerializer)
 {
     ioSerializer.UInt32Proxy("id", ref Id);
     Value.Serialize(ioSerializer);
 }