This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
177 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Custom Campaign V2.0 | ||
|
||
This file was built using the custom campaign community tools for Distance: | ||
It is not advised to manually edit this file as it could break in unpredictable ways | ||
|
||
For more info, refer to | ||
- The distance mods project page: https://github.com/REHERC/Centrifuge.Mods.Distance | ||
- The distance discord server: http://discord.gg/distance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma warning disable RCS1110 | ||
|
||
using System.IO; | ||
using System.Text; | ||
|
||
public static class StringEx | ||
{ | ||
public static Stream GetStream(this string input) | ||
{ | ||
return new MemoryStream(Encoding.UTF8.GetBytes(input)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Common.SharpCompress/Extensions/SharpCompress/Archives/Zip/ZipArchiveEntryEx.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma warning disable RCS1110, IDE0063 | ||
using SharpCompress.Archives.Zip; | ||
using System.IO; | ||
|
||
public static class ZipArchiveEntryEx | ||
{ | ||
public static string GetText(this ZipArchiveEntry entry) | ||
{ | ||
using (StreamReader reader = new StreamReader(entry.OpenEntryStream())) | ||
{ | ||
return reader.ReadToEnd(); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
Common.SharpCompress/Extensions/SharpCompress/Writers/IWriterEx.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma warning disable RCS1110, IDE0063 | ||
|
||
using SharpCompress.Writers; | ||
using System.IO; | ||
|
||
public static class IWriterEx | ||
{ | ||
public static void CreateEntry(this IWriter writer, string filename, string data) | ||
{ | ||
using (Stream stream = data.GetStream()) | ||
{ | ||
writer.Write(filename, stream); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters