Sirikata
|
Functions | |
v8::Handle< v8::Value > | sendMessageReliable (const v8::Arguments &args) |
v8::Handle< v8::Value > | sendMessageUnreliable (const v8::Arguments &args) |
v8::Handle< v8::Value > | sendMessage (const v8::Arguments &args, bool reliable) |
v8::Handle< v8::Value > | pushEvalContextScopeDirectory (const v8::Arguments &args) |
v8::Handle< v8::Value > | popEvalContextScopeDirectory (const v8::Arguments &args) |
v8::Handle< v8::Value > | getAssociatedPresence (const v8::Arguments &args) |
v8::Handle< v8::Value > | evalInGlobal (const v8::Arguments &args) |
v8::Handle< v8::Value > | setSandboxMessageCallback (const v8::Arguments &args) |
v8::Handle< v8::Value > | setPresenceMessageCallback (const v8::Arguments &args) |
v8::Handle< v8::Value > | getUniqueToken (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_sendSandbox (const v8::Arguments &args) |
First argument should contain a message object that will be serialized and sent to another sandbox on same entity. | |
v8::Handle< v8::Value > | emersonCompileString (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageBeginTransaction (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageCommit (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageErase (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_killEntity (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_http (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageWrite (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageRead (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageRangeRead (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageRangeErase (const v8::Arguments &args) |
v8::Handle< v8::Value > | storageCount (const v8::Arguments &args) |
v8::Handle< v8::Value > | setRestoreScript (const v8::Arguments &args) |
v8::Handle< v8::Value > | debug_fileRead (const v8::Arguments &args) |
v8::Handle< v8::Value > | debug_fileWrite (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_serialize (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_proxAddedHandler (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_proxRemovedHandler (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_deserialize (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_headless (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_createVisible (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canSendMessage (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_require (const v8::Arguments &args) |
v8::Handle< v8::Value > | commonRequire (const v8::Arguments &args, bool isJS) |
v8::Handle< v8::Value > | root_reset (const v8::Arguments &args) |
Single parameter: an object with information on each presence's prox result set: | |
bool | decodeResetArg (v8::Handle< v8::Object > arg, std::map< SpaceObjectReference, std::vector< SpaceObjectReference > > &cppRes) |
v8::Handle< v8::Value > | root_getScript (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_setScript (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canRecvMessage (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canImport (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canProxCallback (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canProxChangeQuery (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canCreatePres (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canCreateEnt (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_canEval (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_jsrequire (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_jsimport (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_import (const v8::Arguments &args) |
v8::Handle< v8::Value > | commonImport (const v8::Arguments &args, bool isJS) |
v8::Handle< v8::Value > | root_getVersion (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_print (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_sendHome (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_restorePresence (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_createEntity (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_createEntityNoSpace (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_createContext (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_event (const v8::Arguments &args) |
Emits an event. | |
v8::Handle< v8::Value > | root_timeout (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_onPresenceConnected (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_onPresenceDisconnected (const v8::Arguments &args) |
v8::Handle< v8::Value > | createVisFromAddress (const v8::Handle< v8::Value > &addressFor) |
v8::Handle< v8::Value > | createVisFromFull (const v8::Arguments &args) |
v8::Handle< v8::Value > | root_createPresence (const v8::Arguments &args) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::commonImport | ( | const v8::Arguments & | args, |
bool | isJS | ||
) |
References Sirikata::JS::decodeString(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_import().
Referenced by root_import(), and root_jsimport().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::commonRequire | ( | const v8::Arguments & | args, |
bool | isJS | ||
) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), StringCheckAndExtract, and Sirikata::JS::JSSystemStruct::struct_require().
Referenced by root_jsrequire(), and root_require().
v8::Handle<v8::Value> Sirikata::JS::JSSystem::createVisFromAddress | ( | const v8::Handle< v8::Value > & | addressFor | ) |
v8::Handle<v8::Value> Sirikata::JS::JSSystem::createVisFromFull | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::debug_fileRead | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::debug_fileWrite | ( | const v8::Arguments & | args | ) |
bool Sirikata::JS::JSSystem::decodeResetArg | ( | v8::Handle< v8::Object > | arg, |
std::map< SpaceObjectReference, std::vector< SpaceObjectReference > > & | cppRes | ||
) |
References Sirikata::JS::decodeSporef().
Referenced by root_reset().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::emersonCompileString | ( | const v8::Arguments & | args | ) |
References INLINE_STR_CONV_ERROR, INLINE_SYSTEM_CONV_ERROR, and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::evalInGlobal | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::getAssociatedPresence | ( | const v8::Arguments & | args | ) |
References INLINE_SYSTEM_CONV_ERROR, and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate(), popEvalContextScopeDirectory(), and pushEvalContextScopeDirectory().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::getUniqueToken | ( | const v8::Arguments & | args | ) |
References Sirikata::UUID::random(), Sirikata::UUID::toString(), and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::popEvalContextScopeDirectory | ( | const v8::Arguments & | args | ) |
References getAssociatedPresence(), INLINE_SYSTEM_CONV_ERROR, and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::pushEvalContextScopeDirectory | ( | const v8::Arguments & | args | ) |
References getAssociatedPresence(), INLINE_STR_CONV_ERROR, INLINE_SYSTEM_CONV_ERROR, and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canCreateEnt | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canCreateEnt().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canCreatePres | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canCreatePres().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canEval | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canEval().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canImport | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canImport().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canProxCallback | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canProxCallback().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canProxChangeQuery | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canRecvMessage | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canRecvMessage().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_canSendMessage | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_canSendMessage().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_createContext | ( | const v8::Arguments & | args | ) |
the | presence that the context is associated with. (will use this as sender of messages). If this arg is null, then just passes through the parent context's presence |
a | visible object that can always send messages to. if null, will use same spaceobjectreference as one passed in for arg0. |
permission | number: an integer that indicates what the newly created sandbox can do. |
References Sirikata::JS::decodeJSPosListener(), Sirikata::JS::JSPresenceStruct::decodePresenceStruct(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), Sirikata::JS::JSPositionListener::getSporef(), INLINE_DECODE_UINT_32_ERROR, Sirikata::SpaceObjectReference::null(), and Sirikata::JS::JSSystemStruct::struct_createContext().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_createEntity | ( | const v8::Arguments & | args | ) |
Vec3 | (eg. new util.Vec3(0,0,0);). Corresponds to position to place new entity in world. |
String. | Script option to pass in. Almost always pass "js" |
String. | New script to execute. |
String. | Mesh uri corresponding to mesh you want to use for this entity. |
Number. | Scale of new mesh. (Higher number means increase mesh's size.) |
Number. | Solid angle that entity's new presence queries with. |
String. | Space should create the new entity in. |
Note: calling create_entity in a sandbox without the capabilities to create entities throws an exception.
References Sirikata::JS::decodeString(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), INLINE_STR_CONV_ERROR, Sirikata::JS::EntityCreateInfo::loc, Sirikata::JS::EntityCreateInfo::mesh, Sirikata::JS::NumericExtract(), Sirikata::JS::NumericValidate(), Sirikata::JS::ObjectCast(), Sirikata::JS::EntityCreateInfo::query, Sirikata::JS::EntityCreateInfo::scale, Sirikata::JS::EntityCreateInfo::scriptContents, Sirikata::JS::EntityCreateInfo::scriptOpts, Sirikata::JS::EntityCreateInfo::scriptType, Sirikata::JS::EntityCreateInfo::space, Sirikata::JS::StringExtract(), Sirikata::JS::StringValidate(), Sirikata::JS::JSSystemStruct::struct_createEntity(), Sirikata::JS::Vec3Extract(), and Sirikata::JS::Vec3Validate().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_createEntityNoSpace | ( | const v8::Arguments & | args | ) |
Vec3 | (eg. new util.Vec3(0,0,0);). Corresponds to position to place new entity in world. |
String. | Script option to pass in. Almost always pass "js" |
String. | New script to execute. |
String. | Mesh uri corresponding to mesh you want to use for this entity. |
Number. | Scale of new mesh. (Higher number means increase mesh's size.) |
Number. | Solid angle that entity's new presence queries with. |
Note: calling create_entity in a sandbox without the capabilities to create entities throws an exception.
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), INLINE_STR_CONV_ERROR, Sirikata::JS::EntityCreateInfo::loc, Sirikata::JS::EntityCreateInfo::mesh, Sirikata::JS::NumericExtract(), Sirikata::JS::NumericValidate(), Sirikata::JS::ObjectCast(), Sirikata::JS::EntityCreateInfo::query, Sirikata::JS::EntityCreateInfo::scale, Sirikata::JS::EntityCreateInfo::scriptContents, Sirikata::JS::EntityCreateInfo::scriptOpts, Sirikata::JS::EntityCreateInfo::scriptType, Sirikata::JS::StringExtract(), Sirikata::JS::StringValidate(), Sirikata::JS::JSSystemStruct::struct_createEntity(), Sirikata::JS::Vec3Extract(), and Sirikata::JS::Vec3Validate().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle<v8::Value> Sirikata::JS::JSSystem::root_createPresence | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_createVisible | ( | const v8::Arguments & | args | ) |
References Sirikata::JS::decodeBoundingSphere3f(), Sirikata::JS::decodeSporef(), Sirikata::JS::decodeString(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), Sirikata::JS::decodeTimedMotionQuat(), Sirikata::JS::decodeTimedMotionVector(), and Sirikata::JS::JSSystemStruct::struct_create_vis().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_deserialize | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_event | ( | const v8::Arguments & | args | ) |
Emits an event.
callback | The function to invoke once "time" number of seconds have passed |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_event().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_getScript | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_getVersion | ( | const v8::Arguments & | args | ) |
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_headless | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_http | ( | const v8::Arguments & | args | ) |
{String} | type (GET or POST) are only two supported for now. |
{String} | url or ip address. |
{String} | request paramerts |
{function} | callback to execute on success or failure (first arg of function is bool. If success, bool is true, if fail, bool is false). Success callbacks have a second arg that takes in an object with the following fields: respHeaders (string map). contentLength (number). status code (number). data (string). |
References Sirikata::Any::as(), Sirikata::Transfer::HttpManager::GET, Sirikata::Transfer::HttpManager::HEAD, INLINE_STR_CONV_ERROR, INLINE_SYSTEM_CONV_ERROR, Sirikata::Network::Address::lexical_cast(), and Sirikata::Network::Address::null().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_import | ( | const v8::Arguments & | args | ) |
References commonImport().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_jsimport | ( | const v8::Arguments & | args | ) |
References commonImport().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_jsrequire | ( | const v8::Arguments & | args | ) |
References commonRequire().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_killEntity | ( | const v8::Arguments & | args | ) |
References INLINE_SYSTEM_CONV_ERROR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_onPresenceConnected | ( | const v8::Arguments & | args | ) |
Function | to execute when a presence created within this sandbox gets connected to the world. Function takes a single argument that corresponds to the presence that just connected to the world. |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_registerOnPresenceConnectedHandler().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_onPresenceDisconnected | ( | const v8::Arguments & | args | ) |
Function | to execute when a presence created within this sandbox gets disconnected to the world. Function takes a single argument that corresponds to the presence that just disconnected from the world. |
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_registerOnPresenceDisconnectedHandler().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_print | ( | const v8::Arguments & | args | ) |
Object | or value to print |
Prints the object or value to scripting window.
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), INLINE_STR_CONV_ERROR, and Sirikata::JS::JSSystemStruct::struct_print().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_proxAddedHandler | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_proxRemovedHandler | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_require | ( | const v8::Arguments & | args | ) |
String | corresponding to the filename to look for file to include. |
Library include mechanism. Calling require makes it so that system searches for file named by argument passed in. If system hasn't already executed this file, it reads file, and executes it. (See import as well.)
References commonRequire().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_reset | ( | const v8::Arguments & | args | ) |
Single parameter: an object with information on each presence's prox result set:
obj[pres0.sporef] = [visTo0_a.sporef,visTo0_b.sporef, ...]; obj[pres1.sporef] = [visTo1_a.sporef,visTo1_b.sporef, ...]; ...
Destroys all created objects, except presences in the root context and the visibles that were in those presences' prox result set. Then executes script associated with root context. (Use system.setScript to set this script.)
References decodeResetArg(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), and Sirikata::JS::JSSystemStruct::struct_reset().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_restorePresence | ( | const v8::Arguments & | args | ) |
{string} | sporef, |
{vec3} | pos, |
{vec3} | vel, |
{string} | posTime, |
{quaternion} | orient, |
{quaternion} | orientVel, |
{string} | orientTime, |
{string} | mesh, |
{string} | physics, |
{number} | scale, |
{boolean} | isCleared , |
{uint32} | contextId, |
{boolean} | isConnected, |
{function,null} | connectedCallback, |
{boolean} | isSuspended, |
{vec3,optional} | suspendedVelocity, |
{quaternion,optional} | suspendedOrientationVelocity, |
{float} | solidAngleQuery |
References Sirikata::JS::decodeBool(), Sirikata::JS::decodeSporef(), Sirikata::JS::decodeString(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), Sirikata::JS::decodeUint32(), INLINE_TIME_CONV_ERROR, Sirikata::JS::JSTimer::isSuspended(), Sirikata::JS::NumericExtract(), Sirikata::JS::NumericValidate(), Sirikata::JS::QuaternionValExtract(), Sirikata::JS::QuaternionValValidate(), Sirikata::JS::JSSystemStruct::restorePresence(), Sirikata::Nullable< nullable >::setValue(), V8_EXCEPTION_CSTR, Sirikata::JS::Vec3ValExtract(), Sirikata::JS::Vec3ValExtractF(), and Sirikata::JS::Vec3ValValidate().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_sendHome | ( | const v8::Arguments & | args | ) |
A | message object. |
Tries to send argument to writer of code in this sandbox (external presence) from the internal presence that this sandbox is associated with. Calling from root sandbox, or calling on a sandbox for which you do not have capabilities to query for position throws an exception.
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), Sirikata::JS::JSSerializer::serializeObject(), and Sirikata::JS::JSSystemStruct::struct_sendHome().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_sendSandbox | ( | const v8::Arguments & | args | ) |
First argument should contain a message object that will be serialized and sent to another sandbox on same entity.
Second argument should either be == null (send to parent), or should contain a sandbox object.
References INLINE_CONTEXT_CONV_ERROR, INLINE_SYSTEM_CONV_ERROR, Sirikata::JS::JSSerializer::serializeMessage(), and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_serialize | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_setScript | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::root_timeout | ( | const v8::Arguments & | args | ) |
time | number of seconds to wait before executing the callback |
callback | The function to invoke once "time" number of seconds have passed |
{Reserved} | uint32 contextId |
{Reserved} | double timeRemaining |
{Reserved} | bool isSuspended |
{Reserved} | bool isCleared |
timeout sets a timer. When the number of seconds specified by arg 1 have elapsed, executes function specified by arg2.
References Sirikata::JS::JSSystemStruct::decodeSystemStruct(), Sirikata::JS::JSTimer::isSuspended(), and Sirikata::JS::JSSystemStruct::struct_createTimeout().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::sendMessage | ( | const v8::Arguments & | args, |
bool | reliable | ||
) |
References Sirikata::JS::decodeJSPosListener(), Sirikata::JS::JSPresenceStruct::decodePresenceStruct(), Sirikata::JS::JSSystemStruct::decodeSystemStruct(), Sirikata::JS::JSSystemStruct::sendMessageNoErrorHandler(), and Sirikata::JS::JSSerializer::serializeMessage().
Referenced by Sirikata::JS::JSContextStruct::sendMessageNoErrorHandler(), sendMessageReliable(), and sendMessageUnreliable().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::sendMessageReliable | ( | const v8::Arguments & | args | ) |
Which | presence to send from. |
Message | value to send. |
Visible | to send to. |
(Optional) | Error handler function. |
Sends a message to the presence associated with this visible object from the presence that can see this visible object.
References sendMessage().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::sendMessageUnreliable | ( | const v8::Arguments & | args | ) |
References sendMessage().
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::setPresenceMessageCallback | ( | const v8::Arguments & | args | ) |
References INLINE_SYSTEM_CONV_ERROR, and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::setRestoreScript | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::setSandboxMessageCallback | ( | const v8::Arguments & | args | ) |
References INLINE_SYSTEM_CONV_ERROR, and V8_EXCEPTION_CSTR.
Referenced by Sirikata::JS::JSObjectScriptManager::createSystemTemplate().
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageBeginTransaction | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageCommit | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageCount | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageErase | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageRangeErase | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageRangeRead | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageRead | ( | const v8::Arguments & | args | ) |
v8::Handle< v8::Value > Sirikata::JS::JSSystem::storageWrite | ( | const v8::Arguments & | args | ) |