Alexandria.GameInstance.GameInstance C# (CSharp) Méthode

GameInstance() public méthode

Decode the instance from the source text.
public GameInstance ( string source ) : System
source string
Résultat System
        public GameInstance(string source)
        {
            string[] parts = source.Split('\t');
            int version = int.Parse(parts[0]);

            if (version < 0 || version > CurrentSourceVersion)
                throw new NotSupportedException("Version " + version + " is out of range (0 to " + CurrentSourceVersion + ").");
            if (version == 0) {
                GameGuid = new Guid(parts[1]);
                GameName = parts[2].Replace("\\\t", "\t").Replace("\\\\", "\\");
            } else
                throw new NotImplementedException();
        }

Same methods

GameInstance::GameInstance ( Game game, string path ) : System