C# Класс MissionController.Parser

Parses a file into an object. Uses reflection.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
readFile ( String path ) : object

Parses the passed file (uses KSP.IO) and returns the parsed object

writeObject ( object obj, String path ) : void

Writes the object into the passed file. (uses KSP.IO)

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

Метод Описание
nextLine ( KSP reader ) : String

Reads the next single line, that is not a comment and that is relevant ("not {")

readObject ( KSP reader ) : object

Parses the object.

readObject ( KSP reader, String name ) : object
writeObject ( KSP writer, object obj ) : void

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

readFile() публичный Метод

Parses the passed file (uses KSP.IO) and returns the parsed object
public readFile ( String path ) : object
path String Path.
Результат object

writeObject() публичный Метод

Writes the object into the passed file. (uses KSP.IO)
public writeObject ( object obj, String path ) : void
obj object Object.
path String Path.
Результат void