예제 #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
        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
 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
 public override int Run(string[] args, bitboardWorld world)
 {
     this.myWorld = world;
     return this.main(args);
 }
예제 #7
0
 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
 public jsLoadable(bitboardWorld currentWorld)
 {
     this.world = currentWorld;
     this.web = new WebBrowser();
 }
예제 #10
0
    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
 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();
 }