示例#1
0
 public XIWindower(int pid): base (pid)
 {
     Process p = Process.GetProcessById((int)pid);
     Player = new Player(p);
     Inventory = new Inventory(p);
     Fishing = new Fishing(p);
 }
示例#2
0
        public XIWindower(int pid)
            : base(pid)
        {
            this._Pid = pid;

            Process p = Process.GetProcessById((int) pid);
            p.Exited += new EventHandler(ProcessExitedEventHandler);

            this._pol = new PolProcess(p);

            this.Player = new Player(this);
            this.Inventory = new Inventory(this);
            this.Fishing = new Fishing(this);
            this.Craft = new Craft(this);
            this.Menu = new Menu(this);
        }
示例#3
0
 static void print_item_data(Inventory.InventoryItem item, string name)
 {
     if (item.id > 0)
     {
         Console.WriteLine(" {0,2:D2} {1:X4} {2} x{3} (FLAG: 0x{4:X4}) (Extra: {5})",
             item.order, (int)item.id, String.IsNullOrEmpty(name) ? "UNKNWON" : name,
             item.count, item.flag, item.extraCount);
     }
     else
     {
         Console.WriteLine(" {0,2:D2} ---- ", item.order);
     }
 }