Example #1
0
 public static LinkCreateMessage Read(Dictionary<byte, object> par)
 {
     var res = new LinkCreateMessage();
     res.end1Id = (int) par[(byte) DiscussionParamKey.LinkEnd1Id];
     res.end2Id = (int) par[(byte) DiscussionParamKey.LinkEnd2Id];
     res.ownerId = (int) par[(byte) DiscussionParamKey.InitialShapeOwnerId];
     res.shapeId = (int) par[(byte) DiscussionParamKey.ShapeId];
     res.topicId = (int) par[(byte) DiscussionParamKey.ChangedTopicId];
     res.takeCursor = (bool) par[(byte) DiscussionParamKey.AutoTakeCursor];
     res.HeadType = (LinkHeadType) par[(byte) DiscussionParamKey.LinkHeadTypeKey];
     return res;
 }
Example #2
0
        public static LinkCreateMessage Read(Dictionary <byte, object> par)
        {
            var res = new LinkCreateMessage();

            res.end1Id     = (int)par[(byte)DiscussionParamKey.LinkEnd1Id];
            res.end2Id     = (int)par[(byte)DiscussionParamKey.LinkEnd2Id];
            res.ownerId    = (int)par[(byte)DiscussionParamKey.InitialShapeOwnerId];
            res.shapeId    = (int)par[(byte)DiscussionParamKey.ShapeId];
            res.topicId    = (int)par[(byte)DiscussionParamKey.ChangedTopicId];
            res.takeCursor = (bool)par[(byte)DiscussionParamKey.AutoTakeCursor];
            res.HeadType   = (LinkHeadType)par[(byte)DiscussionParamKey.LinkHeadTypeKey];
            return(res);
        }
Example #3
0
        void onLinkCreateEvent(LinkCreateMessage ev)
        {
            if (ev.topicId != TopicId)
                return;

            PlayLinkCreate(((LinkableHost)shapes[ev.end1Id]).GetLinkable(),
                           ((LinkableHost)shapes[ev.end2Id]).GetLinkable(),
                           ev.shapeId,
                           ev.ownerId,
                           ev.takeCursor);           
        }