Skip to content

In case Screeps ever gets any sort of Python interface, there will need to be some way to define whether something is just a dictionary, or is a full-on class. This aims to provide that.

License

Notifications You must be signed in to change notification settings

LastedApple3/Screep-Typing-for-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Screep Typing for Python

Intentions

If Screeps ever gets any form of Python interface, there will need to be something to differentiate between a dictionary and a class, as Java (the language Screeps intends you to write in) does not differentiate between them. This aims to provide the typing for this conversion, not the actual mechanics.

Road Map

  1. raw.py is, as the name suggests, a very raw form of the end goal. It will raise errors when run, as many objects are undefined (as it is still being written) and many objects are defined out of order. Once the entirety of the screeps api is stored into raw.py, the next step can begin.
  2. main.py, once it is created, will contain a more functional version of the contents of raw.py. This will lack any type definitions for in-code inputs, but may still raise errors due to functions from a class returning an instance of that class (e.g. MapVisual.circle() returns the MapVisual object), as the class is in the process of being defined.

How you can help

If you want to help, check out any issues and propose/create a pull request for fixes.

About

In case Screeps ever gets any sort of Python interface, there will need to be some way to define whether something is just a dictionary, or is a full-on class. This aims to provide that.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages