示例#1
0
 public LOLClient()
 {
     DevTools = new LOLDevTools();
     Me = new LOLPlayer(Memory.LOLBaseAddress+Offsets.LocalPlayer);
     PopulateLOLObjects();
     StartUp();
 }
示例#2
0
 public LOLClient()
 {
     DevTools = new LOLDevTools();
     Me       = new LOLPlayer(Memory.LOLBaseAddress + Offsets.LocalPlayer);
     PopulateLOLObjects();
     StartUp();
 }
示例#3
0
        private unsafe void PopulateLOLObjects()
        {
            try
            {
                uint firstObj = *(uint *)(Memory.LOLBaseAddress + Offsets.ObjectManager);
                uint lastObj  = *(uint *)(Memory.LOLBaseAddress + Offsets.ObjectManager + 0x4);

                while (firstObj < lastObj)
                {
                    var obj = new LOLObject(firstObj);

                    switch (obj.ObjectType)
                    {
                    case ObjectType.Player:
                        obj = new LOLPlayer(firstObj);
                        break;

                    case ObjectType.Minion:
                        obj = new LOLMinion(firstObj);
                        break;

                    case ObjectType.Ward:
                        obj = new LOLWard(firstObj);
                        break;
                    }

                    if (obj.BaseAddress != Me.BaseAddress)
                    {
                        LOLObjectBag.Add(obj);
                    }

                    firstObj += 0x4;
                }
            }


            catch (Exception ex)
            {
                Frame.Log(ex.StackTrace);
            }
        }
示例#4
0
        private unsafe void PopulateLOLObjects()
        {
            try
            {

                uint firstObj = *(uint*)(Memory.LOLBaseAddress + Offsets.ObjectManager);
                uint lastObj = *(uint*)(Memory.LOLBaseAddress + Offsets.ObjectManager + 0x4);

                while(firstObj < lastObj) {

                    var obj =  new LOLObject(firstObj);

                    switch (obj.ObjectType)
                    {
                        case ObjectType.Player:
                            obj = new LOLPlayer(firstObj);
                            break;
                        case ObjectType.Minion:
                            obj = new LOLMinion(firstObj);
                            break;
                        case ObjectType.Ward:
                            obj = new LOLWard(firstObj);
                            break;
                    }

                    if( obj.BaseAddress != Me.BaseAddress )
                        LOLObjectBag.Add(obj);

                    firstObj += 0x4;
                }
            }

            catch (Exception ex)
            {
                Frame.Log(ex.StackTrace);
            }
        }