protected virtual void ParsePlayer(FArchive archive, PlayerEliminationInfo info) { info.PlayerType = archive.ReadByteAsEnum <PlayerTypes>(); switch (info.PlayerType) { case PlayerTypes.Bot: break; case PlayerTypes.NamedBot: info.Id = archive.ReadFString(); break; case PlayerTypes.Player: info.Id = archive.ReadGUID(archive.ReadByte()); break; } }
protected virtual string ParsePlayer(FArchive archive) { // TODO player type enum var botIndicator = archive.ReadByte(); if (botIndicator == 0x03) { return("Bot"); } else if (botIndicator == 0x10) { return(archive.ReadFString()); } // 0x11 var size = archive.ReadByte(); return(archive.ReadGUID(size)); }