请用俄语解释 BuildContext 是什么。我已阅读文档,但我无法理解。我也在这里阅读,最后我没有理解更多。
主页
/
user-185516
dakiesse's questions
复杂的问题。因此,有一个 png'shka,上面有一堆 30x30 的瓷砖。我Sprite Editor
在帮助下将其全部剪切并得到了一个图集(我正确地调用了实体吗?):
此外,我想以某种方式将地图集的每个元素映射到常量:
public class TitleMap
{
public const string GROUND_DESERT = "desert";
public const string GROUND_GREEN_GRASS = "green_grass";
public const string GROUND_SANDY_LOAM = "sandy_loam";
// Common roads
public const byte NEW_VERT_ROAD = 1;
public const byte NEW_HORZ_ROAD = 2;
public const byte BRK_VERT_ROAD = 3;
public const byte BRK_HORZ_ROAD = 4;
public const byte RSD_HORZ_ROAD = 6;
public const byte CROSS_ROAD = 8;
// Rotated roads
public const byte RTT_BOTTOM_RIGHT_ROAD = 10;
public const byte RTT_BOTTOM_LEFT_ROAD = 11;
public const byte RTT_TOP_LEFT_ROAD = 12;
public const byte RTT_TOP_RIGHT_ROAD = 13;
// Decor
public const byte GREENERY_BUSH = 15;
public const byte GREENERY_TREE_1 = 16;
public const byte GREENERY_TREE_2 = 17;
public const byte GREENERY_TREE_3 = 18;
// ......
}
为了将CSV
这些值发送给我,在它们之后我渲染了这些精灵。
总计:如何加载图集,然后使用它,之前已经将它映射到常量?