Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.vxGameplayScene3D Class Reference

The vxGameplayScene3D class implements the actual game logic for 3D Games. More...

Inheritance diagram for VerticesEngine.vxGameplayScene3D:
VerticesEngine.vxGameplaySceneBase VerticesEngine.vxGameplaySceneBase VerticesEngine.vxGameplaySceneBase VerticesEngine.vxGameplaySceneBase VerticesEngine.vxBaseScene VerticesEngine.vxBaseScene VerticesEngine.vxBaseScene VerticesEngine.vxBaseScene VerticesEngine.Screens.vxModelViewer

Public Member Functions

 vxGameplayScene3D (vxStartGameMode sandboxStartMode, string fileToOpen="", int numberOfPlayers=1)
 Constructor which starts the game as a Normal (Non-Networked) game.
 
override void LoadContent ()
 Load graphics content for the game. Note the base.LoadContent() must be called at the top of any override function so that all systems are properly set up before loading your code. The calling order is:
 
override IEnumerator LoadContentAsync ()
 Loads content as part of a Coroutine allowing the game to update frames during the loading process.
 
override void UnloadContent ()
 Unload graphics content used by the game.
 
virtual int GetNewEntityHandle ()
 Gets a new entity handle for this scene.
 
void PreDrawSelectedItems ()
 
void DrawSelectedItems ()
 
virtual bool IsSurface (vxEntity3D HoveredEntity)
 
override void SimulationStart ()
 Starts the Sandbox.
 
override void SimulationStop ()
 Stops the Sandbox.
 
vxPropertiesControl CreatePropertiesControl (string name)
 Creates a new properties control window in the right hand properties slider control.
 
override void ShowPauseScreen ()
 This Method Loads the Engine Base Pause Screen (PauseMenuScreen()), but more items might be needed to be added. Override to load your own Pause Screen.
 
void EnterScreenShotMode (Action callback)
 
vxEntity3D InstantiateItem (Type type, Vector3 position)
 Creates a New Sandbox Item using the specified type and position.
 
vxEntity3D AddSandboxItem< T > (Vector3 position)
 Adds a sandbox item of type 'T'.
 
vxEntity3D AddSandboxItem< T > (vxTransform World)
 Adds a sandbox item of type 'T'.
 
virtual vxEntity3D AddSandboxItem (string key, Matrix matrix4x4Transform)
 
virtual vxEntity3D AddSandboxItem (string key, vxTransform World)
 Adds the sandbox item. Returns the new items id.
 
virtual vxEntity3D GetNewEntity (string key)
 Returns a new instance based off of the returned key. This must be overridden by an inherited class.
 
virtual void DisposeOfTempPart ()
 Disposes of the Currently Created Temp Part.
 
virtual bool SelectionRayCastFilter (BroadPhaseEntry entry)
 The Ray Cast Filter for Picking.
 
virtual void HandleMouseRay (Ray ray)
 
override vxSerializableSceneBaseData InitSaveFile ()
 Initialises the Save File. If the XML Save file uses a different type, then this can be overridden.
 
override vxSerializableSceneBaseData DeserializeFile (string path)
 Returns a Deserializes the File. If you want to use a different type to Serialise than the base 'vxSerializableScene3DData' then you must override this or it will throw an error.
 
override vxSaveBusyScreen GetAsyncSaveScreen ()
 Gets the async save screen. Override this to provide a custom save screeen.
 
void RefreshImportedFile (string guid, string externalPath)
 Refreshes an imported file with the original path for the sepcified guid.
 
virtual void ImportFileToolbarItem_Clicked (object sender, vxUIControlClickEventArgs e)
 Imports the file toolbar item clicked.
 
- Public Member Functions inherited from VerticesEngine.vxGameplaySceneBase
 vxGameplaySceneBase (vxStartGameMode sandboxStartGameType=vxStartGameMode.GamePlay, string FilePath="", int NumberOfPlayers=1)
 Initializes a new instance of the T:VerticesEngine.vxSceneBase class.
 
override void LoadContent ()
 Load graphics content for the game.
 
override void UnloadContent ()
 Unload graphics content used by the game.
 
void DebugMethodCall (string method, ConsoleColor ConsoleColor=ConsoleColor.Yellow)
 
GetSubSystem< T > ()
 Get the subsystem of type T
 
bool TryGetSubSystem< T > (out T subSystem)
 Tries to get the subsystem of type T
 
virtual vxFileInfo GetFileInfo ()
 
virtual void SaveFile (bool takeScreenshot, bool DoDump=false)
 Saves the current Sandbox File.
 
virtual void SaveSupportFiles ()
 Saves the support files such as as thumbnail and img. Override to add your own files.
 
virtual string GetExporterInfo ()
 This is a Verbose Debug info for which game saved the file.
 
virtual void AddForDisposal (vxEntity entity)
 
virtual void DumpFile ()
 
virtual void PackFile ()
 
void SpawnParticle (object key, vxGameObject emitter)
 Spawns a new particle using the specified key from the Particle System.
 
virtual void DrawBackground ()
 Draw's the background before proceeding with other drawing. This is useful for Skyboxes and backgrounds as a whole.
 
override void Draw ()
 Draws the gameplay screen.
 
virtual void DrawScene ()
 Draws the scene.
 
- Public Member Functions inherited from VerticesEngine.vxBaseScene
virtual bool PlaySound (vxBaseScene sender, SoundEffect SoundEffect, float Volume=1, float Pitch=0)
 
void ExitScreen ()
 Tells the screen to go away. Unlike ScreenManager.RemoveScreen, which instantly kills the screen, this method respects the transition timings and will give the screen a chance to gradually transition off.
 
virtual void Dispose ()
 

Static Public Member Functions

static void ProcessDirectory (string targetDirectory)
 
static void ProcessFile (string path)
 

Public Attributes

List< vxLightEntityLightItems = new List<vxLightEntity>()
 Collection of Lights in the Level.
 
Space PhyicsSimulation
 The main BEPU Physics Simulation Space used in the game.
 
ModelDrawer PhysicsDebugViewer
 Model Drawer for debugging the phsyics system.
 
vxSunEntity SunEmitter
 Manages the Sun Class.
 
bool IsEncodedIndexNeeded = true
 Is encoded index rendertarget needed for handling selection.
 
string CurrentlySelectedKey = ""
 Current Key being used too add new entities.
 
vxEnumAddMode AddMode = vxEnumAddMode.OnPlane
 
MouseClickState MouseClickState = MouseClickState.SelectItem
 
CharacterControllerInput character
 Player.
 
Vector3 PreviousIntersection = new Vector3()
 Previous Working Plane Intersection Point.
 
Vector3 OutofSight = new Vector3()
 "Out Of Sight" Position
 
bool IsRaySelectionEnabled = false
 Should Ray Selection Handling be enabled.
 
bool IsMouseOverSnapBox = false
 The boolean for if the mouse is over snap box or not for entity placement..
 
bool IsGridSnap = true
 The is grid snap.
 
Vector3 Intersection
 
vxSlideTabControl PropertiesTabControl
 Main Tab Control Which Holds All Properties.
 
vxPropertiesControl EntityPropertiesControl
 The vxScrollPanel control which is used too store Entity Properties. See the GetProperties Method for examples.
 
ISnapbox HoveredSnapBox
 
vxTransform HoveredSnapBoxWorld
 
vxEnumTerrainEditMode TerrainEditState = vxEnumTerrainEditMode.Sculpt
 
int TexturePaintType = 1
 
vxEnumFalloffRate FalloffRate
 
vxEnumAreaOfEffectMode AreaOfEffectMode
 
float RayCastLength = 1000
 This is the length to cast a ray during picking.
 
Func< BroadPhaseEntry, bool > rayCastFilter
 
vxEnumNetworkConnectionStatus ConnectionStatus
 
vxEnumNetworkPlayerRole PlayerNetworkRole = vxEnumNetworkPlayerRole.Client
 
- Public Attributes inherited from VerticesEngine.vxGameplaySceneBase
List< vxUtilCamera3DUtilCameras = new List<vxUtilCamera3D>()
 
ContentManager SceneContent
 The content manager for this scene. This is unloaded at the end of the scene.
 
vxNetworkGameType NetGameType = vxNetworkGameType.Local
 The type of the game, whether its a Local game or Networked.
 
bool IsStartBackground = false
 Is this level the start background.
 
bool IsGUIVisible = true
 Should the GUI be shown?
 
bool IsSceneDimmedOnCover = true
 Whether or not to dim the scene when it's covered by another screen.
 
readonly int NumberOfPlayers
 The number of players in this Scene. This must be set in the constructor.
 
float PauseAlpha
 This is the Pause Alpha Amount based off of the poisition the screen is in terms of transitioning too a new screen.
 
bool IsPausable = true
 Gets or sets a value indicating whether this instance is pausable.
 
vxViewportManager ViewportManager
 The viewport manager.
 
bool IsDumping = false
 
vxSerializableSceneBaseData SandBoxFile
 File Format.
 
Texture2D ThumbnailImage
 A thumbnail of the latest run.
 
string FilePath = ""
 
string FileName = "sandboxFile1"
 
vxOpenSandboxFileDialog OpenFileDialog
 An in game Open File Dialog too access files from specific directories.
 
Color BackBufferClearColor = Color.DarkMagenta
 The color to clear the back buffer with.
 
bool IsUIVisibilitySuppressed = false
 Is the UI Visibility suppressed. This is useful for certain cases in Screen shots.
 

Static Public Attributes

static int SandboxItemButtonSize = 128
 
- Static Public Attributes inherited from VerticesEngine.vxGameplaySceneBase
const string IMG_PREVIEW_FILE_NAME = "preview.jpg"
 
const string IMG_THUMBNAIL_FILE_NAME = "thumbnail.png"
 

Protected Member Functions

override void InitialiseSubSystems ()
 Initialise your scenes subsystems here.
 
virtual void RefreshWorldPropertyControl ()
 
virtual void OnPostFileLoad ()
 This is called after the file is loaded but still during the asyc content load.
 
override void InitialisePhysics ()
 This Initalises the Physics System.
 
override void InitialiseCameras ()
 Initialises the cameras for this Scene. The number of Cameras used is based on the number of Players specified in the optional constructor argument. If you want multiply players but only one Camera, then overload this method.
 
void SetCameraViewports ()
 Sets the Camera Viewports.
 
virtual void OnInitialiseSkyBox ()
 Initialises the SkyBoxes and the Sun Entity.
 
virtual vxSkyBox OnSkyboxInit ()
 This returns the skybox. Override this to provide your own skybox.
 
override void OnInitialiseGUI ()
 This method is called near the end of the LoadContent method to load al GUI Items pertaining to the Sandbox including the toolbars and item registration.
 
virtual void InitContextMenu ()
 Called when the context menu is initialised. This is useful for upstream classes to use.
 
virtual vxSceneProperties InitWorldProperties ()
 
override void RegisterSandboxEntities ()
 Override this Method and add in your Register Sandbox Entities code.
 
virtual void OnShowSettingsDialog ()
 Shows the settings dialog for this level editor. This needs to be overriden.
 
virtual void OnShowEngineSettingsDialog ()
 
virtual void OnShowHelp ()
 
virtual void OnShowAbout ()
 
virtual void OnReportBug ()
 
virtual void OnGoToDiscord ()
 
virtual void OnGoToReddit ()
 
virtual void OnInitialiseUIEditorRibbonControls ()
 Initialises Editor Ribbon Controls. Override this to implement your own game specific ribbon controls.
 
virtual void OnInitialiseUIEditorRibbonContextTabs ()
 Called when initialising Editor Ribbon Context Tabs, such as tabs which are only visible during certain situations or contexts (Like Terrain Editing)
 
override void LoadParticlePools ()
 
void OnNewItemAdded (string key)
 
virtual Texture2D GenerateSandboxItemIcon (vxSandboxEntityRegistrationInfo EntityDescription)
 Generates a sandbox icon for a given entity description.
 
virtual Texture2D GenerateImportedItemIcon (string guid)
 
void DrawEntity (vxEntity3D entity, Matrix world, Matrix view, Matrix projection, Vector3 TempCamPos, string renderpass)
 
override void HandleInputBase ()
 Handles the input base.
 
virtual bool FilterSelection (vxEntity3D entity)
 
virtual void OnRayHit (RayCastResult RayCastResult)
 
virtual vxImportedEntity3D GetDefaultImportedEntity ()
 
override vxGameplaySceneBase OnNewSandbox ()
 Called when a New Sandbox file is called. Override this to provide your base class.
 
override vxSandboxFileLoadResult LoadXMLFile (string FilePath, int version)
 
virtual void ExportFileToolbarItem_Clicked (object sender, vxUIControlClickEventArgs e)
 Exports the Current File too an STL file.
 
virtual void RegisterImportedModel (string guid, string filepath, vxMesh model)
 Imports a model into the game, registers it and sets up it's guid.
 
virtual void AddNewImportedItemSandboxButton (string guid)
 
- Protected Member Functions inherited from VerticesEngine.vxGameplaySceneBase
virtual void InitialiseViewportManager ()
 Initialises the Viewport Manager.
 
virtual void SetupObjectPools ()
 
virtual void UnloadObjectPools ()
 
virtual T AddSystem< T > ()
 Add a subsystem of type vxISceneSubSystem. It must be scene subsystem.
 
virtual vxSandboxFileLoadResult LoadFile (string FilePath)
 
virtual void OnFileInfoLoad (vxFileInfo fileInfo)
 When File Info is Loaded. This is called before LoadFile(...) is called.
 
virtual Point GetPreviewImageSize ()
 
virtual Point GetThumbnailImageSize ()
 
virtual void OnLevelEditorNewFileToolbarItemClicked (object sender, vxUIControlClickEventArgs e)
 Start a New File.
 
virtual void OnLevelEditorNewFilePromptAccepted (object sender, PlayerIndexEventArgs e)
 When to do when the New File button is clicked. This must be overridden.
 
virtual void OnLevelEditorOpenFileToolbarItemClicked (object sender, vxUIControlClickEventArgs e)
 Event for Opening a File.
 
virtual void OnLevelEditorOpenFileDialogPromptAccepted (vxFileDialogItem file)
 
virtual vxGameplaySceneBase OnOpenSandboxFile (string filePath)
 Called when a New Sandbox file is called. Override this to provide your base class.
 
virtual void OnLevelEditorSaveBeforeCloseCheck_Accepted (object sender, PlayerIndexEventArgs e)
 
virtual void OnLevelEditorSaveBeforeCloseCheck_DontSave (object sender, PlayerIndexEventArgs e)
 
virtual void SaveFileAs (string saveAsMsg="Save the current file as...")
 
virtual void OnLevelEditorSaveFileToolbarItemClicked (object sender, vxUIControlClickEventArgs e)
 Event for Saving the Current File.
 
virtual void OnLevelEditorSaveAsFileToolbarItemClicked (object sender, vxUIControlClickEventArgs e)
 Event for Saving As the Current File.
 
- Protected Member Functions inherited from VerticesEngine.vxBaseScene
virtual void OnFirstUpdate ()
 Called at the start of this scenes first update/tick.
 
virtual void OnFirstDraw ()
 Called on the first draw of this scene.
 

Protected Attributes

vxEntity3D TempPart
 The Currently Selected Type of Entity to be added in the Sandbox.
 
vxContextMenuItem CntxtMenuViewProperties
 
vxSceneProperties _worldProperties
 
vxRibbonControl EditorRibbonControl
 
vxRibbonTabPage HomeTabPage
 
vxRibbonTabPage PlayTabPage
 
- Protected Attributes inherited from VerticesEngine.vxGameplaySceneBase
bool IsSandbox = true
 Is this a sandbox scene, if so then we will load any and all registered types. Otherwise you'll.
 
Dictionary< string, Type > TypeRegister = new Dictionary<string, Type>()
 
List< vxEntityDisposalQueue = new List<vxEntity>()
 
- Protected Attributes inherited from VerticesEngine.vxBaseScene
bool IsLoadingTimeMeasured = false
 
bool HideIfCovered = true
 

Properties

Vector3 LightPositions [get, set]
 Gets or sets the light positions.
 
TimeOfDay TimeOfDay [get, set]
 What Time is it Mr. Wolf.
 
vxEnumSanboxEditMode SandboxEditMode [get, set]
 Gets or sets the sandbox edit mode.
 
new vxSerializableScene3DData SandBoxFile [get]
 File Format.
 
List< vxEntity3DSelectedItems [get]
 List of Current Selected Items.
 
vxEntity3D TempSandboxEntity [get]
 The current temporary sandbox entity. This can be null.
 
vxContextMenuControl ContextMenu [get]
 The avaialble Context menu control. This can be accessed with [LCtrl] + [Right Mouse Click].
 
vxSlideTabPage SandboxEntitySelector [get]
 
vxSceneProperties WorldProperties [get]
 The world properties.
 
Dictionary< string, vxSandboxEntityRegistrationInfoRegisteredSandboxItemTypes [get]
 This Dictionary contains a collection of all Registered items within the Sandbox.
 
- Properties inherited from VerticesEngine.vxGameplaySceneBase
List< vxCameraCameras [get]
 The cameras collection.
 
vxParticleSystemManager ParticleSystem [get]
 The particle system.
 
vxIPlayerProfile PlayerProfile [get]
 
vxUIManager UIManager [get]
 The Scene UI Manager.
 
string Title [get, set]
 The Level Title.
 
string Description [get, set]
 The Level Description.
 
string WorkshopID [get, set]
 
Texture2D DefaultTexture [get]
 Gets the default texture.
 
vxCommandManager CommandManager [get]
 The command manager to handle undo redos.
 
List< vxEntityEntities [get]
 The entity collection for this Scene.
 
List< vxEntity3DEditorEntities [get]
 Editor Entities.
 
vxEnumSandboxStatus SandboxCurrentState [get, set]
 Is the Sandbox In Testing Mode.
 
vxStartGameMode SandboxStartGameType [get, set]
 
virtual bool IsSandboxLevelContentFile [get]
 Is the sandbox level a content file or external/DLC?
 
Texture2D PreviewImage [get, set]
 The preview image used for this level.
 
bool IsNewSandboxFile [get]
 Returns back whether this is a new sandbox file.
 
- Properties inherited from VerticesEngine.vxBaseScene
bool IsPopup [get, protected set]
 Normally when one screen is brought up over the top of another, the first screen will transition off to make room for the new one. This property indicates whether the screen is only a small popup, in which case screens underneath it do not need to bother transitioning off.
 
bool IsRemoved [get, set]
 Has this scene been removed?
 
TimeSpan TransitionOnTime [get, protected set]
 Indicates how long the screen takes to transition on when it is activated.
 
TimeSpan TransitionOffTime [get, protected set]
 Indicates how long the screen takes to transition off when it is deactivated.
 
float TransitionPosition [get, protected set]
 Gets the current position of the screen transition, ranging from zero (fully active, no transition) to one (transitioned fully off to nothing).
 
float TransitionAlpha [get]
 Gets the current alpha of the screen transition, ranging from 1 (fully active, no transition) to 0 (transitioned fully off to nothing).
 
ScreenState ScreenState [get, protected set]
 Gets the current screen transition state.
 
bool IsExiting [get, set]
 There are two possible reasons why a screen might be transitioning off. It could be temporarily going away to make room for another screen that is on top of it, or it could be going away for good. This property indicates whether the screen is exiting for real: if set, the screen will automatically remove itself as soon as the transition finishes.
 
bool IsActive [get]
 Checks whether this screen is active and can respond to user input.
 
bool otherScreenHasFocus [get, set]
 
bool IsFirstLoop [get]
 Gets a value indicating whether this T:VerticesEngine.vxGameBaseScreen is first loop.
 
bool IsLoadingFile [get, set]
 Returns whether we're currently loading a file or not.
 
PlayerIndex? ControllingPlayer [get, set]
 Gets the index of the player who is currently controlling this screen, or null if it is accepting input from any player. This is used to lock the game to a specific player profile. The main menu responds to input from any connected gamepad, but whichever player makes a selection from this menu is given control over all subsequent screens, so other gamepads are inactive until the controlling player returns to the main menu.
 
bool IsContentLoaded [get, set]
 Has all the content been loaded yet?
 
bool coveredByOtherScreen [get, set]
 

Events

EventHandler< EventArgs > ItemSelected
 The Event Fired when a New Item is Selected.
 
EventHandler< vxSandboxItemSelectedForInspectorEventArgsItemSelectedForInspector
 The event called when a property in the inspector is waiting for the user to select a game object.
 

Detailed Description

The vxGameplayScene3D class implements the actual game logic for 3D Games.

Member Function Documentation

◆ AddSandboxItem()

virtual vxEntity3D VerticesEngine.vxGameplayScene3D.AddSandboxItem ( string key,
vxTransform World )
virtual

Adds the sandbox item. Returns the new items id.

Returns
The sandbox item.
Parameters
keyKey.
WorldWorld.

◆ AddSandboxItem< T >() [1/2]

vxEntity3D VerticesEngine.vxGameplayScene3D.AddSandboxItem< T > ( Vector3 position)

Adds a sandbox item of type 'T'.

Template Parameters
T
Parameters
position
Returns
Type Constraints
T :vxEntity3D 

◆ AddSandboxItem< T >() [2/2]

vxEntity3D VerticesEngine.vxGameplayScene3D.AddSandboxItem< T > ( vxTransform World)

Adds a sandbox item of type 'T'.

Template Parameters
T
Parameters
World
Returns
Type Constraints
T :vxEntity3D 

◆ CreatePropertiesControl()

vxPropertiesControl VerticesEngine.vxGameplayScene3D.CreatePropertiesControl ( string name)

Creates a new properties control window in the right hand properties slider control.

Returns
The properties control.
Parameters
nameName.

◆ DeserializeFile()

override vxSerializableSceneBaseData VerticesEngine.vxGameplayScene3D.DeserializeFile ( string path)
virtual

Returns a Deserializes the File. If you want to use a different type to Serialise than the base 'vxSerializableScene3DData' then you must override this or it will throw an error.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ ExportFileToolbarItem_Clicked()

virtual void VerticesEngine.vxGameplayScene3D.ExportFileToolbarItem_Clicked ( object sender,
vxUIControlClickEventArgs e )
protectedvirtual

Exports the Current File too an STL file.

Parameters
sender
e

◆ GenerateSandboxItemIcon()

virtual Texture2D VerticesEngine.vxGameplayScene3D.GenerateSandboxItemIcon ( vxSandboxEntityRegistrationInfo EntityDescription)
protectedvirtual

Generates a sandbox icon for a given entity description.

Parameters
EntityDescription
Returns

Reimplemented in VerticesEngine.Screens.vxModelViewer.

◆ GetAsyncSaveScreen()

override vxSaveBusyScreen VerticesEngine.vxGameplayScene3D.GetAsyncSaveScreen ( )
virtual

Gets the async save screen. Override this to provide a custom save screeen.

Returns
The async save screen.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ GetNewEntity()

virtual vxEntity3D VerticesEngine.vxGameplayScene3D.GetNewEntity ( string key)
virtual

Returns a new instance based off of the returned key. This must be overridden by an inherited class.

Parameters
key
Returns

◆ GetNewEntityHandle()

virtual int VerticesEngine.vxGameplayScene3D.GetNewEntityHandle ( )
virtual

Gets a new entity handle for this scene.

Returns
The new entity handle.

◆ HandleInputBase()

override void VerticesEngine.vxGameplayScene3D.HandleInputBase ( )
protectedvirtual

Handles the input base.

Parameters
inputInput.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ ImportFileToolbarItem_Clicked()

virtual void VerticesEngine.vxGameplayScene3D.ImportFileToolbarItem_Clicked ( object sender,
vxUIControlClickEventArgs e )
virtual

Imports the file toolbar item clicked.

Parameters
senderSender.
eE.

◆ InitialiseCameras()

override void VerticesEngine.vxGameplayScene3D.InitialiseCameras ( )
protectedvirtual

Initialises the cameras for this Scene. The number of Cameras used is based on the number of Players specified in the optional constructor argument. If you want multiply players but only one Camera, then overload this method.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ InitialisePhysics()

override void VerticesEngine.vxGameplayScene3D.InitialisePhysics ( )
protectedvirtual

This Initalises the Physics System.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ InitialiseSubSystems()

override void VerticesEngine.vxGameplayScene3D.InitialiseSubSystems ( )
protectedvirtual

Initialise your scenes subsystems here.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ InitSaveFile()

override vxSerializableSceneBaseData VerticesEngine.vxGameplayScene3D.InitSaveFile ( )
virtual

Initialises the Save File. If the XML Save file uses a different type, then this can be overridden.

Returns

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ InstantiateItem()

vxEntity3D VerticesEngine.vxGameplayScene3D.InstantiateItem ( Type type,
Vector3 position )

Creates a New Sandbox Item using the specified type and position.

Parameters
type
position
Returns

◆ LoadContent()

override void VerticesEngine.vxGameplayScene3D.LoadContent ( )
virtual

Load graphics content for the game. Note the base.LoadContent() must be called at the top of any override function so that all systems are properly set up before loading your code. The calling order is:

InitialiseRenderingEngine();

InitialisePhysics();

InitialiseCameras();

InitialiseViewportManager();

InitialiseSky();

InitialiseAudioManager();

Reimplemented from VerticesEngine.vxBaseScene.

Reimplemented in VerticesEngine.Screens.vxModelViewer.

◆ LoadContentAsync()

override IEnumerator VerticesEngine.vxGameplayScene3D.LoadContentAsync ( )
virtual

Loads content as part of a Coroutine allowing the game to update frames during the loading process.

Returns

Reimplemented from VerticesEngine.vxBaseScene.

◆ LoadParticlePools()

override void VerticesEngine.vxGameplayScene3D.LoadParticlePools ( )
protectedvirtual

◆ LoadXMLFile()

override vxSandboxFileLoadResult VerticesEngine.vxGameplayScene3D.LoadXMLFile ( string FilePath,
int version )
protectedvirtual

◆ OnInitialiseGUI()

override void VerticesEngine.vxGameplayScene3D.OnInitialiseGUI ( )
protectedvirtual

This method is called near the end of the LoadContent method to load al GUI Items pertaining to the Sandbox including the toolbars and item registration.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ OnNewSandbox()

override vxGameplaySceneBase VerticesEngine.vxGameplayScene3D.OnNewSandbox ( )
protectedvirtual

Called when a New Sandbox file is called. Override this to provide your base class.

Returns
The new sandbox.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ OnSkyboxInit()

virtual vxSkyBox VerticesEngine.vxGameplayScene3D.OnSkyboxInit ( )
protectedvirtual

This returns the skybox. Override this to provide your own skybox.

Returns

◆ RefreshImportedFile()

void VerticesEngine.vxGameplayScene3D.RefreshImportedFile ( string guid,
string externalPath )

Refreshes an imported file with the original path for the sepcified guid.

Parameters
guid

◆ RegisterImportedModel()

virtual void VerticesEngine.vxGameplayScene3D.RegisterImportedModel ( string guid,
string filepath,
vxMesh model )
protectedvirtual

Imports a model into the game, registers it and sets up it's guid.

Parameters
isEmbedded

◆ RegisterSandboxEntities()

override void VerticesEngine.vxGameplayScene3D.RegisterSandboxEntities ( )
protectedvirtual

Override this Method and add in your Register Sandbox Entities code.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ SelectionRayCastFilter()

virtual bool VerticesEngine.vxGameplayScene3D.SelectionRayCastFilter ( BroadPhaseEntry entry)
virtual

The Ray Cast Filter for Picking.

Parameters
entry
Returns

◆ ShowPauseScreen()

override void VerticesEngine.vxGameplayScene3D.ShowPauseScreen ( )
virtual

This Method Loads the Engine Base Pause Screen (PauseMenuScreen()), but more items might be needed to be added. Override to load your own Pause Screen.

This sample shows how to override the ShowPauseScreen method. 'MyGamesCustomPauseScreen()' inheirts from the VerticesEngine.UI.Menus.vxMenuBaseScreen Class.

//This Allows to show your own custom pause screen.
public override void ShowPauseScreen()
{
vxSceneManager.AddScreen(new MyGamesCustomPauseScreen(), ControllingPlayer);
}
The Scene Manager which handles Scene Loading and drawing.
Definition vxSceneManager.cs:15

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ SimulationStart()

override void VerticesEngine.vxGameplayScene3D.SimulationStart ( )
virtual

Starts the Sandbox.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ SimulationStop()

override void VerticesEngine.vxGameplayScene3D.SimulationStop ( )
virtual

Stops the Sandbox.

Reimplemented from VerticesEngine.vxGameplaySceneBase.

◆ UnloadContent()

override void VerticesEngine.vxGameplayScene3D.UnloadContent ( )
virtual

Unload graphics content used by the game.

Reimplemented from VerticesEngine.vxBaseScene.

Reimplemented in VerticesEngine.Screens.vxModelViewer.

Property Documentation

◆ LightPositions

Vector3 VerticesEngine.vxGameplayScene3D.LightPositions
getset

Gets or sets the light positions.

The light positions.

◆ SandboxEditMode

vxEnumSanboxEditMode VerticesEngine.vxGameplayScene3D.SandboxEditMode
getset

Gets or sets the sandbox edit mode.

The sandbox edit mode.


The documentation for this class was generated from the following files: