コード例 #1
0
ファイル: ProcFS.cs プロジェクト: benixos/agi
    public override FileNode init(bitboardWorld world)
    {
        this.myworld = world;
        Console.WriteLine("procfs init");
        this.myModules.Add(new Module("test", "", world));

        return(this.myroot);
    }
コード例 #2
0
ファイル: BEdit.cs プロジェクト: Softsurve/Silver-Iodide
        public BEdit(bitboardWorld world, string path)
        {
            this.myWorld = world;

            InitializeComponent();

            if (path != "" && path != null)
            {
                this.currentPath = path;
                this.Name = path;
                editFile = myWorld.agi.read(path, "", 0, 0);
                if (editFile != null && editFile.getType() == fileTypes.Text)
                    richTextBox1.Text = editFile.getData();
            }
        }
コード例 #3
0
ファイル: ShellForm.cs プロジェクト: Softsurve/Silver-Iodide
 public ShellForm(bitboardWorld world)
 {
     InitializeComponent();
     this.world = world;
     this.world.setStdOut(richTextBox1);
     this.addCommand(new echo());
     this.addCommand(new write());
     this.addCommand(new cat());
     this.addCommand(new ls());
     this.addCommand(new cls());
     this.addCommand(new mkdir());
     this.addCommand(new dump());
     this.addCommand(new text());
     this.addCommand(new cp());
     Console.WriteLine("start path: "+ this.world.SysRoot);
 }
コード例 #4
0
 public ShellForm(bitboardWorld world)
 {
     InitializeComponent();
     this.world = world;
     this.world.setStdOut(richTextBox1);
     this.addCommand(new echo());
     this.addCommand(new write());
     this.addCommand(new cat());
     this.addCommand(new ls());
     this.addCommand(new cls());
     this.addCommand(new mkdir());
     this.addCommand(new dump());
     this.addCommand(new text());
     this.addCommand(new cp());
     Console.WriteLine("start path: " + this.world.SysRoot);
 }
コード例 #5
0
ファイル: BEdit.cs プロジェクト: benixos/agi
        public BEdit(bitboardWorld world, string path)
        {
            this.myWorld = world;

            InitializeComponent();

            if (path != "" && path != null)
            {
                this.currentPath = path;
                this.Name        = path;
                editFile         = myWorld.agi.read(path, "", 0, 0);
                if (editFile != null && editFile.getType() == fileTypes.Text)
                {
                    richTextBox1.Text = editFile.getData();
                }
            }
        }
コード例 #6
0
ファイル: System.cs プロジェクト: Softsurve/Silver-Iodide
 public override int Run(string[] args, bitboardWorld world)
 {
     this.myWorld = world;
     return this.main(args);
 }
コード例 #7
0
ファイル: System.cs プロジェクト: Softsurve/Silver-Iodide
 public abstract int Run(string[] args, bitboardWorld world);
コード例 #8
0
 public override int Run(string[] args, bitboardWorld world)
 {
     this.myWorld = world;
     return(this.main(args));
 }
コード例 #9
0
ファイル: ProcFS.cs プロジェクト: Softsurve/Silver-Iodide
 public jsLoadable(bitboardWorld currentWorld)
 {
     this.world = currentWorld;
     this.web = new WebBrowser();
 }
コード例 #10
0
ファイル: ProcFS.cs プロジェクト: Softsurve/Silver-Iodide
    public override FileNode init(bitboardWorld world)
    {
        this.myworld = world;
        Console.WriteLine("procfs init");
        this.myModules.Add(new Module("test", "", world));

        return this.myroot;
    }
コード例 #11
0
ファイル: ProcFS.cs プロジェクト: Softsurve/Silver-Iodide
 public Module(string name, string sourcefile, bitboardWorld host)
 {
     this.Name = name;
     this.myTask = new jsLoadable(host);
 }
コード例 #12
0
ファイル: System.cs プロジェクト: benixos/agi
 public abstract int Run(string[] args, bitboardWorld world);
コード例 #13
0
ファイル: ProcFS.cs プロジェクト: benixos/agi
 public Module(string name, string sourcefile, bitboardWorld host)
 {
     this.Name   = name;
     this.myTask = new jsLoadable(host);
 }
コード例 #14
0
ファイル: ProcFS.cs プロジェクト: benixos/agi
 public jsLoadable(bitboardWorld currentWorld)
 {
     this.world = currentWorld;
     this.web   = new WebBrowser();
 }