Previous topic

objects

Next topic

parse_packet

This Page

parcel

class pyogp.lib.base.parcel.ParcelManager(agent=None, region=None, settings=None, message_handler=None, events_handler=None)

a parcel manager, generally used as an attribute of a region

initialize the parcel manager

disable_objects()
set objects nonphysical and disable scripts for the specified parcel
divide_parcel()
divide the selection into a new parcel
enable_callbacks()
enable the callback handlers for this ParcelManager
get_current_parcel()
Returns the agent’s current parcel if info has been received, None otherwise.
get_parcel_by_id(local_id)
Returns a parcel if info has been received, None otherwise.
get_parcel_by_location(local_x, local_y)
Returns a parcel if info has been received, None otherwise.
get_parcel_id_by_location(local_x, local_y)
Returns a parcel’s local id if info has been received, 0 otherwise.
join_parcels()
joins the specified parcels
onEstateCovenantReply(packet)
parse and handle an EstateCovenantReply packet
onParcelAccessListReply(packet)
parse and handle a ParcelAccessListReply packet
onParcelDwellReply(packet, LocalID=None)
parse and handle a ParcelDwellReply packet
onParcelInfoReply(packet)
parse and handle a ParcelInfoReply packet
onParcelOverlay(packet)

parse and handle an incoming ParcelOverlay packet

Currently, we store this data in the ParcelManager.packet_overlay dictionary as parcel_overlay[sequence_id] = data (unparsed binary)

onParcelProperties(packet)
parse and handle an incoming ParcelProperties packet. Parse and serialize the info into a Parcel() representation, then store it (or replace the stored version)
onParcelPropertiesUpdate(packet)
parse and handle an incoming ParcelPropertiesUpdate packet. parse the data into a dictionary and pass the blob to the Parcel() instance for self handling
request_all_parcel_properties(delay=0.5, refresh=False)
request the properties of all of the parcels on the current region. The delay parameter is a sleep between the send of each packet request; if refresh, current data will be discarded before requesting. If refresh is not True, data will not be re-requested for region locations already queried.
request_current_parcel_properties(refresh=False)
request the properties of the parcel the agent currently inhabits
request_estate_covenant()
request the estate covenant (for the current estate)
request_parcel_access_list(LocalID, Flags)
request an access list for the specified parcel, while enabling a callback handler for the response
request_parcel_dwell(LocalID)
request dwell for the specified parcel, while enabling a callback handler for the response
request_parcel_info(parcel_id)
request information for a parcel by id
return_parcel_objects()
return the specified objects for the specified parcel
sendEstateCovenantRequest(agent_id, session_id)
send an EstateCovenantRequest message to the host simulator
sendParcelAccessListRequest(agent_id, session_id, LocalID, Flags, SequenceID=-5150)
send a ParcelAccessListRequest packet to the host simulator
sendParcelDisableObjects()
send a ParcelDisableObjects packet
sendParcelDivide()
send a ParcelDivide packet
sendParcelDwellRequest(agent_id, session_id, LocalID)
send a ParcelDwellRequest packet
sendParcelInfoRequest(agent_id, session_id, parcel_id)
send a ParcelInfoRequest packet for the specified parcel_id
sendParcelJoin()
send a ParcelJoin packet
sendParcelPropertiesRequest(agent_id, session_id, SequenceID, West, South, East, North, SnapSelection)
sends a ParcelPropertiesRequest message to the host simulator
sendParcelPropertiesRequestByID(agent_id, session_id, SequenceID, LocalID)
sends a ParcelPropertiesRequestByID packet
class pyogp.lib.base.parcel.Parcel(region, agent, RequestResult=None, SequenceID=None, SnapSelection=None, SelfCount=None, OtherCount=None, PublicCount=None, LocalID=None, OwnerID=None, IsGroupOwned=None, AuctionID=None, ClaimDate=None, ClaimPrice=None, RentPrice=None, AABBMin=None, AABBMax=None, Bitmap=None, Area=None, Status=None, SimWideMaxPrims=None, SimWideTotalPrims=None, MaxPrims=None, TotalPrims=None, OwnerPrims=None, GroupPrims=None, OtherPrims=None, SelectedPrims=None, ParcelPrimBonus=None, OtherCleanTime=None, ParcelFlags=None, SalePrice=None, Name=None, Desc=None, MusicURL=None, MediaURL=None, MediaID=None, MediaAutoScale=None, GroupID=None, PassPrice=None, PassHours=None, Category=None, AuthBuyerID=None, SnapshotID=None, UserLocation=None, UserLookAt=None, LandingType=None, RegionPushOverride=None, RegionDenyAnonymous=None, RegionDenyIdentified=None, RegionDenyTransacted=None, RegionDenyAgeUnverified=None, ParcelID=None, ActualArea=None, BillableArea=None, Flags=None, GlobalX=None, GlobalY=None, GlobalZ=None, SimName=None, Dwell=None, settings=None)

a representation of a parcel

initialize a representation of a parcel. the data is currently being populated directly from the ParcelProperties message

buy()
buy this parcel
claim()
change the owner of a parcel
deed_to_group()
deed this parcel to a group
disable_objects()
set objects nonphysical and disable scripts for this parcel
godforce_owner()
god force own this parcel
reclaim()
reclaim this parcel
release()
release this parcel to the public
return_objects()
return the specified objects for this parcel
select_objects()
selects the specified objects for this parcel
set_other_clean_time()
sends a SetOtherCleanTime packet for this parcel