feat: Added class ItemsGround
+ added exception handling on returning OT_NULL types
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user