public override void Read(SocketEndpoint sendingEndpoint, BinaryReader message)
        {
            CanvasRendererBroadcaster.ChangeType changeType = (CanvasRendererBroadcaster.ChangeType)message.ReadByte();

            if (CanvasRendererBroadcaster.HasFlag(changeType, CanvasRendererBroadcaster.ChangeType.Properties))
            {
                attachedComponent.SetAlpha(message.ReadSingle());
                attachedComponent.SetColor(message.ReadColor());
            }
        }
Exemple #2
0
        public override void Read(INetworkConnection connection, BinaryReader message)
        {
            CanvasRendererBroadcaster.ChangeType changeType = (CanvasRendererBroadcaster.ChangeType)message.ReadByte();

            if (CanvasRendererBroadcaster.HasFlag(changeType, CanvasRendererBroadcaster.ChangeType.Properties))
            {
                attachedComponent.SetAlpha(message.ReadSingle());
                attachedComponent.SetColor(message.ReadColor());
            }
        }