Class GraphicManager
- Namespace
- Alis.Core.Ecs.System.Manager.Graphic
- Assembly
- Alis.dll
The graphic manager base class
public class GraphicManager : AManager, IManager, IEnabled, IIdentifier, IRuntime
Inheritance
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
colliderBases
List<BoxCollider>-
The collider bases
window
IntPtr-
The window
defaultSize
Vector2-
The default size
renderer
IntPtr-
The renderer
sprites
List<Sprite>-
The sprites
cameras
List<Camera>-
The cameras
Fields
PixelsPerMeter
The pixels per meter
private const float PixelsPerMeter = 32
Field 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
sprite
Sprite-
The sprite
Attach(BoxCollider)
Attaches the collider
public void Attach(BoxCollider collider)
Parameters
collider
BoxCollider-
The collider
Attach(Camera)
Attaches the camera
public void Attach(Camera camera)
Parameters
camera
Camera-
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
sprite
Sprite-
The sprite
UnAttach(BoxCollider)
Uns the attach using the specified collider
public void UnAttach(BoxCollider collider)
Parameters
collider
BoxCollider-
The collider
UnAttach(Camera)
Uns the attach using the specified camera
public void UnAttach(Camera camera)
Parameters
camera
Camera-
The camera