This class was first renamed from Grid2D in https://github.com/goostengine/goost/pull/67 to avoid confusion with GridRect. After using the class more, it becomes apparent that Map2D better reflects the functionality here, because it allows to map 2D Cartesian coordinates to values. Map3D could also be implemented.
This should also signify that the API may be similar to TileMap, BitMap, Image (technically a PixMap, you may see this name in some image processing libraries).
This also avoids using Variant in a class name, which is frankly redundant.
VariantResource → DataContainer
The Resource is described as a class intended to be used as a data container. Because DataContainer is a Resource that handles any Variant data, it makes sense to name it that way.
Godot has a similar PackedDataContainer, which packs Variant as PoolByteArray.
Avoids using Variant in a class name, which is redundant (same as in VariantMap renamed to Map2D).
Part of #176.
VariantMap
→Map2D
This class was first renamed from
Grid2D
in https://github.com/goostengine/goost/pull/67 to avoid confusion withGridRect
. After using the class more, it becomes apparent thatMap2D
better reflects the functionality here, because it allows to map 2D Cartesian coordinates to values.Map3D
could also be implemented.This should also signify that the API may be similar to
TileMap
,BitMap
,Image
(technically aPixMap
, you may see this name in some image processing libraries).This also avoids using
Variant
in a class name, which is frankly redundant.VariantResource
→DataContainer
Resource
is described as a class intended to be used as a data container. BecauseDataContainer
is aResource
that handles anyVariant
data, it makes sense to name it that way.PackedDataContainer
, which packsVariant
asPoolByteArray
.Variant
in a class name, which is redundant (same as inVariantMap
renamed toMap2D
).