MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / find

Method find

LuaSTGPlus/string2enum.py:39–44  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

37 self._obj = [x for x in range(0, count)]
38
39 def find(self, x):
40 if x != self._obj[x]:
41 self._obj[x] = self.find(self._obj[x])
42 return self._obj[x]
43 else:
44 return x
45
46 def connect(self, a, b):
47 x = self.find(a)

Callers 15

connectMethod · 0.95
is_connectedMethod · 0.95
removeResourceMethod · 0.80
CheckResourceExistsMethod · 0.80
GetTextureMethod · 0.80
GetSpriteMethod · 0.80
GetAnimationMethod · 0.80
GetMusicMethod · 0.80
GetSoundMethod · 0.80
GetParticleMethod · 0.80
GetSpriteFontMethod · 0.80
GetTTFFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected