Class GraphicManager
- Namespace
- Alis.Core.Ecs.System.Manager.Graphic
- Assembly
- Alis.dll
The graphic manager base class
public class GraphicManager : AManager, IManager, IEnabled, IIdentifier, IRuntimeInheritance
Implements
Inherited Members
Constructors
GraphicManager()
Initializes a new instance of the Alis.Core.Ecs.System.Manager.Graphic.GraphicManager class
public GraphicManager()GraphicManager(List<BoxCollider>, IntPtr, Vector2, IntPtr, List<Sprite>, List<Camera>)
Initializes a new instance of the Alis.Core.Ecs.System.Manager.Graphic.GraphicManager class
public GraphicManager(List<BoxCollider> colliderBases, IntPtr window, Vector2 defaultSize, IntPtr renderer, List<Sprite> sprites, List<Camera> cameras)Parameters
colliderBasesList<BoxCollider>-
The collider bases
windowIntPtr-
The window
defaultSizeVector2-
The default size
rendererIntPtr-
The renderer
spritesList<Sprite>-
The sprites
camerasList<Camera>-
The cameras
Fields
PixelsPerMeter
The pixels per meter
private const float PixelsPerMeter = 32Field Value
Properties
Cameras
Gets or sets the value of the cameras
[JsonPropertyName("_Cameras_")]
public List<Camera> Cameras { get; }Property Value
ColliderBases
The box collider
[JsonPropertyName("_ColliderBases_")]
public List<BoxCollider> ColliderBases { get; set; }Property Value
DefaultSize
The default size
[JsonPropertyName("_DefaultSize_")]
public Vector2 DefaultSize { get; set; }Property Value
Renderer
The renderWindow
[JsonPropertyName("_Renderer_", true, true)]
public IntPtr Renderer { get; set; }Property Value
Sprites
Gets or sets the value of the sprites
[JsonPropertyName("_Sprites_")]
public List<Sprite> Sprites { get; set; }Property Value
Window
The window
[JsonPropertyName("_Window_", true, true)]
public IntPtr Window { get; set; }Property Value
Methods
Attach(Sprite)
Attaches the sprite
public void Attach(Sprite sprite)Parameters
spriteSprite-
The sprite
Attach(BoxCollider)
Attaches the collider
public void Attach(BoxCollider collider)Parameters
colliderBoxCollider-
The collider
Attach(Camera)
Attaches the camera
public void Attach(Camera camera)Parameters
cameraCamera-
The camera
OnEnable()
Ons the enable
public override void OnEnable()OnInit()
Ons the init
public override void OnInit()OnStart()
Ons the start
public override void OnStart()OnUpdate()
Ons the update
public override void OnUpdate()UnAttach(Sprite)
Uns the attach using the specified sprite
public void UnAttach(Sprite sprite)Parameters
spriteSprite-
The sprite
UnAttach(BoxCollider)
Uns the attach using the specified collider
public void UnAttach(BoxCollider collider)Parameters
colliderBoxCollider-
The collider
UnAttach(Camera)
Uns the attach using the specified camera
public void UnAttach(Camera camera)Parameters
cameraCamera-
The camera