Example #1
0
 internal Entity(IntPtr ent_ptr) : base(false)
 {
     handle = ent_ptr;
     if (G_INTERNAL.G_IsPlayer(handle))
     {
         player = new Player(this);
     }
     if (G_INTERNAL.G_IsNPC(handle))
     {
         npc = new NPC(this);
     }
 }