C# Класс AGS.Editor.DataFileWriter

Показать файл Открыть проект

Открытые методы

Метод Описание
MakeDataFile ( string fileNames, int splitSize, string baseFileName, bool makeFileNameAssumptions ) : string
SaveThisGameToFile ( string fileName, Game game, CompileMessages errors ) : bool

Приватные методы

Метод Описание
CompileCustomProperties ( AGS.Types.CustomProperties convertFrom, CompiledCustomProperties compileInto ) : void
CopyFileAcross ( Stream instream, Stream copystream, long leftforthis ) : int
DataFileWriter ( ) : System
EncryptText ( string toEncrypt ) : string
FilePutIntEncrypted ( int numberToWrite, BinaryWriter writer ) : void
FilePutNullTerminatedString ( string text, int maxLen, BinaryWriter writer ) : void
FilePutString ( string text, BinaryWriter writer ) : void
FilePutStringEncrypted ( string text, BinaryWriter writer ) : void
FileWriteDataEncrypted ( byte data, BinaryWriter writer ) : void
FindFileInPath ( string &buffer, string fileName ) : Stream
GetBytes ( string text, int length ) : byte[]
ReadString ( BinaryReader reader ) : string
ReadString ( int length, BinaryReader reader ) : string
SafeTruncate ( string src, int maxLength ) : string
SerializeInteractionScripts ( AGS.Types.Interactions interactions, BinaryWriter writer ) : void
TryFileOpen ( string fileName, FileAccess access ) : Stream
TryFileOpen ( string fileName, FileMode mode, FileAccess access ) : Stream
UpdateSpriteFlags ( SpriteFolder folder, byte flags ) : void
WriteCLIBHeader ( BinaryWriter writer ) : void
WriteCompiledScript ( FileStream ostream, Script script, CompileMessages errors ) : bool
WriteGameSetupStructBase_Aligned ( BinaryWriter writer, Game game ) : void
WritePluginsToDisk ( BinaryWriter writer, Game game, CompileMessages errors ) : bool
WriteString ( string src, int length, BinaryWriter writer ) : void

Writes a string to the file as bytes. Length must be provided and will pad or truncate the text as necessary.

WriteStringEncrypted ( BinaryWriter writer, string text ) : void

Описание методов

MakeDataFile() публичный статический метод

public static MakeDataFile ( string fileNames, int splitSize, string baseFileName, bool makeFileNameAssumptions ) : string
fileNames string
splitSize int
baseFileName string
makeFileNameAssumptions bool
Результат string

SaveThisGameToFile() публичный статический метод

public static SaveThisGameToFile ( string fileName, Game game, CompileMessages errors ) : bool
fileName string
game AGS.Types.Game
errors CompileMessages
Результат bool