Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GameSystem.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 using SiliconStudio.Paradox.EntityModel;
5 using SiliconStudio.Paradox.Games;
6 using SiliconStudio.Paradox.Input;
7 
8 namespace SiliconStudio.Paradox
9 {
10  public abstract class GameSystem : GameSystemBase
11  {
12  protected GameSystem(IServiceRegistry registry) : base(registry)
13  {
14  Input = Services.GetSafeServiceAs<InputManager>();
15  Entities = Services.GetSafeServiceAs<EntitySystem>();
16  }
17 
18  public InputManager Input { get; private set; }
19 
20  public EntitySystem Entities { get; internal set; }
21  }
22 }
A service registry is a IServiceProvider that provides methods to register and unregister services...
GameSystem(IServiceRegistry registry)
Definition: GameSystem.cs:12
Base class for a GameSystemBase component.
Manage a collection of entities.
Definition: EntitySystem.cs:22