Panda3D
Public Member Functions | Public Attributes | List of all members
ResourceTable Class Reference
Inheritance diagram for ResourceTable:

Public Member Functions

def __init__ (self, ident=())
 
def __getitem__ (self, key)
 
def __iter__ (self)
 
def __len__ (self)
 
def __setitem__ (self, key, value)
 
def count_resources (self)
 
def get_nested_tables (self)
 
def items (self)
 
def pack_header (self, data, offs)
 
def unpack_from (self, mem, addr=0, offs=0)
 

Public Attributes

 flags
 
 timdat
 
 version
 

Detailed Description

A table in the resource directory. 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ident = () 
)

Member Function Documentation

◆ __getitem__()

def __getitem__ (   self,
  key 
)

◆ __iter__()

def __iter__ (   self)

◆ __len__()

def __len__ (   self)

◆ __setitem__()

def __setitem__ (   self,
  key,
  value 
)
Adds the given item to the table.  Maintains sort order. 

◆ count_resources()

def count_resources (   self)
Counts all of the resources.

◆ get_nested_tables()

def get_nested_tables (   self)
Returns all tables in this table and subtables.

◆ items()

def items (   self)

◆ pack_header()

def pack_header (   self,
  data,
  offs 
)

◆ unpack_from()

def unpack_from (   self,
  mem,
  addr = 0,
  offs = 0 
)

Member Data Documentation

◆ flags

flags

◆ timdat

timdat

◆ version

version