コード例 #1
0
 // Token: 0x06001FF1 RID: 8177 RVA: 0x000B05CC File Offset: 0x000AE9CC
 public static void deleteFile(SteamPlayerID playerID, string path)
 {
     if (PlayerSavedata.hasSync)
     {
         ReadWrite.deleteFile(string.Concat(new object[]
         {
             "/Sync/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }), false);
     }
     else
     {
         ServerSavedata.deleteFile(string.Concat(new object[]
         {
             "/Players/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }));
     }
 }
コード例 #2
0
 // Token: 0x06001FED RID: 8173 RVA: 0x000B02AC File Offset: 0x000AE6AC
 public static Data readData(SteamPlayerID playerID, string path)
 {
     if (PlayerSavedata.hasSync)
     {
         return(ReadWrite.readData(string.Concat(new object[]
         {
             "/Sync/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }), false));
     }
     return(ServerSavedata.readData(string.Concat(new object[]
     {
         "/Players/",
         playerID.steamID,
         "_",
         playerID.characterID,
         "/",
         Level.info.name,
         path
     })));
 }
コード例 #3
0
 // Token: 0x06001FEC RID: 8172 RVA: 0x000B01E0 File Offset: 0x000AE5E0
 public static void writeData(SteamPlayerID playerID, string path, Data data)
 {
     if (PlayerSavedata.hasSync)
     {
         ReadWrite.writeData(string.Concat(new object[]
         {
             "/Sync/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }), false, data);
     }
     else
     {
         ServerSavedata.writeData(string.Concat(new object[]
         {
             "/Players/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }), data);
     }
 }
コード例 #4
0
 // Token: 0x06001FEF RID: 8175 RVA: 0x000B043C File Offset: 0x000AE83C
 public static Block readBlock(SteamPlayerID playerID, string path, byte prefix)
 {
     if (PlayerSavedata.hasSync)
     {
         return(ReadWrite.readBlock(string.Concat(new object[]
         {
             "/Sync/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }), false, prefix));
     }
     return(ServerSavedata.readBlock(string.Concat(new object[]
     {
         "/Players/",
         playerID.steamID,
         "_",
         playerID.characterID,
         "/",
         Level.info.name,
         path
     }), prefix));
 }
コード例 #5
0
 // Token: 0x06001FF0 RID: 8176 RVA: 0x000B0504 File Offset: 0x000AE904
 public static River openRiver(SteamPlayerID playerID, string path, bool isReading)
 {
     if (PlayerSavedata.hasSync)
     {
         return(new River(string.Concat(new object[]
         {
             "/Sync/",
             playerID.steamID,
             "_",
             playerID.characterID,
             "/",
             Level.info.name,
             path
         }), true, false, isReading));
     }
     return(ServerSavedata.openRiver(string.Concat(new object[]
     {
         "/Players/",
         playerID.steamID,
         "_",
         playerID.characterID,
         "/",
         Level.info.name,
         path
     }), isReading));
 }
コード例 #6
0
 // Token: 0x06002FAF RID: 12207 RVA: 0x0013B9AC File Offset: 0x00139DAC
 public static void load()
 {
     SteamBlacklist._list = new List <SteamBlacklistID>();
     if (ServerSavedata.fileExists("/Server/Blacklist.dat"))
     {
         River river = ServerSavedata.openRiver("/Server/Blacklist.dat", true);
         byte  b     = river.readByte();
         if (b > 1)
         {
             ushort num = river.readUInt16();
             for (ushort num2 = 0; num2 < num; num2 += 1)
             {
                 CSteamID newPlayerID = river.readSteamID();
                 uint     newIP;
                 if (b > 2)
                 {
                     newIP = river.readUInt32();
                 }
                 else
                 {
                     newIP = 0u;
                 }
                 CSteamID         newJudgeID       = river.readSteamID();
                 string           newReason        = river.readString();
                 uint             newDuration      = river.readUInt32();
                 uint             newBanned        = river.readUInt32();
                 SteamBlacklistID steamBlacklistID = new SteamBlacklistID(newPlayerID, newIP, newJudgeID, newReason, newDuration, newBanned);
                 if (!steamBlacklistID.isExpired)
                 {
                     SteamBlacklist.list.Add(steamBlacklistID);
                 }
             }
         }
     }
 }
コード例 #7
0
 // Token: 0x06001FF3 RID: 8179 RVA: 0x000B0758 File Offset: 0x000AEB58
 public static void deleteFolder(SteamPlayerID playerID)
 {
     if (PlayerSavedata.hasSync)
     {
         for (byte b = 0; b < Customization.FREE_CHARACTERS + Customization.PRO_CHARACTERS; b += 1)
         {
             if (ReadWrite.folderExists(string.Concat(new object[]
             {
                 "/Sync/",
                 playerID.steamID,
                 "_",
                 playerID.characterID
             }), false))
             {
                 ReadWrite.deleteFolder(string.Concat(new object[]
                 {
                     "/Sync/",
                     playerID.steamID,
                     "_",
                     playerID.characterID
                 }), false);
             }
         }
     }
     else
     {
         for (byte b2 = 0; b2 < Customization.FREE_CHARACTERS + Customization.PRO_CHARACTERS; b2 += 1)
         {
             if (ServerSavedata.folderExists(string.Concat(new object[]
             {
                 "/Players/",
                 playerID.steamID,
                 "_",
                 playerID.characterID
             })))
             {
                 ServerSavedata.deleteFolder(string.Concat(new object[]
                 {
                     "/Players/",
                     playerID.steamID,
                     "_",
                     playerID.characterID
                 }));
             }
         }
     }
 }
コード例 #8
0
        // Token: 0x06002FA6 RID: 12198 RVA: 0x0013B76C File Offset: 0x00139B6C
        public static void save()
        {
            River river = ServerSavedata.openRiver("/Server/Adminlist.dat", false);

            river.writeByte(SteamAdminlist.SAVEDATA_VERSION);
            river.writeUInt16((ushort)SteamAdminlist.list.Count);
            ushort num = 0;

            while ((int)num < SteamAdminlist.list.Count)
            {
                SteamAdminID steamAdminID = SteamAdminlist.list[(int)num];
                river.writeSteamID(steamAdminID.playerID);
                river.writeSteamID(steamAdminID.judgeID);
                num += 1;
            }
            river.closeRiver();
        }
コード例 #9
0
        // Token: 0x06002FB0 RID: 12208 RVA: 0x0013BA70 File Offset: 0x00139E70
        public static void save()
        {
            River river = ServerSavedata.openRiver("/Server/Blacklist.dat", false);

            river.writeByte(SteamBlacklist.SAVEDATA_VERSION);
            river.writeUInt16((ushort)SteamBlacklist.list.Count);
            ushort num = 0;

            while ((int)num < SteamBlacklist.list.Count)
            {
                SteamBlacklistID steamBlacklistID = SteamBlacklist.list[(int)num];
                river.writeSteamID(steamBlacklistID.playerID);
                river.writeUInt32(steamBlacklistID.ip);
                river.writeSteamID(steamBlacklistID.judgeID);
                river.writeString(steamBlacklistID.reason);
                river.writeUInt32(steamBlacklistID.duration);
                river.writeUInt32(steamBlacklistID.banned);
                num += 1;
            }
            river.closeRiver();
        }
コード例 #10
0
 // Token: 0x060030A6 RID: 12454 RVA: 0x0013F1D4 File Offset: 0x0013D5D4
 public static void load()
 {
     SteamWhitelist._list = new List <SteamWhitelistID>();
     if (ServerSavedata.fileExists("/Server/Whitelist.dat"))
     {
         River river = ServerSavedata.openRiver("/Server/Whitelist.dat", true);
         byte  b     = river.readByte();
         if (b > 1)
         {
             ushort num = river.readUInt16();
             for (ushort num2 = 0; num2 < num; num2 += 1)
             {
                 CSteamID         newSteamID = river.readSteamID();
                 string           newTag     = river.readString();
                 CSteamID         newJudgeID = river.readSteamID();
                 SteamWhitelistID item       = new SteamWhitelistID(newSteamID, newTag, newJudgeID);
                 SteamWhitelist.list.Add(item);
             }
         }
     }
 }
コード例 #11
0
 // Token: 0x06002FA5 RID: 12197 RVA: 0x0013B6E0 File Offset: 0x00139AE0
 public static void load()
 {
     SteamAdminlist._list   = new List <SteamAdminID>();
     SteamAdminlist.ownerID = CSteamID.Nil;
     if (ServerSavedata.fileExists("/Server/Adminlist.dat"))
     {
         River river = ServerSavedata.openRiver("/Server/Adminlist.dat", true);
         byte  b     = river.readByte();
         if (b > 1)
         {
             ushort num = river.readUInt16();
             for (ushort num2 = 0; num2 < num; num2 += 1)
             {
                 CSteamID     newPlayerID = river.readSteamID();
                 CSteamID     newJudgeID  = river.readSteamID();
                 SteamAdminID item        = new SteamAdminID(newPlayerID, newJudgeID);
                 SteamAdminlist.list.Add(item);
             }
         }
     }
 }
コード例 #12
0
 // Token: 0x06001FD5 RID: 8149 RVA: 0x000AFB61 File Offset: 0x000ADF61
 public static void writeData(string path, Data data)
 {
     ServerSavedata.writeData("/Level/" + Level.info.name + path, data);
 }
コード例 #13
0
 // Token: 0x06001FD7 RID: 8151 RVA: 0x000AFB9A File Offset: 0x000ADF9A
 public static void writeBlock(string path, Block block)
 {
     ServerSavedata.writeBlock("/Level/" + Level.info.name + path, block);
 }
コード例 #14
0
 // Token: 0x06001FD8 RID: 8152 RVA: 0x000AFBB7 File Offset: 0x000ADFB7
 public static Block readBlock(string path, byte prefix)
 {
     return(ServerSavedata.readBlock("/Level/" + Level.info.name + path, prefix));
 }
コード例 #15
0
 // Token: 0x06001FD9 RID: 8153 RVA: 0x000AFBD4 File Offset: 0x000ADFD4
 public static River openRiver(string path, bool isReading)
 {
     return(ServerSavedata.openRiver("/Level/" + Level.info.name + path, isReading));
 }
コード例 #16
0
 // Token: 0x06001FDA RID: 8154 RVA: 0x000AFBF1 File Offset: 0x000ADFF1
 public static void deleteFile(string path)
 {
     ServerSavedata.deleteFile("/Level/" + Level.info.name + path);
 }
コード例 #17
0
 // Token: 0x06001FDB RID: 8155 RVA: 0x000AFC0D File Offset: 0x000AE00D
 public static bool fileExists(string path)
 {
     return(ServerSavedata.fileExists("/Level/" + Level.info.name + path));
 }
コード例 #18
0
 // Token: 0x06001FD4 RID: 8148 RVA: 0x000AFB4F File Offset: 0x000ADF4F
 public static string transformName(string name)
 {
     return(ServerSavedata.transformPath("/Level/" + name));
 }
コード例 #19
0
 // Token: 0x06001FD6 RID: 8150 RVA: 0x000AFB7E File Offset: 0x000ADF7E
 public static Data readData(string path)
 {
     return(ServerSavedata.readData("/Level/" + Level.info.name + path));
 }