Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Game.cs
Go to the documentation of this file.
1using System;
3using Microsoft.Xna.Framework.Content;
5
7
8public class Game : IDisposable
9{
10 public GameComponentCollection Components => null;
11
12 public ContentManager Content
13 {
14 get
15 {
16 return null;
17 }
18 set
19 {
20 }
21 }
22
24
26 {
27 get
28 {
29 return TimeSpan.Zero;
30 }
31 set
32 {
33 }
34 }
35
36 public bool IsActive => true;
37
38 public bool IsFixedTimeStep
39 {
40 get
41 {
42 return true;
43 }
44 set
45 {
46 }
47 }
48
49 public bool IsMouseVisible
50 {
51 get
52 {
53 return false;
54 }
55 set
56 {
57 }
58 }
59
61
62 public GameServiceContainer Services => null;
63
65 {
66 get
67 {
68 return TimeSpan.Zero;
69 }
70 set
71 {
72 }
73 }
74
75 public GameWindow Window => null;
76
77 public event EventHandler<EventArgs> Activated;
78
79 public event EventHandler<EventArgs> Deactivated;
80
81 public event EventHandler<EventArgs> Disposed;
82
83 public event EventHandler<EventArgs> Exiting;
84
85 protected virtual bool BeginDraw()
86 {
87 return true;
88 }
89
90 protected virtual void BeginRun()
91 {
92 }
93
94 public void Dispose()
95 {
96 }
97
98 protected virtual void Dispose(bool disposing)
99 {
100 }
101
102 protected virtual void Draw(GameTime gameTime)
103 {
104 }
105
106 protected virtual void EndDraw()
107 {
108 }
109
110 protected virtual void EndRun()
111 {
112 }
113
114 public void Exit()
115 {
116 }
117
118 protected virtual void Initialize()
119 {
120 }
121
122 protected virtual void LoadContent()
123 {
124 }
125
126 protected virtual void OnActivated(object sender, EventArgs args)
127 {
128 }
129
130 protected virtual void OnDeactivated(object sender, EventArgs args)
131 {
132 }
133
134 protected virtual void OnExiting(object sender, EventArgs args)
135 {
136 }
137
138 public void ResetElapsedTime()
139 {
140 }
141
142 public void Run()
143 {
144 }
145
146 public void RunOneFrame()
147 {
148 }
149
151 {
152 return true;
153 }
154
155 public void SuppressDraw()
156 {
157 }
158
159 public void Tick()
160 {
161 }
162
163 protected virtual void UnloadContent()
164 {
165 }
166
167 protected virtual void Update(GameTime gameTime)
168 {
169 }
170}
bool IsMouseVisible
Definition Game.cs:50
EventHandler< EventArgs > Activated
Definition Game.cs:77
bool IsFixedTimeStep
Definition Game.cs:39
LaunchParameters LaunchParameters
Definition Game.cs:60
TimeSpan InactiveSleepTime
Definition Game.cs:26
virtual void EndRun()
Definition Game.cs:110
void ResetElapsedTime()
Definition Game.cs:138
virtual void OnExiting(object sender, EventArgs args)
Definition Game.cs:134
EventHandler< EventArgs > Deactivated
Definition Game.cs:79
virtual bool BeginDraw()
Definition Game.cs:85
EventHandler< EventArgs > Exiting
Definition Game.cs:83
GameServiceContainer Services
Definition Game.cs:62
EventHandler< EventArgs > Disposed
Definition Game.cs:81
virtual bool ShowMissingRequirementMessage(Exception exception)
Definition Game.cs:150
GameComponentCollection Components
Definition Game.cs:10
virtual void LoadContent()
Definition Game.cs:122
virtual void OnDeactivated(object sender, EventArgs args)
Definition Game.cs:130
TimeSpan TargetElapsedTime
Definition Game.cs:65
virtual void Initialize()
Definition Game.cs:118
virtual void BeginRun()
Definition Game.cs:90
virtual void Draw(GameTime gameTime)
Definition Game.cs:102
GameWindow Window
Definition Game.cs:75
void RunOneFrame()
Definition Game.cs:146
virtual void Dispose(bool disposing)
Definition Game.cs:98
virtual void OnActivated(object sender, EventArgs args)
Definition Game.cs:126
void SuppressDraw()
Definition Game.cs:155
virtual void UnloadContent()
Definition Game.cs:163
virtual void EndDraw()
Definition Game.cs:106
virtual void Update(GameTime gameTime)
Definition Game.cs:167
static readonly TimeSpan Zero
Definition TimeSpan.cs:21