| 368 |
SendGenericMessage("RexWaterHeight", pack); |
SendGenericMessage("RexWaterHeight", pack); |
| 369 |
} |
} |
| 370 |
|
|
| 371 |
internal void SendRexPostProcess(int vEffectId, bool vbToggle) |
/// <summary> |
| 372 |
{ |
/// Sends post postprosessing effect toggle to client. |
| 373 |
throw new System.NotImplementedException(); |
/// </summary> |
| 374 |
} |
/// <see cref="http://rexdeveloper.org/wiki/index.php?title=Content_Scripting_Python_Post-Process"/> |
| 375 |
|
/// <param name="effectId">Id of the effect. See documentation for the effect ids</param> |
| 376 |
internal void SendRexRttCamera(int command, string name, UUID uUID, Vector3 pos, Vector3 lookat, int width, int height) |
/// <param name="toggle">True to set effect on. False to set effect off.</param> |
| 377 |
{ |
public void SendRexPostProcess(int effectId, bool toggle) |
| 378 |
throw new System.NotImplementedException(); |
{ |
| 379 |
} |
List<string> pack = new List<string>(); |
| 380 |
|
|
| 381 |
|
pack.Add(effectId.ToString()); |
| 382 |
|
pack.Add(toggle.ToString()); |
| 383 |
|
|
| 384 |
|
SendGenericMessage("RexPostP", pack); |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
/// <summary> |
| 388 |
|
/// Creates client side rtt camera |
| 389 |
|
/// </summary> |
| 390 |
|
/// <param name="command">0 to remove existing rtt camera (by name), 1 to add new rtt camera</param> |
| 391 |
|
/// <param name="name">Unique identifier for the camera</param> |
| 392 |
|
/// <param name="assetId">UUID of the texture that gets rendered to</param> |
| 393 |
|
/// <param name="pos">Position of the camera in the world</param> |
| 394 |
|
/// <param name="lookat">Point in the world the camera will look at</param> |
| 395 |
|
/// <param name="width">Width of the texture</param> |
| 396 |
|
/// <param name="height">Height of the texture</param> |
| 397 |
|
public void SendRexRttCamera(int command, string name, UUID assetId, Vector3 pos, Vector3 lookat, int width, int height) |
| 398 |
|
{ |
| 399 |
|
List<string> pack = new List<string>(); |
| 400 |
|
|
| 401 |
|
pack.Add(command.ToString()); |
| 402 |
|
pack.Add(name); |
| 403 |
|
pack.Add(assetId.ToString()); |
| 404 |
|
pack.Add(pos.ToString()); |
| 405 |
|
pack.Add(lookat.ToString()); |
| 406 |
|
pack.Add(width.ToString()); |
| 407 |
|
pack.Add(height.ToString()); |
| 408 |
|
|
| 409 |
|
SendGenericMessage("RexRttCam", pack); |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
/// <summary> |
| 413 |
|
/// Sends a viewport to client |
| 414 |
|
/// </summary> |
| 415 |
|
/// <param name="command">0 to remove existing viewport (by name), 1 to add new viewport.</param> |
| 416 |
|
/// <param name="name">Unique identifier for the viewport</param> |
| 417 |
|
/// <param name="posX">screen relative position of the left edge of the viewport</param> |
| 418 |
|
/// <param name="posY">screen relative position of the top edge of the viewport</param> |
| 419 |
|
/// <param name="width">screen relative width of the viewport</param> |
| 420 |
|
/// <param name="height">screen relative height of the viewport</param> |
| 421 |
|
public void SendRexViewport(int command, string name, float posX, float posY, float width, float height) |
| 422 |
|
{ |
| 423 |
|
List<string> pack = new List<string>(); |
| 424 |
|
|
| 425 |
|
pack.Add(command.ToString()); |
| 426 |
|
pack.Add(name); |
| 427 |
|
pack.Add(posX.ToString()); |
| 428 |
|
pack.Add(posY.ToString()); |
| 429 |
|
pack.Add(width.ToString()); |
| 430 |
|
pack.Add(height.ToString()); |
| 431 |
|
|
| 432 |
|
SendGenericMessage("RexSetViewport", pack); |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
/// <summary> |
| 436 |
|
/// Toggles the wind sound on client |
| 437 |
|
/// </summary> |
| 438 |
|
/// <param name="toggle"></param> |
| 439 |
|
public void SendRexToggleWindSound(bool toggle) |
| 440 |
|
{ |
| 441 |
|
List<string> pack = new List<string>(); |
| 442 |
|
|
| 443 |
|
pack.Add(toggle.ToString()); |
| 444 |
|
|
| 445 |
|
SendGenericMessage("RexToggleWindSound", pack); |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
/// <summary> |
| 449 |
|
/// Sends Rex clientside camera effects, particle script attached to camera etc. |
| 450 |
|
/// </summary> |
| 451 |
|
/// <param name="enable">True to enable the effect, False to disable</param> |
| 452 |
|
/// <param name="assetId">Id of the effect</param> |
| 453 |
|
/// <param name="pos">Offset position from the camera</param> |
| 454 |
|
/// <param name="rot">Offset rotation from the camera</param> |
| 455 |
|
public void SendRexCameraClientSideEffect(bool enable, UUID assetId, Vector3 pos, Quaternion rot) |
| 456 |
|
{ |
| 457 |
|
List<string> pack = new List<string>(); |
| 458 |
|
|
| 459 |
|
pack.Add(assetId.ToString()); |
| 460 |
|
pack.Add(pos.ToString()); |
| 461 |
|
pack.Add(rot.ToString()); |
| 462 |
|
pack.Add(enable.ToString()); |
| 463 |
|
|
| 464 |
|
SendGenericMessage("RexSCSEffect", pack); |
| 465 |
|
} |
| 466 |
|
|
| 467 |
|
/// <summary> |
| 468 |
|
/// Overrides default lighting conditions and ambient light in the world. |
| 469 |
|
/// |
| 470 |
|
/// Note that this override is a hard one. The user will be unable to change the lighting |
| 471 |
|
/// conditions in any way after they are overridden. |
| 472 |
|
/// </summary> |
| 473 |
|
/// <param name="direction">Direction of the global light (sun)</param> |
| 474 |
|
/// <param name="colour">Colour of the global light</param> |
| 475 |
|
/// <param name="ambientColour">Colour of the ambient light (the light that is always present)</param> |
| 476 |
|
public void SendRexSetAmbientLight(Vector3 direction, Vector3 colour, Vector3 ambientColour) |
| 477 |
|
{ |
| 478 |
|
List<string> pack = new List<string>(); |
| 479 |
|
|
| 480 |
|
pack.Add(direction.ToString()); |
| 481 |
|
pack.Add(colour.ToString()); |
| 482 |
|
pack.Add(ambientColour.ToString()); |
| 483 |
|
|
| 484 |
|
SendGenericMessage("RexAmbientL", pack); |
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
/// <summary> |
| 488 |
|
/// Lauch flash animation to play on client |
| 489 |
|
/// </summary> |
| 490 |
|
/// <param name="assetId">Id of the flash animation (swf) to play</param> |
| 491 |
|
/// <param name="left">left border of the rectangle</param> |
| 492 |
|
/// <param name="top">top border of the rectangle</param> |
| 493 |
|
/// <param name="right">right border of the rectangle</param> |
| 494 |
|
/// <param name="bottom">bottom border of the rectangle</param> |
| 495 |
|
/// <param name="timeToDeath">time in seconds from start of animation playback until the flash control is destroyed</param> |
| 496 |
|
public void SendRexPlayFlashAnimation(UUID assetId, float left, float top, float right, float bottom, float timeToDeath) |
| 497 |
|
{ |
| 498 |
|
List<string> pack = new List<string>(); |
| 499 |
|
|
| 500 |
|
pack.Add(assetId.ToString()); |
| 501 |
|
pack.Add(left.ToString()); |
| 502 |
|
pack.Add(top.ToString()); |
| 503 |
|
pack.Add(right.ToString()); |
| 504 |
|
pack.Add(bottom.ToString()); |
| 505 |
|
pack.Add(timeToDeath.ToString()); |
| 506 |
|
|
| 507 |
internal void SendRexViewport(int command, string name, float vX, float vY, float vWidth, float vHeight) |
SendGenericMessage("RexFlashAnim", pack); |
|
{ |
|
|
throw new System.NotImplementedException(); |
|
|
} |
|
|
|
|
|
internal void SendRexToggleWindSound(bool vbToggle) |
|
|
{ |
|
|
throw new System.NotImplementedException(); |
|
|
} |
|
|
|
|
|
internal void SendRexCameraClientSideEffect(bool enable, UUID uUID, Vector3 pos, Quaternion rot) |
|
|
{ |
|
|
throw new System.NotImplementedException(); |
|
|
} |
|
|
|
|
|
internal void SendRexSetAmbientLight(Vector3 lightDir, Vector3 lightC, Vector3 ambientC) |
|
|
{ |
|
|
throw new System.NotImplementedException(); |
|
|
} |
|
|
|
|
|
internal void SendRexPlayFlashAnimation(UUID uUID, float left, float top, float right, float bottom, float timeToDeath) |
|
|
{ |
|
|
throw new System.NotImplementedException(); |
|
| 508 |
} |
} |
| 509 |
|
|
| 510 |
internal void SendRexPreloadAvatarAssets(List<string> vAssetsList) |
internal void SendRexPreloadAvatarAssets(List<string> vAssetsList) |