public static DeleteSingleShapeEvent Read(Dictionary<byte, object> par) { var res = new DeleteSingleShapeEvent(); res.shapeId = (int) par[(byte) DiscussionParamKey.ShapeId]; res.topicId = (int) par[(byte) DiscussionParamKey.ChangedTopicId]; res.indirectOwner = (int) par[(byte) DiscussionParamKey.ShapeOwnerId]; return res; }
public static DeleteSingleShapeEvent Read(Dictionary <byte, object> par) { var res = new DeleteSingleShapeEvent(); res.shapeId = (int)par[(byte)DiscussionParamKey.ShapeId]; res.topicId = (int)par[(byte)DiscussionParamKey.ChangedTopicId]; res.indirectOwner = (int)par[(byte)DiscussionParamKey.ShapeOwnerId]; return(res); }
void _removeSingleShape(DeleteSingleShapeEvent ev) { if (ev.topicId != TopicId) return; PlayRemoveSingleShape(ev.shapeId, ev.indirectOwner); }