コード例 #1
0
        public override void Update()
        {
            // Try get the other party's UUID and display name
            if (!Client.Instance.TryGetOtherPartyUuid(TradeId, out otherPartyUuid) ||
                !Client.Instance.TryGetDisplayName(otherPartyUuid, out cachedOtherPartyDisplayName))
            {
                // Failed to get the other party's display name
                throw new Exception("Failed to get the other party's display name.");
            }

            // Try get the other party's accepted state
            if (!Client.Instance.TryGetPartyAccepted(TradeId, otherPartyUuid, out cachedOtherPartyAccepted))
            {
                // Failed to get the other party's accepted state
                throw new Exception("Failed to get whether the other party has accepted or not.");
            }

            // Update the pre-generated row
            content.Update();
        }
コード例 #2
0
 /// <inheritdoc />
 public override void Update()
 {
     // Just update the child. No need to update the padded one since it contains the same object.
     child.Update();
 }
コード例 #3
0
 /// <inheritdoc />
 public override void Update()
 {
     child.Update();
 }
コード例 #4
0
 /// <inheritdoc />
 public override void Update()
 {
     childIfTrue.Update();
     childIfFalse.Update();
 }