コード例 #1
0
 //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);
     }
 }
コード例 #2
0
ファイル: VdCluster.cs プロジェクト: gdlprj/duscusys
        //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));
        }
コード例 #3
0
        //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));
        }
コード例 #4
0
ファイル: VdDocument.cs プロジェクト: gdlprj/duscusys
 //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);
     }             
 }