mirror of
https://port.numenaute.org/aleajactaest/clientbot.git
synced 2024-12-21 00:48:46 +00:00
92 lines
2.8 KiB
Python
92 lines
2.8 KiB
Python
|
#!/usr/bin/python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
|
# module TPropIndex
|
||
|
#
|
||
|
# Copyright (C) 2019 AleaJactaEst
|
||
|
#
|
||
|
# This program is free software: you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation, either version 3 of the License, or
|
||
|
# (at your option) any later version.
|
||
|
#
|
||
|
# This program is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License
|
||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
|
||
|
from enum import IntEnum
|
||
|
import math
|
||
|
|
||
|
# Ref : khanat-opennel-code/code/ryzom/common/src/game_share/entity_types.h
|
||
|
|
||
|
MAX_THRESHOLD = (1024*1024)
|
||
|
|
||
|
class TPropIndex(IntEnum):
|
||
|
PROPERTY_POSITION = 0
|
||
|
PROPERTY_POSX = 0
|
||
|
PROPERTY_POSY = 1
|
||
|
PROPERTY_POSZ = 2
|
||
|
PROPERTY_ORIENTATION = 3
|
||
|
PROPERTY_SHEET = 4
|
||
|
PROPERTY_BEHAVIOUR = 5
|
||
|
PROPERTY_NAME_STRING_ID = 6
|
||
|
PROPERTY_TARGET_ID = 7
|
||
|
PROPERTY_MODE = 8
|
||
|
PROPERTY_VPA = 9
|
||
|
PROPERTY_VPB = 10
|
||
|
PROPERTY_VPC = 11
|
||
|
PROPERTY_ENTITY_MOUNTED_ID = 12
|
||
|
PROPERTY_RIDER_ENTITY_ID = 13
|
||
|
PROPERTY_CONTEXTUAL = 14
|
||
|
PROPERTY_BARS = 15
|
||
|
PROPERTY_TARGET_LIST = 16
|
||
|
PROPERTY_TARGET_LIST_0 = 16
|
||
|
PROPERTY_TARGET_LIST_1 = 17
|
||
|
PROPERTY_TARGET_LIST_2 = 18
|
||
|
PROPERTY_TARGET_LIST_3 = 19
|
||
|
PROPERTY_GUILD_SYMBOL = 20
|
||
|
PROPERTY_GUILD_NAME_ID = 21
|
||
|
PROPERTY_VISUAL_FX = 22
|
||
|
PROPERTY_EVENT_FACTION_ID = 23
|
||
|
PROPERTY_PVP_MODE = 24
|
||
|
PROPERTY_PVP_CLAN = 25
|
||
|
PROPERTY_OWNER_PEOPLE = 26
|
||
|
PROPERTY_OUTPOST_INFOS = 27
|
||
|
INVALID_PROP_INDEX = 0xff
|
||
|
|
||
|
THRESHOLD_SHEET = MAX_THRESHOLD
|
||
|
THRESHOLD_BEHAVIOUR = 60000
|
||
|
THRESHOLD_NAME_STRING_ID = 100000
|
||
|
THRESHOLD_TARGET_ID = 60000
|
||
|
THRESHOLD_TARGET_ID_CLIENT_M = 55.0
|
||
|
THRESHOLD_MODE = MAX_THRESHOLD
|
||
|
THRESHOLD_VPA = MAX_THRESHOLD
|
||
|
THRESHOLD_VPB = MAX_THRESHOLD
|
||
|
THRESHOLD_VPC = 10000
|
||
|
THRESHOLD_ENTITY_MOUNTED_ID = MAX_THRESHOLD
|
||
|
THRESHOLD_CONTEXTUAL = 100000
|
||
|
THRESHOLD_CONTEXTUAL_NPC = MAX_THRESHOLD
|
||
|
THRESHOLD_BARS = 30000
|
||
|
THRESHOLD_BARS_CLIENT_M = 28.0
|
||
|
THRESHOLD_TARGET_LIST = (100000 * math.sqrt(2.0))
|
||
|
THRESHOLD_GUILD_SYMBOL = MAX_THRESHOLD
|
||
|
THRESHOLD_GUILD_NAME_ID = MAX_THRESHOLD
|
||
|
THRESHOLD_VISUAL_FX = 30000
|
||
|
THRESHOLD_EVENT_FACTION_ID = 60000
|
||
|
THRESHOLD_PVP_MODE = 60000
|
||
|
THRESHOLD_PVP_CLAN = 60000
|
||
|
THRESHOLD_OWNER_PEOPLE = 60000
|
||
|
THRESHOLD_OUTPOST_INFOS = 60000
|
||
|
|
||
|
USER_DEFINED_PROPERTY_NB_BITS = 32
|
||
|
INVALID_PROPERTY = 0xFFFF
|
||
|
NB_VISUAL_PROPERTIES = 28
|
||
|
MAX_PROPERTIES_PER_ENTITY = NB_VISUAL_PROPERTIES
|
||
|
THRESHOLD_RIDER_ENTITY_ID = MAX_THRESHOLD
|
||
|
|