Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This is a library that makes automating events in ADOFAI levels more convenient.
List of Classes:
LevelDict
LevelDict(filename, encoding)
.filename
is left blank.encoding
defaults to utf-8-sig.LevelDict.filename : str
LevelDict
was obtained.
LevelDict.encoding : str
LevelDict
was obtained.
LevelDict.nonFloorDecos : list[Decoration]
LevelDict.settings : Settings
LevelDict.tiles : list[Tile]
Tile
class)LevelDict.appendTile(angle : float) -> None:
LevelDict.appendTiles(angles : list[float]) -> None:
LevelDict.insertTile(angle : float, index : int) -> None:
LevelDict.insertTiles(angles : list[float], index : int) -> None:
LevelDict.getAngles() -> list[float]:
LevelDict.setAngles(angles: list[float]) -> None:
LevelDict.getAnglesRelative(ignoretwirls: bool=False, padmidspins: bool=False) -> list[float]
LevelDict.setAnglesRelative(angles: list[float]) -> None
LevelDict.addAction(event : Action) -> int:
LevelDict.addDecoration(event : Decoration) -> int:
LevelDict.getActions(condition : Callable) -> list[Action]:
LevelDict.getDecorations(condition : Callable) -> list[Decoration]:
LevelDict.removeActions(condition : Callable) -> list[Action]:
LevelDict.removeDecorations(condition : Callable) -> list[Decoration]:
LevelDict.popAction(tile, index) -> Action:
LevelDict.popDecoration(tile, index) -> Decoration:
LevelDict.replaceFieldAction(condition : Callable, field : str, new) -> None:
LevelDict.replaceFieldDecoration(condition : Callable, field : str, new) -> None:
LevelDict.writeDictToFile(leveldict : dict, filename : str):
LevelDict.leveldict
.
LevelDict.writeToFile(filename : str=None) -> None:
Settings
Settings
object behaves like a dict
. The keys of this dictionary are equivalent to the parameters in the settings
field of a .adofai file.
Tile
Tile.angle : float
Tile.actions : list[Action]
Tile.decorations : list[Decoration]
Action
Action
object behaves like a dict
. The keys depend on the event type. Check any entry in the actions
field of a .adofai file for more information on the fields used by that event type.
Tile
object.
Decoration
Decoration
object behaves like a dict
. The keys depend on the event type. Check any entry in the decorations
field of a .adofai file for more information on the fields used by that event type.
Tile
object. If the decoration is not tied to any tile, it is found in the list of non-floor decos.
이 라이브러리는 ADOFAI 커스텀 레벨 제작 중 코딩을 통한 이벤트 자동생성을 편리하게 하기 위해 존재합니다.
클래스 소개:
LevelDict
LevelDict(filename, encoding)
을 통해 객체를 초기화합니다.filename
(파일 이름, .adofai 형식의 JSON 파일)을 입력하지 않을 경우 비어있는 LevelDict를 생성합니다.encoding
(인코딩)의 기본값은 utf-8-sig입니다.LevelDict.filename : str
LevelDict
로부터 가져온 filename입니다.
LevelDict.encoding : str
LevelDict
로부터 가져온 encoding입니다.
LevelDict.nonFloorDecos : list[Decoration]
LevelDict.settings : Settings
LevelDict.tiles : list[Tile]
Tile
클래스를 확인하세요.)LevelDict.appendTile(angle : float) -> None:
LevelDict.appendTiles(angles : list[float]) -> None:
LevelDict.insertTile(angle : float, index : int) -> None:
LevelDict.insertTiles(angles : list[float], index : int) -> None:
LevelDict.getAngles() -> list[float]:
LevelDict.setAngles(angles: list[float]) -> None:
LevelDict.getAnglesRelative(ignoretwirls: bool=False, padmidspins: bool=False) -> list[float]
LevelDict.setAnglesRelative(angles: list[float]) -> None
LevelDict.addAction(event : Action) -> int:
LevelDict.addDecoration(event : Decoration) -> int:
LevelDict.getActions(condition : Callable) -> list[Action]:
LevelDict.getDecorations(condition : Callable) -> list[Decoration]:
LevelDict.removeActions(condition : Callable) -> list[Action]:
LevelDict.removeDecorations(condition : Callable) -> list[Decoration]:
LevelDict.popAction(tile, index) -> Action:
LevelDict.popDecoration(tile, index) -> Decoration:
LevelDict.replaceFieldAction(condition : Callable, field : str, new) -> None:
LevelDict.replaceFieldDecoration(condition : Callable, field : str, new) -> None:
LevelDict.writeDictToFile(leveldict : dict, filename : str):
LevelDict.leveldict
를 사용할 경우 해당 코드를 사용하세요.
LevelDict.writeToFile(filename : str=None) -> None:
Settings
Settings
오브젝트는 dict
와 같이 행동합니다. 이 딕셔너리의 키는 ADOFAI 커스텀 레벨 파일의 settings
(설정)의 키와 동일한 값을 가집니다.
Tile
Tile.angle : float
Tile.actions : list[Action]
Tile.decorations : list[Decoration]
Action
Action
오브젝트는 dict
와 같이 행동합니다. 이 딕셔너리의 키는 이벤트의 종류에 따라 달라집니다. ADOFAI 커스텀 레벨 파일을 열어 원하는 종류의 이벤트의 Actions
을 찾아 각 키를 확인할 수 있습니다.
Tile
오브젝트 안에서 리스트의 형태로 나열되어 있습니다.
Decoration
Decoration
오브젝트는 dict
와 같이 행동합니다. 이 딕셔너리의 키는 이벤트의 종류에 따라 달라집니다. ADOFAI 커스텀 레벨 파일을 열어 원하는 종류의 장식의 decorations
을 찾아 각 키를 확인할 수 있습니다.
Tile
오브젝트 안에 리스트의 형태로 나열되어 있습니다. 만약 장식이 어떠한 타일에도 대응되지 않을 경우, LevelDict.nonFloorDecos 안에 리스트의 형태로 나열되어 있습니다.
popAction()
and popDecoration()
padmidspins
option to getAnglesRelative()
getAnglesRelative()
getAnglesRelative()
Settings
class now inherits from and behaves like dict
in order to keep it future-proofgetActions()
and getDecorations()
pathData
readingprint()
statementLevelDict
is now generated if no filename
is givenappendTile()
and appendTiles()
moving events between tilesgetAngles()
and setAngles()
getAnglesRelative()
and setAnglesRelative()
, with options to take twirls/midspins into accounttiles
list is now type-check friendlySettings
classpathData
writeToFile()
no longer working (again)_getFileString()
and _getFileDict()
writeToFile()
no longer workingjson.dumps()
with faster json.dump()
in writeToFile()
addEvent()
not detecting addObject
and addText
eventsremoveEvents()
not modifying leveldict
replaceField()
getFileDict()
searchEvents()
, removeEvents()
and replaceField()
getAngles()
, setAngles()
and all event functions are now deprecatedmoveDecorations()
addDecoration()
and moveDecorations()
setSpeed()
__init__.py
're'
is no longer a dependencyFAQs
A library that makes automating events in ADOFAI levels more convenient.
We found that adofaipy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.