]> git.r.bdr.sh - rbdr/super-polarity/blob - Super Polarity/ActorFactory.cs
5438b7743d2a65f36ab232048ffc5befa45f91cb
[rbdr/super-polarity] / Super Polarity / ActorFactory.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Graphics;
7 using Microsoft.Xna.Framework.Content;
8
9 namespace SuperPolarity
10 {
11 static class ActorFactory
12 {
13 static internal ContentManager Content;
14
15 static public MainShip CreateMainShip(Vector2 position)
16 {
17 MainShip mainShip = new MainShip();
18 mainShip.Initialize(Content, Content.Load<Texture2D>("Graphics\\main-ship"), position);
19
20 ActorManager.CheckIn(mainShip);
21
22 return mainShip;
23 }
24
25 internal static void SetContentManager(ContentManager content)
26 {
27 Content = content;
28 }
29 }
30 }