//called only locally private void onClusterUncluster(ClientCluster cluster, ClientClusterable badge, bool plus, bool playImmidiately) { if (plus) { //cluster must exist clusterRebuildPending = true; _rt.clienRt.SendClusterBadgeRequest(badge.GetId(), cluster.GetId(), _palette.GetOwnerId(), TopicId, playImmidiately, -1); } else { //server checks if affected clsuter is empty clusterRebuildPending = true; _rt.clienRt.SendUnclusterBadgeRequest(badge.GetId(), cluster.GetId(), TopicId, _palette.GetOwnerId(), playImmidiately, -1); } }
//ctor for drawing public VdCluster(int owner, int shapeId, VdDocument doc, OnClusterUncluster onClusterUncluster, OnClusterCleanup OnClusterCleanup) : base(owner, shapeId) { _doc = doc; _endpoint = new ClientCluster(shapeId, boundsProvider); _onClusterUncluster = onClusterUncluster; _OnClusterCleanup = OnClusterCleanup; init(DaoUtils.UserIdToColor(owner)); }
//called only locally void onClusterUncluster(ClientCluster cluster, ClientClusterable badge, bool plus, bool playImmidiately) { if (plus) { //cluster must exist clusterRebuildPending = true; _rt.clienRt.SendClusterBadgeRequest(badge.GetId(), cluster.GetId(), _palette.GetOwnerId(), TopicId, playImmidiately, -1); } else { //server checks if affected clsuter is empty clusterRebuildPending = true; _rt.clienRt.SendUnclusterBadgeRequest(badge.GetId(), cluster.GetId(), TopicId, _palette.GetOwnerId(), playImmidiately, -1); } }