public CAGraphCell(CAGraph parent, ValueTuple <ushort, ushort, ushort> position, Dictionary <string, dynamic> properties, CAGraphCellAgent agent) : base(CAEntityType.Cell, properties) { this.Parent = parent; this.Position = position; if (agent != null) { this.Agent = agent.Copy(this); } }
public void AddAgent(CAGraphCellAgent agent) { Agent = agent.Copy(this); Parent.AddAgentCell(Position); }