IOExtensions.VersionCheck
Declaration#
public static Int32 VersionCheck(Stream fs, Int32 maxVersion)Parameters#
| Name | Description |
|---|---|
| fs | Stream to use |
| maxVersion | Maximum allowed versione |
Description#
Read a integer from stream and compare to maximum allowed version
Usage#
Example
using NullSave.GDTK;using System.IO;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(Stream dataStream) { int version = dataStream.VersionCheck(2); }}