feat: Added Sky class
+ changed file structure in the python module + fixed static method binding for PyDaedalus class
This commit is contained in:
86
g2o/classes/damage.py
Normal file
86
g2o/classes/damage.py
Normal file
@@ -0,0 +1,86 @@
|
||||
import sqg2o
|
||||
|
||||
class DamageDescription(sqg2o.DamageDescription):
|
||||
"""
|
||||
This class represents damage information.
|
||||
Original: [DamageDescription](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-classes/item/DamageDescription//)
|
||||
|
||||
## `int` flags
|
||||
Represents the damage flags.
|
||||
|
||||
## `int` damage
|
||||
Represents the total damage taken.
|
||||
|
||||
## `str` item_instance *(read-only)*
|
||||
!!! note
|
||||
Can be empty if there is no weapon.
|
||||
Represents the weapon instance used to deal damage.
|
||||
|
||||
## `int` distance
|
||||
Represents the total distance, calculated from origin point to target.
|
||||
|
||||
## `int` spell_id
|
||||
Represents the spell id.
|
||||
|
||||
## `int` spell_level
|
||||
Represents the level of chargeable spells.
|
||||
|
||||
## `str` node
|
||||
!!! note
|
||||
Can be empty if there was no projectile.
|
||||
Represents the name of the node hit by a point projectile.
|
||||
"""
|
||||
def __init__(self):
|
||||
return super().__init__()
|
||||
|
||||
@property
|
||||
def item_instance(self):
|
||||
return super().item_instance
|
||||
|
||||
@property
|
||||
def flags(self):
|
||||
return super().flags
|
||||
|
||||
@flags.setter
|
||||
def flags(self, value):
|
||||
super().flags = value
|
||||
|
||||
@property
|
||||
def damage(self):
|
||||
return super().damage
|
||||
|
||||
@damage.setter
|
||||
def damage(self, value):
|
||||
super().damage = value
|
||||
|
||||
@property
|
||||
def distance(self):
|
||||
return super().distance
|
||||
|
||||
@distance.setter
|
||||
def distance(self, value):
|
||||
super().distance = value
|
||||
|
||||
@property
|
||||
def spell_id(self):
|
||||
return super().spell_id
|
||||
|
||||
@spell_id.setter
|
||||
def spell_id(self, value):
|
||||
super().spell_id = value
|
||||
|
||||
@property
|
||||
def spell_level(self):
|
||||
return super().spell_level
|
||||
|
||||
@spell_level.setter
|
||||
def spell_level(self, value):
|
||||
super().spell_level = value
|
||||
|
||||
@property
|
||||
def node(self):
|
||||
return super().node
|
||||
|
||||
@node.setter
|
||||
def node(self, value):
|
||||
super().node = value
|
||||
Reference in New Issue
Block a user