|
override void | Initialize () |
| Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well. More...
|
|
override void | LoadContent () |
| LoadContent will be called once per game and is the place to load all of your content. More...
|
|
override void | UnloadContent () |
| UnloadContent will be called once per game and is the place to unload all content. More...
|
|
override void | Update (GameTime gameTime) |
| Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio. More...
|
|
override void | Draw (GameTime gameTime) |
| This is called when the game should draw itself. More...
|
|
override void | OnExiting (object sender, EventArgs args) |
|
|
Action | ResolutionChanged |
| NOTE: Use very carefully. You need to ensure that you ALWAYS unsubscribe from this when you no longer need the subscriber! If you're subscribing to this from something else than a singleton or something that there's only ever one instance of, you're probably in dangerous territory. More...
|
|
Definition at line 24 of file GameMain.cs.
◆ GameMain()
Barotrauma.GameMain.GameMain |
( |
string[] |
args | ) |
|
◆ ApplyGraphicsSettings()
void Barotrauma.GameMain.ApplyGraphicsSettings |
( |
bool |
recalculateFontsAndStyles = false | ) |
|
◆ Draw()
override void Barotrauma.GameMain.Draw |
( |
GameTime |
gameTime | ) |
|
|
protected |
This is called when the game should draw itself.
Definition at line 969 of file GameMain.cs.
◆ Initialize()
override void Barotrauma.GameMain.Initialize |
( |
| ) |
|
|
protected |
Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
Definition at line 378 of file GameMain.cs.
◆ LoadContent()
override void Barotrauma.GameMain.LoadContent |
( |
| ) |
|
|
protected |
LoadContent will be called once per game and is the place to load all of your content.
Definition at line 399 of file GameMain.cs.
◆ OnExiting()
override void Barotrauma.GameMain.OnExiting |
( |
object |
sender, |
|
|
EventArgs |
args |
|
) |
| |
|
protected |
◆ OnFileDropped()
static void Barotrauma.GameMain.OnFileDropped |
( |
object |
sender, |
|
|
FileDropEventArgs |
args |
|
) |
| |
|
static |
◆ OnInvitedToGame() [1/2]
void Barotrauma.GameMain.OnInvitedToGame |
( |
Steamworks.Friend |
friend, |
|
|
string |
connectCommand |
|
) |
| |
◆ OnInvitedToGame() [2/2]
void Barotrauma.GameMain.OnInvitedToGame |
( |
string |
connectCommand | ) |
|
◆ OnLobbyJoinRequested()
void Barotrauma.GameMain.OnLobbyJoinRequested |
( |
Steamworks.Data.Lobby |
lobby, |
|
|
Steamworks.SteamId |
friendId |
|
) |
| |
◆ QuitToMainMenu() [1/2]
static void Barotrauma.GameMain.QuitToMainMenu |
( |
bool |
save | ) |
|
|
static |
◆ QuitToMainMenu() [2/2]
static void Barotrauma.GameMain.QuitToMainMenu |
( |
bool |
save, |
|
|
bool |
showVerificationPrompt |
|
) |
| |
|
static |
◆ ResetFrameTime()
static void Barotrauma.GameMain.ResetFrameTime |
( |
| ) |
|
|
static |
◆ ResetIMEWorkaround()
static void Barotrauma.GameMain.ResetIMEWorkaround |
( |
| ) |
|
|
static |
◆ ResetNetLobbyScreen()
static void Barotrauma.GameMain.ResetNetLobbyScreen |
( |
| ) |
|
|
static |
◆ ResetViewPort()
void Barotrauma.GameMain.ResetViewPort |
( |
| ) |
|
◆ SetWindowMode()
void Barotrauma.GameMain.SetWindowMode |
( |
WindowMode |
windowMode | ) |
|
◆ ShowBugReporter()
void Barotrauma.GameMain.ShowBugReporter |
( |
| ) |
|
◆ ShowLoading()
◆ ShowOpenUrlInWebBrowserPrompt()
static void Barotrauma.GameMain.ShowOpenUrlInWebBrowserPrompt |
( |
string |
url, |
|
|
string |
promptExtensionTag = null |
|
) |
| |
|
static |
◆ UnloadContent()
override void Barotrauma.GameMain.UnloadContent |
( |
| ) |
|
|
protected |
UnloadContent will be called once per game and is the place to unload all content.
Definition at line 580 of file GameMain.cs.
◆ Update()
override void Barotrauma.GameMain.Update |
( |
GameTime |
gameTime | ) |
|
|
protected |
Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
- Parameters
-
gameTime | Provides a snapshot of timing values. |
Definition at line 619 of file GameMain.cs.
◆ CampaignEndScreen
◆ CharacterEditorScreen
◆ Client
◆ ConnectCommand
◆ ConsoleArguments
string [] Barotrauma.GameMain.ConsoleArguments |
|
static |
◆ DebugDraw
bool Barotrauma.GameMain.DebugDraw |
|
static |
◆ DevMode
bool Barotrauma.GameMain.DevMode |
|
static |
Doesn't automatically enable los or bot AI or do anything like that. Probably not fully implemented.
Definition at line 33 of file GameMain.cs.
◆ EventEditorScreen
EventEditorScreen Barotrauma.GameMain.EventEditorScreen |
|
static |
◆ GameScreen
◆ LevelEditorScreen
◆ LightManager
◆ LuaCs
◆ MainMenuScreen
◆ ModDownloadScreen
◆ NetLobbyScreen
◆ ParticleEditorScreen
◆ ParticleManager
◆ PerformanceCounter
◆ ServerListScreen
◆ ShowFPS
bool Barotrauma.GameMain.ShowFPS |
|
static |
◆ ShowPerf
bool Barotrauma.GameMain.ShowPerf |
|
static |
◆ SoundManager
◆ SpriteEditorScreen
◆ SubEditorScreen
◆ TestScreen
TestScreen Barotrauma.GameMain.TestScreen |
|
static |
◆ TitleScreen
◆ Version
readonly Version Barotrauma.GameMain.Version = Assembly.GetEntryAssembly().GetName().Version |
|
static |
◆ ActiveChatMode
◆ CurrentUpdateRate
int Barotrauma.GameMain.CurrentUpdateRate |
|
staticget |
◆ GameSession
◆ GraphicsDeviceManager
GraphicsDeviceManager Barotrauma.GameMain.GraphicsDeviceManager |
|
staticget |
◆ GraphicsHeight
int Barotrauma.GameMain.GraphicsHeight |
|
staticget |
◆ GraphicsWidth
int Barotrauma.GameMain.GraphicsWidth |
|
staticget |
◆ HasLoaded
bool Barotrauma.GameMain.HasLoaded |
|
get |
◆ Instance
◆ IsFirstLaunch
bool Barotrauma.GameMain.IsFirstLaunch |
|
staticget |
◆ IsMultiplayer
bool Barotrauma.GameMain.IsMultiplayer |
|
staticget |
◆ IsSingleplayer
bool Barotrauma.GameMain.IsSingleplayer |
|
staticget |
◆ LoadingScreenOpen
bool Barotrauma.GameMain.LoadingScreenOpen |
|
get |
◆ MainThread
Thread Barotrauma.GameMain.MainThread |
|
staticget |
◆ NetworkMember
NetworkMember Barotrauma.GameMain.NetworkMember |
|
staticget |
◆ Paused
bool Barotrauma.GameMain.Paused |
|
get |
◆ ScissorTestEnable
RasterizerState Barotrauma.GameMain.ScissorTestEnable |
|
staticget |
◆ VanillaContent
◆ WindowActive
bool Barotrauma.GameMain.WindowActive |
|
staticget |
◆ WindowMode
◆ World
World Barotrauma.GameMain.World |
|
staticgetset |
◆ ResolutionChanged
Action Barotrauma.GameMain.ResolutionChanged |
NOTE: Use very carefully. You need to ensure that you ALWAYS unsubscribe from this when you no longer need the subscriber! If you're subscribing to this from something else than a singleton or something that there's only ever one instance of, you're probably in dangerous territory.
Definition at line 131 of file GameMain.cs.