-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreen.cs
46 lines (39 loc) · 963 Bytes
/
Screen.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
namespace Slip
{
public abstract class Screen : Component
{
public override void Initialize(Main main)
{
size = main.Size();
}
public override sealed void Update(Main main)
{
size = main.Size();
UpdateScreen(main);
base.Update(main);
}
public virtual void UpdateScreen(Main main)
{
}
public override sealed void Draw(Main main)
{
size = main.Size();
DrawScreen(main);
base.Draw(main);
}
public virtual void DrawScreen(Main main)
{
}
public virtual Color BackgroundColor()
{
return Color.Black;
}
public virtual void LoadContent(ContentManager loader)
{
}
}
}