| Home Page | Recent Changes | Preferences

ProfileExporter

UT2003 :: Object >> ProfileExporter (Ladder1.46)
00001  //-----------------------------------------------------------
00002  // Ladder.ProfileExporter
00003  //
00004  // Stores custom mutator & map download locations
00005  // Writes profile information to .txt file
00006  //-----------------------------------------------------------
00007  
00008  class ProfileExporter extends Object within LadderQuery
00009      config(LadderProfiles);
00010  
00011  struct FileZip
00012  {
00013      var string ZipName;
00014      var string ZipURL;
00015  };
00016  
00017  var config array<FileZip> Zips;
00018  
00019  
00020  function AddZipLocation(string ZipName, string URL)
00021  {
00022      local FileZip Zip;
00023      local bool ZipFound;
00024      local int i;
00025  
00026      Zip.ZipName = ZipName;
00027      Zip.ZipURL = URL;
00028  
00029  // Find out if we already have this zip on file
00030  // If so, overwrite it
00031      for ( i = 0; i < Zips.Length; i++ )
00032      {
00033          if (Zips[i].ZipName ~= ZipName)
00034          {
00035              ZipFound = True;
00036              break;
00037          }
00038      }
00039  
00040      if (ZipFound) Zips[i] = Zip;
00041      else Zips[Zips.Length] = Zip;
00042  
00043      SaveConfig();
00044  }
00045  
00046  function DeleteZipLocation(string ZipName)
00047  {
00048      local int i;
00049  
00050      for (i=0;i<Zips.Length;i++)
00051          if (Zips[i].ZipName ~= ZipName)
00052              Zips.Remove(i,1);
00053      SaveConfig();
00054  }
00055  
00056  function string FindZipLocation(string ZipName)
00057  {
00058      local int i;
00059  
00060      for (i=0;i<Zips.Length;i++)
00061          if (Zips[i].ZipName ~= ZipName)
00062              return Zips[i].ZipURL;
00063  }

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In