entities.datamaps module

Provides DataMap functionality for entities.

class entities.datamaps.DataMap

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

find((DataMap)arg1, (str)arg2) → TypeDescription
find_offset((DataMap)arg1, (str)name) → int :

Return the offset of a named property. Return -1 if the property wasn’t found.

base
chains_validated
class_name
description
length
optimized_datamap

Not implemented on this engine.

packed_offsets_computed
packed_size
class entities.datamaps.FieldType

Bases: Boost.Python.enum

BOOLEAN = _entities._datamaps.FieldType.BOOLEAN
CHARACTER = _entities._datamaps.FieldType.CHARACTER
CLASSPTR = _entities._datamaps.FieldType.CLASSPTR
COLOR32 = _entities._datamaps.FieldType.COLOR32
CUSTOM = _entities._datamaps.FieldType.CUSTOM
EDICT = _entities._datamaps.FieldType.EDICT
EHANDLE = _entities._datamaps.FieldType.EHANDLE
EMBEDDED = _entities._datamaps.FieldType.EMBEDDED
FLOAT = _entities._datamaps.FieldType.FLOAT
FUNCTION = _entities._datamaps.FieldType.FUNCTION
INPUT = _entities._datamaps.FieldType.INPUT
INTEGER = _entities._datamaps.FieldType.INTEGER
INTEGER64 = None
INTERVAL = _entities._datamaps.FieldType.INTERVAL
MATERIALINDEX = _entities._datamaps.FieldType.MATERIALINDEX
MATRIX3X4_WORLDSPACE = _entities._datamaps.FieldType.MATRIX3X4_WORLDSPACE
MODELINDEX = _entities._datamaps.FieldType.MODELINDEX
MODELNAME = _entities._datamaps.FieldType.MODELNAME
POSITION_VECTOR = _entities._datamaps.FieldType.POSITION_VECTOR
QUATERNION = _entities._datamaps.FieldType.QUATERNION
SHORT = _entities._datamaps.FieldType.SHORT
SOUNDNAME = _entities._datamaps.FieldType.SOUNDNAME
STRING = _entities._datamaps.FieldType.STRING
TICK = _entities._datamaps.FieldType.TICK
TIME = _entities._datamaps.FieldType.TIME
TYPECOUNT = _entities._datamaps.FieldType.TYPECOUNT
VECTOR = _entities._datamaps.FieldType.VECTOR
VECTOR2D = _entities._datamaps.FieldType.VECTOR2D
VECTOR4D = None
VMATRIX = _entities._datamaps.FieldType.VMATRIX
VMATRIX_WORLDSPACE = _entities._datamaps.FieldType.VMATRIX_WORLDSPACE
VOID = _entities._datamaps.FieldType.VOID
names = {'VOID': _entities._datamaps.FieldType.VOID, 'FLOAT': _entities._datamaps.FieldType.FLOAT, 'STRING': _entities._datamaps.FieldType.STRING, 'VECTOR': _entities._datamaps.FieldType.VECTOR, 'QUATERNION': _entities._datamaps.FieldType.QUATERNION, 'INTEGER': _entities._datamaps.FieldType.INTEGER, 'BOOLEAN': _entities._datamaps.FieldType.BOOLEAN, 'SHORT': _entities._datamaps.FieldType.SHORT, 'CHARACTER': _entities._datamaps.FieldType.CHARACTER, 'COLOR32': _entities._datamaps.FieldType.COLOR32, 'EMBEDDED': _entities._datamaps.FieldType.EMBEDDED, 'CUSTOM': _entities._datamaps.FieldType.CUSTOM, 'CLASSPTR': _entities._datamaps.FieldType.CLASSPTR, 'EHANDLE': _entities._datamaps.FieldType.EHANDLE, 'EDICT': _entities._datamaps.FieldType.EDICT, 'POSITION_VECTOR': _entities._datamaps.FieldType.POSITION_VECTOR, 'TIME': _entities._datamaps.FieldType.TIME, 'TICK': _entities._datamaps.FieldType.TICK, 'MODELNAME': _entities._datamaps.FieldType.MODELNAME, 'SOUNDNAME': _entities._datamaps.FieldType.SOUNDNAME, 'INPUT': _entities._datamaps.FieldType.INPUT, 'FUNCTION': _entities._datamaps.FieldType.FUNCTION, 'VMATRIX': _entities._datamaps.FieldType.VMATRIX, 'VMATRIX_WORLDSPACE': _entities._datamaps.FieldType.VMATRIX_WORLDSPACE, 'MATRIX3X4_WORLDSPACE': _entities._datamaps.FieldType.MATRIX3X4_WORLDSPACE, 'INTERVAL': _entities._datamaps.FieldType.INTERVAL, 'MODELINDEX': _entities._datamaps.FieldType.MODELINDEX, 'MATERIALINDEX': _entities._datamaps.FieldType.MATERIALINDEX, 'VECTOR2D': _entities._datamaps.FieldType.VECTOR2D, 'TYPECOUNT': _entities._datamaps.FieldType.TYPECOUNT}
values = {0: _entities._datamaps.FieldType.VOID, 1: _entities._datamaps.FieldType.FLOAT, 2: _entities._datamaps.FieldType.STRING, 3: _entities._datamaps.FieldType.VECTOR, 4: _entities._datamaps.FieldType.QUATERNION, 5: _entities._datamaps.FieldType.INTEGER, 6: _entities._datamaps.FieldType.BOOLEAN, 7: _entities._datamaps.FieldType.SHORT, 8: _entities._datamaps.FieldType.CHARACTER, 9: _entities._datamaps.FieldType.COLOR32, 10: _entities._datamaps.FieldType.EMBEDDED, 11: _entities._datamaps.FieldType.CUSTOM, 12: _entities._datamaps.FieldType.CLASSPTR, 13: _entities._datamaps.FieldType.EHANDLE, 14: _entities._datamaps.FieldType.EDICT, 15: _entities._datamaps.FieldType.POSITION_VECTOR, 16: _entities._datamaps.FieldType.TIME, 17: _entities._datamaps.FieldType.TICK, 18: _entities._datamaps.FieldType.MODELNAME, 19: _entities._datamaps.FieldType.SOUNDNAME, 20: _entities._datamaps.FieldType.INPUT, 21: _entities._datamaps.FieldType.FUNCTION, 22: _entities._datamaps.FieldType.VMATRIX, 23: _entities._datamaps.FieldType.VMATRIX_WORLDSPACE, 24: _entities._datamaps.FieldType.MATRIX3X4_WORLDSPACE, 25: _entities._datamaps.FieldType.INTERVAL, 26: _entities._datamaps.FieldType.MODELINDEX, 27: _entities._datamaps.FieldType.MATERIALINDEX, 28: _entities._datamaps.FieldType.VECTOR2D, 29: _entities._datamaps.FieldType.TYPECOUNT}
class entities.datamaps.InputData

Bases: Boost.Python.instance

__init__((object)arg1) → None

__init__( (object)arg1) -> object

activator
caller
output_index
value
class entities.datamaps.Interval

Bases: Boost.Python.instance

__init__((object)arg1) → None
range
start
class entities.datamaps.TypeDescription

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

embedded_datamap
external_name
flags
flat_group

Not implemented on this engine.

flat_offset

Not implemented on this engine.

function
input_function
name
offset
override_count
override_field
packed_offset
save_restore
size
size_in_bytes
tolerance
type
class entities.datamaps.TypeDescriptionFlags[source]

Bases: enum.IntEnum

TypeDescription flags wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
FUNCTIONTABLE = <TypeDescriptionFlags.FUNCTIONTABLE: 32>
GLOBAL = <TypeDescriptionFlags.GLOBAL: 1>
INDEX = <TypeDescriptionFlags.INDEX: 4096>
INPUT = <TypeDescriptionFlags.INPUT: 8>
INSENDTABLE = <TypeDescriptionFlags.INSENDTABLE: 256>
KEY = <TypeDescriptionFlags.KEY: 4>
MODELINDEX = <TypeDescriptionFlags.MODELINDEX: 2048>
NOERRORCHECK = <TypeDescriptionFlags.NOERRORCHECK: 1024>
OUTPUT = <TypeDescriptionFlags.OUTPUT: 16>
OVERRIDE = <TypeDescriptionFlags.OVERRIDE: 128>
PRIVATE = <TypeDescriptionFlags.PRIVATE: 512>
PTR = <TypeDescriptionFlags.PTR: 64>
SAVE = <TypeDescriptionFlags.SAVE: 2>
VIEW_NEVER = <TypeDescriptionFlags.VIEW_NEVER: 32768>
VIEW_OTHER_PLAYER = <TypeDescriptionFlags.VIEW_OTHER_PLAYER: 8192>
VIEW_OWN_TEAM = <TypeDescriptionFlags.VIEW_OWN_TEAM: 16384>
_member_map_ = OrderedDict([('GLOBAL', <TypeDescriptionFlags.GLOBAL: 1>), ('SAVE', <TypeDescriptionFlags.SAVE: 2>), ('KEY', <TypeDescriptionFlags.KEY: 4>), ('INPUT', <TypeDescriptionFlags.INPUT: 8>), ('OUTPUT', <TypeDescriptionFlags.OUTPUT: 16>), ('FUNCTIONTABLE', <TypeDescriptionFlags.FUNCTIONTABLE: 32>), ('PTR', <TypeDescriptionFlags.PTR: 64>), ('OVERRIDE', <TypeDescriptionFlags.OVERRIDE: 128>), ('INSENDTABLE', <TypeDescriptionFlags.INSENDTABLE: 256>), ('PRIVATE', <TypeDescriptionFlags.PRIVATE: 512>), ('NOERRORCHECK', <TypeDescriptionFlags.NOERRORCHECK: 1024>), ('MODELINDEX', <TypeDescriptionFlags.MODELINDEX: 2048>), ('INDEX', <TypeDescriptionFlags.INDEX: 4096>), ('VIEW_OTHER_PLAYER', <TypeDescriptionFlags.VIEW_OTHER_PLAYER: 8192>), ('VIEW_OWN_TEAM', <TypeDescriptionFlags.VIEW_OWN_TEAM: 16384>), ('VIEW_NEVER', <TypeDescriptionFlags.VIEW_NEVER: 32768>)])
_member_names_ = ['GLOBAL', 'SAVE', 'KEY', 'INPUT', 'OUTPUT', 'FUNCTIONTABLE', 'PTR', 'OVERRIDE', 'INSENDTABLE', 'PRIVATE', 'NOERRORCHECK', 'MODELINDEX', 'INDEX', 'VIEW_OTHER_PLAYER', 'VIEW_OWN_TEAM', 'VIEW_NEVER']
_value2member_map_ = {1: <TypeDescriptionFlags.GLOBAL: 1>, 2: <TypeDescriptionFlags.SAVE: 2>, 4: <TypeDescriptionFlags.KEY: 4>, 8: <TypeDescriptionFlags.INPUT: 8>, 16: <TypeDescriptionFlags.OUTPUT: 16>, 32: <TypeDescriptionFlags.FUNCTIONTABLE: 32>, 64: <TypeDescriptionFlags.PTR: 64>, 128: <TypeDescriptionFlags.OVERRIDE: 128>, 256: <TypeDescriptionFlags.INSENDTABLE: 256>, 512: <TypeDescriptionFlags.PRIVATE: 512>, 1024: <TypeDescriptionFlags.NOERRORCHECK: 1024>, 2048: <TypeDescriptionFlags.MODELINDEX: 2048>, 4096: <TypeDescriptionFlags.INDEX: 4096>, 8192: <TypeDescriptionFlags.VIEW_OTHER_PLAYER: 8192>, 16384: <TypeDescriptionFlags.VIEW_OWN_TEAM: 16384>, 32768: <TypeDescriptionFlags.VIEW_NEVER: 32768>}
class entities.datamaps.Variant

Bases: Boost.Python.instance

__init__((object)arg1) → None
get_bool((Variant)arg1) → bool
get_color((Variant)arg1) → Color
get_entity((Variant)arg1) → object
get_float((Variant)arg1) → float
get_int((Variant)arg1) → int
get_string((Variant)arg1) → str
get_vector((Variant)arg1) → Vector
set_bool((Variant)arg1, (bool)arg2) → None
set_color((Variant)arg1, (Color)arg2) → None
set_entity((Variant)arg1, (object)arg2) → None
set_float((Variant)arg1, (float)arg2) → None
set_int((Variant)arg1, (Channel)arg2) → None
set_string((Variant)arg1, (str)arg2) → None
set_vector((Variant)arg1, (Vector)arg2) → None
type