Why a mehod "GetDescriptorField" in the ObjectManager ? menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Raphy's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why a mehod "GetDescriptorField" in the ObjectManager ?

    Hi guys,

    I'm coding my own ObjectManager from many threads and source codes.
    I've seen in the most of the managers something "weird" for me I don't understand.

    There is the "WoWObject" class representing an object that is inherited by others objects. In this class, there is a method:

    Code:
    public T GetDescriptorField<T>(uint field) where T : struct
    {
      return (T)ObjectManager.Memory.Read<T>(DescriptorBase + (int)field);
    }
    The property "DescriptorBase" is declared:
    Code:
    public IntPtr DescriptorBase
    {
       get { return ObjectManager.Memory.Read<IntPtr>(BaseAddress + (int)Offsets.Descriptors.Descriptor); }
    }
    and then, in the inherited classes, it used like this:

    Code:
    public int DisplayId
    {
       get { return GetDescriptorField<int>((uint)Offsets.WoWUnit.DisplayID); }
    }
    So, I'd like to know why it this method is used instead of adding "0x4" to the offsets concerned by this method.

    Hope you will give me an answer

    Thanks,
    Raphy

    Why a mehod &quot;GetDescriptorField&quot; in the ObjectManager ?
  2. #2
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Dear Raphy,

    ?????????????????????????

    Regards.

  3. #3
    Raphy's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OMAGAD!!! DUDE!!!

    I'm so sorry, I just have understood...
    I was wondering something so stupid --'

Similar Threads

  1. Replies: 25
    Last Post: 10-25-2009, 05:41 PM
  2. Why not bring back rep points in the GFX section?
    By Votkrath in forum Suggestions
    Replies: 5
    Last Post: 03-19-2009, 02:55 PM
  3. Why Kil'jaeden could be stronger than the lich king
    By dude891 in forum World of Warcraft General
    Replies: 24
    Last Post: 06-02-2008, 10:29 PM
  4. why is my realm got disconnected all the time?
    By hard2000 in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 10-12-2007, 02:19 PM
All times are GMT -5. The time now is 06:01 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search