コード例 #1
0
        static YamlEntitySerializer()
        {
            _structSerializer = new StructSerializer();
            _typeSerializers  = new Dictionary <Type, TypeSerializer>();

            _typeSerializers.Add(typeof(Color), new ColorSerializer());
            _typeSerializers.Add(typeof(MapId), new MapIdSerializer());
            _typeSerializers.Add(typeof(GridId), new GridIdSerializer());
            _typeSerializers.Add(typeof(Vector2), new Vector2Serializer());
            _typeSerializers.Add(typeof(Angle), new AngleSerializer());
            _typeSerializers.Add(typeof(Box2), new Box2Serializer());
        }