public static Markup Get(ushort nodeId) { if (!NodesMarkup.TryGetValue(nodeId, out Markup markup)) { markup = new Markup(nodeId); NodesMarkup[nodeId] = markup; } return(markup); }
public static void NetManagerSimulationStepImplPostfix() { var needUpdate = NeedUpdate.ToArray(); NeedUpdate.Clear(); foreach (var nodeId in needUpdate) { if (NodesMarkup.TryGetValue(nodeId, out Markup markup)) { markup.Update(); } } }
public static bool TryGetMarkup(ushort nodeId, out Markup markup) => NodesMarkup.TryGetValue(nodeId, out markup);