GbCC Primitives and Commands
GbCc:set
Stores a value, which is accessible by it's key.
gbcc:set key value
GbCC:Get
Returns a value, based it’s key.
gbcc:get key
GbCC:get-from-user
Returns a value, base on it’s user-id and key.
to gbcc-on-select [user-id] show gbcc:get-from-user user-id "code" end
GbCC Reserved Procedures
Gbcc-on-enter
User-defined procedure which, if it exists, will be called when any user first enters the room.
to gbcc-on-enter [ user-id role ] show "This is called when a user enters." show word user-id " is the unique identifier for this user." if (role = "teacher") [ show "User is a teacher." ] if (role = "student") [ show "User is a student." ] end
gbcc-on-exit
User-defined procedure which, if it exists, will be called when any user exits the room.
to gbcc-on-exit [ user-id role ] show "This is called when a user exits." show word user-id " is the unique identifier for this user." if (role = "teacher") [ show "User is a teacher." ] if (role = "student") [ show "User is a student." ] end