TECHNICAL ARCHITECTURE
Note on focus & scope of "Technical Architecture"....
Focus on technical capabilities and solution approaches, not product features (model, simulation)
CAPABILITIES
The requirements that necessitate a feature.
Distinct Layers ...
technical layer, the code implementation
in-world simulation environment, as perceived by NPC agents
player UX (IRL)
CAPABILITY: ECS - Entity-Component-System
data oriented design - separate storage of data structures and logic code, for efficiency - break traditional OOP partitioning of data + code in one unit
more performant/scalable in large scale dynamic simulation system
Separate "entities" (object types, identity) with their "components" (data elements) from data query and update logic ("systems") - "Entity" here meaning the technical concept in ECS architecture, different from SImWorld concept of simulated ENTITY.
CAPABILITY: Event Bus
for decoupled communication (publishers/subscribers)
CAPABILITY: Complex Finite State Machine
for permeating state change consequences through the system/world
CAPABILITY: Adaptive Behavior Tree for Agents
to model complex agent behavior (sentience?)
related to cognitive architecture modules?
FEATURES
Data Structures (static within simulation engine code release)
Data Domains (valid data content)
Algorithms (the logic of change, transformations)
Time Giver - progressing time in discrete increments, the impulse that manifests change
Interfaces - data, control, user
Event system, to communicate meaningful state changes to the environment
DATA STRUCTURES
each OOP object representing a simulated entity has OOP properties
the entity identity, state space, current state, control parameters, events raised upon certain state changes
Concrete architectural design decisions to be made:
Landscape as grid with discrete cells, or as graph with nodes as locations (paths can fractalize).
Multi-layered grids at various resolutions, between landscape (areas), atmosphere/weather systems, hydrosphere/water cycle (hybrid cellular automata over grids, linked to aggregating graphs)
ALGORITHMS
the logic of change for states of simulated entities
either state is determined by a continuous function, or by a difference function (based on discrete time progression)
INTERFACES
the internal technical data structures need to be mapped to a representation that can be perceived by the creatures in the simulated world. so there are levels of representation...
internal technical manifestation of data, for storage and management on a computer in software
logical representation in the simulated world, for perception and interaction by in-game world creatures and entities (systemic vs. alive/sentient)
representation for the real-world human player, observing / playing with the simulation as a game (UX)