示例#1
0
        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];
        }
示例#2
0
        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);
        }
示例#3
0
        public AssetSystem() : base("AssetSystem")
        {
            RequireComponents.AddRequireComponentType <PackageComponent>();

            mAssetGraph = new AssetGraph();
        }
示例#4
0
 public BehaviorSystem(string name)
 {
     RequireComponents = new RequireComponents();
     Name     = name;
     IsActive = true;
 }