public LogicGuiSystem() : base("LogicGuiSystem") { //add requirement component //gui logic system is used for solving the logic problem like mouse move, click event //we also need the visual gui component RequireComponents.AddRequireComponentType <LogicGuiComponent>(); RequireComponents.AddRequireComponentType <VisualGuiComponent>(); RequireComponents.AddRequireComponentType <TransformGuiComponent>(); //init component event property mComponentEventProperty.CaptureControl = new GuiControl[3]; }
public VisualGuiSystem(GpuDevice device, Rectangle <int> area) : base("VisualGuiSystem") { RequireComponents.AddRequireComponentType <TransformGuiComponent>(); RequireComponents.AddRequireComponentType <VisualGuiComponent>(); Area = area; mRender = new GuiRender(device); mCanvas = new Image( new Size <int>(Area.Right - Area.Left, Area.Bottom - Area.Top), PixelFormat.RedBlueGreenAlpha8bit, mRender.Device); }
public AssetSystem() : base("AssetSystem") { RequireComponents.AddRequireComponentType <PackageComponent>(); mAssetGraph = new AssetGraph(); }
public BehaviorSystem(string name) { RequireComponents = new RequireComponents(); Name = name; IsActive = true; }