Esempio n. 1
0
        public override void Read(SocketEndpoint sendingEndpoint, BinaryReader message)
        {
            MaskBroadcaster.ChangeType changeType = (MaskBroadcaster.ChangeType)message.ReadByte();

            if (MaskBroadcaster.HasFlag(changeType, MaskBroadcaster.ChangeType.Properties))
            {
                attachedComponent.enabled = message.ReadBoolean();
            }
        }
        public override void Read(INetworkConnection connection, BinaryReader message)
        {
            MaskBroadcaster.ChangeType changeType = (MaskBroadcaster.ChangeType)message.ReadByte();

            if (MaskBroadcaster.HasFlag(changeType, MaskBroadcaster.ChangeType.Properties))
            {
                attachedComponent.enabled         = message.ReadBoolean();
                attachedComponent.showMaskGraphic = message.ReadBoolean();
            }
        }