1.4.1 • Published 6 years ago

toslib v1.4.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

TGLib

The official Testing Grounds library. Contains "Town Of Salem" logic, roles, actions and all. This library tries to copy the logic of "Town Of Salem" and add more on top of it.

THE CODE ISN'T FULLY DOCUMENTED JUST YET! WORKING ON THAT

Integrated Differences:

  • Plurality (Not In TG tho)
  • No lynch is an option
  • Factional kills (Faction Actions)

Of course, there are many other differences that come with TGServer, mainly phase times and roles.

Code Structure

There are 3 main types of objects:

DataTypes: Those are the Unit and PriorityList - Classes used to store data.
Structures: These usually represent something in town of salem. For example a player, a role, a night action, a phase, etc.
Collectors: Collectors collect structures and put them in Units (A class that extends the Map class). They also make useful methods and properties regarding the collected structures accessible.

Version

The current version of TGLib is: 1.0rc1

1.4.1

6 years ago

1.4.0

6 years ago

1.3.11

6 years ago

1.3.10

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago