feat: Added class ItemsGround

+ added exception handling on returning OT_NULL types
This commit is contained in:
AURUMVORXX
2024-11-07 20:14:20 +03:00
parent 4eaa9e4e2e
commit 0596853161
17 changed files with 174 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ from g2o.events import removeEvent
from g2o.classes.packets import Packet
from g2o.classes.damage import DamageDescription
from g2o.classes.items import ItemGround
from g2o.classes.items import ItemsGround
from g2o.classes.daedalus import Daedalus
from g2o.classes.sky import Sky

View File

@@ -1,5 +1,19 @@
import sqg2o
class ItemsGround:
@staticmethod
def getById(id : int):
return sqg2o.ItemsGround.getById(id)
@staticmethod
def create(data : dict) -> int:
return sqg2o.ItemsGround.create(data)
@staticmethod
def destroy(id : int):
sqg2o.ItemsGround.destroy(id)
class ItemGround(sqg2o.ItemGround):
"""
This class represents item on the ground.