VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VR-Forces Database Events

A database event type defines a particular type of data to be logged to the database. Each event type will result in the creation of a new table in the database. Each event type is identified by an enumeration, DtVrfDatabaseEvent::EventType, which can be mapped to a table name.

The Database Tables Generated by VR-Forces section defines the default database tables created by VR-Forces. Plugin developers can also add their own event types resulting in new tables. It is not necessary to fully define the event and all of its parameters ahead of time, as we do here. The first time a database event is logged a table will automatically be created with matching parameters. However, doing so up front will ensure the table is created ahead of time and will force all future events of the same type to conform to the defined parameters.

Please see the example for details on how to connect VR-Forces to new types of databases or add new database events and tables.

Database Tables Generated by VR-Forces

This is the list of database tables VR-Forces generates. Each table has a name, description, and a list of its parameters.

Additionally, all tables will automatically have three parameters added if not specified:

Scenario Run

Table Name: ScenarioRun
Description: Logged whenever a scenario is created/loaded and run.
Parameters:

Sim Engine

Table Name: SimEngine
Description: Logged when a sim engine starts up and then updated at shutdown.
Parameters:

Fire

Table Name: Fire
Description: Logged whenever a munition is fired.
Parameters:

Detonation

Table Name: Detonation
Description: Logged whenever a detonation occurs.
Parameters:

Damage

Table Name: Damage
Description: Logged whenever an entity takes damage.
Parameters:

Object

Table Name: Object
Description: Logged whenever a new sim object is created.
Parameters:

Fuel Resource

Table Name: FuelResource
Description: Logs the amount of fuel an entity currently has.
Parameters:

Weapon Resource

Table Name: WeaponResource
Description: Logs the amount of a weapon resource an entity currently has.
Parameters:

Other Resource

Table Name: OtherResource
Description: Logs the amount of a another resource an entity currently has. Used for resources other than fuel and weapons.
Parameters:

Detection

Table Name: Detection
Description: Logs information about what an entity currently knows about another object it has detected.
Parameters:


Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)