< Dice‎ | PbP‎ | RollPost
Revision as of 18:24, 1 May 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollPost.Pristine Property}} Gets the "pristine" version of the post. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public IReadOnlyList<RollResult> Pristine { ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollPost.Pristine Property

From DiceRoller Documentation

Gets the "pristine" version of the post.

  • Namespace: Dice.PbP
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public IReadOnlyList<RollResult> Pristine { get; }

Property Value

Type: System.Collections.Generic.IReadOnlyList<Dice.RollResult>

The "pristine" version of the post. This is used in cheat detection, as it should be a prefix of Current. If Pristine and Current diverge (as opposed to Current just having more elements), the post is flagged as being tampered with when Validate is called.

Remarks

Calling Validate will update Pristine if the validation is successful (i.e. no tampering was detected). This allows any additional rolls that were made to be tracked along with previously-made rolls, so that future edits cannot manipulate those rolls either.