Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. using Microsoft.Xna.Framework;
  7. using Microsoft.Xna.Framework.Graphics;
  8.  
  9. namespace FirzLib.ScreenSystem
  10. {
  11.     public class Screen
  12.     {
  13.         protected ScreenManager _managerReference;
  14.  
  15.         public Screen(ScreenManager manager)
  16.         {
  17.             _managerReference = manager;
  18.         }
  19.  
  20.         public virtual void Initialize()
  21.         {
  22.             _managerReference.AddScreen(this);
  23.         }
  24.  
  25.         public virtual void Update(GameTime gameTime)
  26.         {
  27.  
  28.         }
  29.  
  30.         public virtual void Draw(GameTime gameTime)
  31.         {
  32.  
  33.         }
  34.  
  35.         protected virtual void CleanUp()
  36.         {
  37.  
  38.         }
  39.  
  40.         public void Remove()
  41.         {
  42.             CleanUp();
  43.             _managerReference.RemoveScreen(this);
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement