Skip to content
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 mapList response into a readable list. Because this class is used as a structure, it shouldn't contained more than a __slot__ and an __init__

###Functions:

__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

###Files

Clone this wiki locally