示例#1
0
 public static CursorEvent Read(Dictionary<byte, object> par)
 {
     var res = new CursorEvent();
     res.doSet = (bool) par[(byte) DiscussionParamKey.BoolParameter1];
     res.ownerId = (int) par[(byte) DiscussionParamKey.UserCursorUsrId];
     res.shapeId = (int) par[(byte) DiscussionParamKey.ShapeId];
     res.topicId = (int) par[(byte) DiscussionParamKey.ChangedTopicId];
     return res;
 }
示例#2
0
        public static CursorEvent Read(Dictionary <byte, object> par)
        {
            var res = new CursorEvent();

            res.doSet   = (bool)par[(byte)DiscussionParamKey.BoolParameter1];
            res.ownerId = (int)par[(byte)DiscussionParamKey.UserCursorUsrId];
            res.shapeId = (int)par[(byte)DiscussionParamKey.ShapeId];
            res.topicId = (int)par[(byte)DiscussionParamKey.ChangedTopicId];
            return(res);
        }
示例#3
0
        void cursorEvent(CursorEvent ev)
        {
            if (ev.topicId != _doc.TopicId)
                return;

            if (ev.doSet)
                PlayTakeCursor(ev.ownerId, ev.shapeId);
            else
                PlayFreeCursor(ev.ownerId, ev.shapeId);
        }