MCPcopy Create free account
hub / github.com/ddnet/ddnet / __init__

Method __init__

datasrc/content.py:39–46  ·  view source on GitHub ↗
(self, name="", Set=None, x=0, y=0, w=0, h=0)

Source from the content-addressed store, hash-verified

37
38class Sprite(Struct):
39 def __init__(self, name="", Set=None, x=0, y=0, w=0, h=0):
40 Struct.__init__(self, "CDataSprite")
41 self.name = String(name)
42 self.set = Pointer(SpriteSet, Set) # TODO
43 self.x = Int(x)
44 self.y = Int(y)
45 self.w = Int(w)
46 self.h = Int(h)
47
48
49class Pickup(Struct):

Callers

nothing calls this directly

Calls 4

StringClass · 0.90
PointerClass · 0.90
IntClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected