I am creating a game space in Unity (which is only slightly relevant) in C #, which supposedly is .NET, since it is in Unity. The playback space is two-dimensional and is generated through cellular automata with refining methods that make the shape of the playing space “usable” for my purposes.
Currently, data on the base playback space (living cells or dead, open or closed, tracks or walls) is stored as a binary value in the array int[,]. In the end, additional data will also be stored in the array or potentially in the secondary collection associated with this array int[,].
Additional data will include information on such things as: the player visited this cell, can the player see this cell at present (LoS), is there an opponent or an object / element in this cell.
LoS, hasVisited, and enemy data will be dynamic, obviously as the player moves and enemies move along their paths.
, , - , .
:
, ? , mapA - [80,80], mapB - [160,160], mapB 4x ? - , int[,]?
, - Dictionary<int[,], Dictionary<string, string>>. , , - , , , Dictionary<> . , , , , . , , , .
!