示例#1
0
        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;
            }
        }