Exemplo n.º 1
0
 public GPUDevice(string description)
 {
     m_description = description;
     m_graphics    = new Graphics();
     m_target      = new LuaObjectRef <LuaImage>();
     m_font        = new LuaObjectRef <LuaFont>();
 }
Exemplo n.º 2
0
 public DisplayDevice(string description, int width, int height, int colors)
 {
     m_description = description;
     Width         = width;
     Height        = height;
     Colors        = colors;
     m_image       = new LuaObjectRef <LuaImage>();
     m_palette     = new LuaObjectRef <LuaPalette>();
 }
Exemplo n.º 3
0
            public MountInfo(FilePath location, LuaMount mount, FilePath subPath, bool readOnly)
            {
                m_luaMount = new LuaObjectRef <LuaMount>(mount);
                Location   = location;
                SubPath    = subPath;
                ReadOnly   = readOnly;

                LastReadTime  = DateTime.MinValue;
                LastWriteTime = DateTime.MinValue;
            }
Exemplo n.º 4
0
        public IOAPI(Computer computer, FileSystem fileSystem) : base("io")
        {
            m_fileSystem = fileSystem;

            stdin  = new LuaFile(TextReader.Null, true);
            stdout = new LuaFile(computer.Output, true);
            stderr = new LuaFile(computer.ErrorOutput, true);

            m_input  = new LuaObjectRef <LuaFile>(stdin.GetObject <LuaFile>());
            m_output = new LuaObjectRef <LuaFile>(stdout.GetObject <LuaFile>());
        }
Exemplo n.º 5
0
 public LuaCPUDevice(string description)
 {
     m_description   = description;
     m_computer      = null;
     m_isMainCPU     = false;
     m_machine       = null;
     m_mainRoutine   = null;
     m_fileSystem    = new FileSystem();
     m_eventFilter   = new HashSet <string>();
     m_nextBootMount = new LuaObjectRef <LuaMount>();
 }
Exemplo n.º 6
0
 private LuaBuffer(Buffer buffer, LuaBuffer parent)
 {
     Buffer   = buffer;
     m_parent = new LuaObjectRef <LuaBuffer>(parent);
 }
Exemplo n.º 7
0
 public ROMDevice(string description, IMount mount)
 {
     m_description = description;
     m_mount       = new LuaObjectRef <LuaMount>(new LuaMount(mount));
 }
Exemplo n.º 8
0
 public Disk(IMount mount)
 {
     m_mount = new LuaObjectRef <LuaMount>(
         new LuaMount(mount)
         );
 }
Exemplo n.º 9
0
 public LuaFont(Font font, LuaImage luaImage)
 {
     Font       = font;
     m_luaImage = new LuaObjectRef <LuaImage>(luaImage);
 }
Exemplo n.º 10
0
 public LuaImage(Image image, LuaImage parent)
 {
     Image    = image;
     m_parent = new LuaObjectRef <LuaImage>(parent);
     ReadOnly = parent.ReadOnly;
 }