-
Notifications
You must be signed in to change notification settings - Fork 0
PlayerStruc
MedicAlert edited this page Oct 9, 2014
·
3 revisions
###Class Purpose:
This class is used as a structure class for other instances. It is usually used for formatting a bf2cc pl response into a readable list. Because this class is used as a structure, it shouldn't contained more than a
__slot__and an__init__
__init__(self)
Description: This function contains all the variables set in slot and are assigned a value (usually none, 0, or an empty list)
variable = PlayerStruc()
#Created a single variable that's type is PlayerStruc
# Adding attributes
variable.playername = "Player1"
variable.profile = 9014124
# Or it can be placed inside a list!
variable = [PlayerStruc()]
# Created a list containing a PlayerStruc object
# Adding attributes
variable[0].playername = "Player1"
variable[0].profile = 9014124- slots = [...]
Description: This built-in feature is used to save space when generating objects.
###Classes
- TCPBARE
- PlayerStruc
- MapStruc
- ServerCommando
- BF2CC
- ChatStruct
- ChatLog
- Profiling
- Limiter
- GrabSource
###Files