Glue:Reference:Global Content:Setting files at runtime

Introduction All files in GlobalContent have a getter and a setter. This means that you are able to set files at runtime if you would like to update them in custom code. This section will discuss the details of setting files, and why you may want to do this in your projects. Example Scenario Setting[…]

FlatRedBall.IO.Csv.RuntimeCsvRepresentation

Introduction The RuntimeCsvRepresentation class is a general-purpose class which represents a CSV file. It can be easily created through the CsvFileManager. Loading a RuntimeCsvRepresentation RuntimeCsvRepresentations can be loaded as follows:

For more information see the CsvFileManager page. RuntimeCsvRepresentation Members FlatRedBall.IO.Csv.RuntimeCsvRepresentation.FromList FlatRedBall.IO.Csv.RuntimeCsvRepresentation.GenerateCsvString Did this article leave any questions unanswered? Post any question in our forums[…]

Rows with Lists

Introduction As explained in the main CsvFileManager page, you can easily create CSV files to define data classes such as:

But what if you wanted to also include a list of modifications on the car. In other words, something like this:

The CsvFileManager understands special syntax allowing for objects represented in a row[…]

Using CSVs

Introducing CSV The CSV file format is a very powerful file format which allows for the creation of lists of custom objects. The CSV format is usually used in two situations in Glue: To create lists of objects, such as the position of enemies in a level To create stats and coefficients, such as the[…]

CsvFileManager

Introduction The CsvFileManager is a class which provides functionality for working with .csv files. The CSV file format is a simple file format that can be loaded and saved by spreadsheet programs. Glue provides a lot of functionality for working with CSV files. For information on working with CSV and Glue, see the using CSVs[…]