Class SecurityToken

From TrainzOnline
Revision as of 10:58, 26 February 2024 by Pw3r (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

API Hierarchy


  • Used as a security pass or key, to restrict access to certain functions/functionality.
  • A SecurityToken can be issued and validated by any Class TrainzGameObject.



Methods

IsOwnerLocallyModified

public native bool IsOwnerLocallyModified(void)
Parameters
  • None
Returned Value
  • Whether the asset the issuing script belongs to is locally modified.
Syntax;
if (token.IsOwnerLocallyModified())
  return;
Notes
  • Can be used to reject tokens where the security may have been compromised by local edits.


Personal tools