3DRadSpace  v1.0.0a
Scripting documentation
_3DRadSpaceDll.Project Class Reference

Project class for reading and saving projects. More...

Static Public Member Functions

static List< GameObjectOpen (string filename)
 Opens a project More...
 
static void Save (string filename)
 Saves a 3DRSP project More...
 
static string Vector2String (Vector3 pos)
 Converts a vector to a string in the format needed for 3DRSP projects More...
 
static string Vector2String (Vector2 pos)
 Converts a vector to a string in the format needed for 3DRSP projects More...
 
static string Box2str (BoundingBox box)
 Used in I/O More...
 
static string Sph2str (BoundingSphere sph)
 Used in I/O More...
 
static string Plane2str (Plane p)
 Used in I/O More...
 
static void UnloadObjects ()
 Clears native memory used by the game. More...
 

Properties

static GameSettings GSettings [get]
 Type of the project to open. More...
 

Detailed Description

Project class for reading and saving projects.

Member Function Documentation

◆ Box2str()

static string _3DRadSpaceDll.Project.Box2str ( BoundingBox  box)
static

Used in I/O

Parameters
boxBounding sphere
Returns

◆ Open()

static List<GameObject> _3DRadSpaceDll.Project.Open ( string  filename)
static

Opens a project

Parameters
filenameFile to open
Returns
Returns the objects.

◆ Plane2str()

static string _3DRadSpaceDll.Project.Plane2str ( Plane  p)
static

Used in I/O

Parameters
pBounding plane
Returns

◆ Save()

static void _3DRadSpaceDll.Project.Save ( string  filename)
static

Saves a 3DRSP project

Parameters
filenameFile path

◆ Sph2str()

static string _3DRadSpaceDll.Project.Sph2str ( BoundingSphere  sph)
static

Used in I/O

Parameters
sphBounding sphere
Returns

◆ UnloadObjects()

static void _3DRadSpaceDll.Project.UnloadObjects ( )
static

Clears native memory used by the game.

This will put pressure to the C#'s garbage collection system.

◆ Vector2String() [1/2]

static string _3DRadSpaceDll.Project.Vector2String ( Vector2  pos)
static

Converts a vector to a string in the format needed for 3DRSP projects

Parameters
pos2D Vector to be converted
Returns
The needed string

◆ Vector2String() [2/2]

static string _3DRadSpaceDll.Project.Vector2String ( Vector3  pos)
static

Converts a vector to a string in the format needed for 3DRSP projects

Parameters
pos3D Vector to be converted
Returns
The needed string

Property Documentation

◆ GSettings

GameSettings _3DRadSpaceDll.Project.GSettings
staticget

Type of the project to open.

Used in editor