-
Notifications
You must be signed in to change notification settings - Fork 0
MapStruc
MedicAlert edited this page Oct 9, 2014
·
1 revision
###Class Purpose:
This small class is used as a structure class for other instances. It is usually used for formatting a
mapListresponse 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 or 0/-1)
variable = MapStruc()
#Created a single variable that's type is MapStruc
# Adding attributes
variable.mapname = "Strike at Dragon Rush"
variable.gamemode = "gpm_rush
# Or it can be placed inside a list!
variable = [MapStruc()]
# Created a list containing a MapStruc object
# Adding attributes
variable[0].mapname = "Strike at Dragon Rush"
variable[0].gamemode = "gpm_rush- 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