< Summary

Class:DCL.Interface.WebInterface
Assembly:WebInterface
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WebInterface/Interface.cs
Covered lines:239
Uncovered lines:97
Coverable lines:336
Total lines:1272
Line coverage:71.1% (239 of 336)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
WebInterface()0%110100%
StartStatefulMode(...)0%110100%
StopStatefulMode(...)0%110100%
SceneReady(...)0%110100%
ActivateRenderingACK()0%110100%
DeactivateRenderingACK()0%110100%
OnGlobalPointerEvent()0%2100%
StoreSceneStateEvent()0%110100%
operator+(...)0%2100%
OnMetricsUpdate()0%110100%
TransformPayload()0%2100%
SystemInfoReportPayload()0%110100%
JumpInPayload()0%2100%
Property(...)0%110100%
StartDecentraland()0%2100%
MessageFromEngine(...)0%5.125083.33%
ProcessQueuedMessages()0%330100%
GetGraphicCard()0%2100%
SendMessage(...)0%110100%
SendMessage[T](...)0%2.032080%
SendSceneEvent[T](...)0%110100%
SendAllScenesEvent[T](...)0%110100%
ReportPosition(...)0%110100%
ReportCameraChanged(...)0%110100%
ReportIdleStateChanged(...)0%110100%
ReportControlEvent[T](...)0%110100%
BuilderInWorldMessage(...)0%110100%
ReportOnClickEvent(...)0%2.032080%
ReportRaycastResult[T, P](...)0%2100%
ReportRaycastHitFirstResult(...)0%2100%
ReportRaycastHitAllResult(...)0%2100%
CreateHitObject(...)0%110100%
SetPointerEventPayload(...)0%2.092071.43%
ReportGlobalPointerDownEvent(...)0%110100%
ReportGlobalPointerUpEvent(...)0%110100%
ReportOnPointerDownEvent(...)0%2.012085.71%
ReportOnPointerUpEvent(...)0%2.012085.71%
ReportOnTextSubmitEvent(...)0%3.192033.33%
ReportOnTextInputChangedEvent(...)0%3.192033.33%
ReportOnFocusEvent(...)0%2.862040%
ReportOnBlurEvent(...)0%2.862040%
ReportOnScrollChange(...)0%220100%
ReportEvent[T](...)0%2100%
ReportOnMetricsUpdate(...)0%110100%
ReportOnEnterEvent(...)0%6200%
LogOut()0%2100%
RedirectToSignUp()0%2100%
PreloadFinished(...)0%2100%
ReportMousePosition(...)0%2100%
SendScreenshot(...)0%2100%
SetDelightedSurveyEnabled(...)0%110100%
SetScenesLoadRadius(...)0%110100%
RequestOwnProfileUpdate()0%110100%
SendSaveAvatar(...)0%110100%
SendAuthentication(...)0%2100%
SendPassport(...)0%110100%
SendSaveUserUnverifiedName(...)0%2100%
SendUserAcceptedCollectibles(...)0%110100%
SaveUserTutorialStep(...)0%110100%
SendPerformanceReport(...)0%2100%
SendSystemInfoReport()0%110100%
SendTermsOfServiceResponse(...)0%110100%
SendExpression(...)0%110100%
ReportMotdClicked()0%2100%
OpenURL(...)0%110100%
SendReportScene(...)0%2100%
SendReportPlayer(...)0%110100%
SendBlockPlayer(...)0%110100%
SendUnblockPlayer(...)0%2100%
RequestScenesInfoAroundParcel(...)0%2100%
SendAudioStreamEvent(...)0%110100%
SendSetVoiceChatRecording(...)0%2100%
ToggleVoiceChatRecording()0%2100%
ApplySettings(...)0%110100%
RequestGIFProcessor(...)0%2100%
DeleteGIF(...)0%2100%
GoTo(...)0%110100%
GoToCrowd()0%2100%
GoToMagic()0%2100%
JumpIn(...)0%110100%
SendChatMessage(...)0%110100%
UpdateFriendshipStatus(...)0%110100%
ScenesLoadingFeedback(...)0%110100%
FetchHotScenes()0%110100%
SetBaseResolution(...)0%110100%
ReportAnalyticsEvent(...)0%2100%
ReportAnalyticsEvent(...)0%110100%
FetchBalanceOfMANA()0%110100%
SendSceneExternalActionEvent(...)0%110100%
SetMuteUsers(...)0%2100%
SendCloseUserAvatar(...)0%2100%
KillPortableExperience(...)0%2100%
RequestWearables(...)0%110100%
SearchENSOwner(...)0%110100%
RequestUserProfile(...)0%110100%
ReportAvatarFatalError()0%110100%
UnpublishScene(...)0%110100%
NotifyStatusThroughChat(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WebInterface/Interface.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using DCL.Helpers;
 4using DCL.Models;
 5using UnityEngine;
 6using Ray = UnityEngine.Ray;
 7
 8#if UNITY_WEBGL && !UNITY_EDITOR
 9using System.Runtime.InteropServices;
 10#endif
 11
 12namespace DCL.Interface
 13{
 14    /**
 15     * This class contains the outgoing interface of Decentraland.
 16     * You must call those functions to interact with the WebInterface.
 17     *
 18     * The messages comming from the WebInterface instead, are reported directly to
 19     * the handler GameObject by name.
 20     */
 21    public static class WebInterface
 22    {
 123        public static bool VERBOSE = false;
 24        public static System.Action<string, string> OnMessageFromEngine;
 25
 26        [System.Serializable]
 27        private class ReportPositionPayload
 28        {
 29            /** Camera position, world space */
 30            public Vector3 position;
 31
 32            /** Camera rotation */
 33            public Quaternion rotation;
 34
 35            /** Camera height, relative to the feet of the avatar or ground */
 36            public float playerHeight;
 37
 38            public Vector3 mousePosition;
 39
 40            public string id;
 41        }
 42
 43        [System.Serializable]
 44        public abstract class ControlEvent
 45        {
 46            public string eventType;
 47        }
 48
 49        public abstract class ControlEvent<T> : ControlEvent
 50        {
 51            public T payload;
 52
 53            protected ControlEvent(string eventType, T payload)
 54            {
 55                this.eventType = eventType;
 56                this.payload = payload;
 57            }
 58        }
 59
 60        [System.Serializable]
 61        public class StartStatefulMode : ControlEvent<StartStatefulMode.Payload>
 62        {
 63            [System.Serializable]
 64            public class Payload
 65            {
 66                public string sceneId;
 67            }
 68
 1669            public StartStatefulMode(string sceneId) : base("StartStatefulMode", new Payload() { sceneId = sceneId }) { 
 70        }
 71
 72        [System.Serializable]
 73        public class StopStatefulMode : ControlEvent<StopStatefulMode.Payload>
 74        {
 75            [System.Serializable]
 76            public class Payload
 77            {
 78                public string sceneId;
 79            }
 80
 1081            public StopStatefulMode(string sceneId) : base("StopStatefulMode", new Payload() { sceneId = sceneId }) { }
 82        }
 83
 84        [System.Serializable]
 85        public class SceneReady : ControlEvent<SceneReady.Payload>
 86        {
 87            [System.Serializable]
 88            public class Payload
 89            {
 90                public string sceneId;
 91            }
 92
 135093            public SceneReady(string sceneId) : base("SceneReady", new Payload() { sceneId = sceneId }) { }
 94        }
 95
 96        [System.Serializable]
 97        public class ActivateRenderingACK : ControlEvent<object>
 98        {
 299            public ActivateRenderingACK() : base("ActivateRenderingACK", null) { }
 100        }
 101
 102        [System.Serializable]
 103        public class DeactivateRenderingACK : ControlEvent<object>
 104        {
 2105            public DeactivateRenderingACK() : base("DeactivateRenderingACK", null) { }
 106        }
 107
 108        [System.Serializable]
 109        public class SceneEvent<T>
 110        {
 111            public string sceneId;
 112            public string eventType;
 113            public T payload;
 114        }
 115
 116        [System.Serializable]
 117        public class AllScenesEvent<T>
 118        {
 119            public string eventType;
 120            public T payload;
 121        }
 122
 123        [System.Serializable]
 124        public class UUIDEvent<TPayload>
 125            where TPayload : class, new()
 126        {
 127            public string uuid;
 128            public TPayload payload = new TPayload();
 129        }
 130
 131        public enum ACTION_BUTTON
 132        {
 133            POINTER,
 134            PRIMARY,
 135            SECONDARY,
 136            ANY
 137        }
 138
 139        [System.Serializable]
 140        public class OnClickEvent : UUIDEvent<OnClickEventPayload> { };
 141
 142        [System.Serializable]
 143        public class CameraModePayload
 144        {
 145            public CameraMode.ModeId cameraMode;
 146        };
 147
 148        [System.Serializable]
 149        public class IdleStateChangedPayload
 150        {
 151            public bool isIdle;
 152        };
 153
 154        [System.Serializable]
 155        public class OnPointerDownEvent : UUIDEvent<OnPointerEventPayload> { };
 156
 157        [System.Serializable]
 158        public class OnGlobalPointerEvent
 159        {
 0160            public OnGlobalPointerEventPayload payload = new OnGlobalPointerEventPayload();
 161        };
 162
 163        [System.Serializable]
 164        public class OnPointerUpEvent : UUIDEvent<OnPointerEventPayload> { };
 165
 166        [System.Serializable]
 167        private class OnTextSubmitEvent : UUIDEvent<OnTextSubmitEventPayload> { };
 168
 169        [System.Serializable]
 170        private class OnTextInputChangeEvent : UUIDEvent<OnTextInputChangeEventPayload> { };
 171
 172        [System.Serializable]
 173        private class OnScrollChangeEvent : UUIDEvent<OnScrollChangeEventPayload> { };
 174
 175        [System.Serializable]
 176        private class OnFocusEvent : UUIDEvent<EmptyPayload> { };
 177
 178        [System.Serializable]
 179        private class OnBlurEvent : UUIDEvent<EmptyPayload> { };
 180
 181        [System.Serializable]
 182        public class OnEnterEvent : UUIDEvent<OnEnterEventPayload> { };
 183
 184        [System.Serializable]
 185        public class OnClickEventPayload
 186        {
 187            public ACTION_BUTTON buttonId = ACTION_BUTTON.POINTER;
 188        }
 189
 190        [System.Serializable]
 191        public class SendChatMessageEvent
 192        {
 193            public ChatMessage message;
 194        }
 195
 196        [System.Serializable]
 197        public class RemoveEntityComponentsPayLoad
 198        {
 199            public string entityId;
 200            public string componentId;
 201        };
 202
 203        [System.Serializable]
 204        public class StoreSceneStateEvent
 205        {
 1206            public string type = "StoreSceneState";
 1207            public string payload = "";
 208        };
 209
 210        [System.Serializable]
 211        public class OnPointerEventPayload
 212        {
 213            [System.Serializable]
 214            public class Hit
 215            {
 216                public Vector3 origin;
 217                public float length;
 218                public Vector3 hitPoint;
 219                public Vector3 normal;
 220                public Vector3 worldNormal;
 221                public string meshName;
 222                public string entityId;
 223            }
 224
 225            public ACTION_BUTTON buttonId;
 226            public Vector3 origin;
 227            public Vector3 direction;
 228            public Hit hit;
 229        }
 230
 231        [System.Serializable]
 232        public class OnGlobalPointerEventPayload : OnPointerEventPayload
 233        {
 234            public enum InputEventType
 235            {
 236                DOWN,
 237                UP
 238            }
 239
 240            public InputEventType type;
 241        }
 242
 243        [System.Serializable]
 244        public class OnTextSubmitEventPayload
 245        {
 246            public string id;
 247            public string text;
 248        }
 249
 250        [System.Serializable]
 251        public class OnTextInputChangeEventPayload
 252        {
 253            public string value;
 254        }
 255
 256        [System.Serializable]
 257        public class OnScrollChangeEventPayload
 258        {
 259            public Vector2 value;
 260            public int pointerId;
 261        }
 262
 263        [System.Serializable]
 264        public class EmptyPayload { }
 265
 266        [System.Serializable]
 267        public class MetricsModel
 268        {
 269            public int meshes;
 270            public int bodies;
 271            public int materials;
 272            public int textures;
 273            public int triangles;
 274            public int entities;
 275
 276            public static MetricsModel operator + (MetricsModel lhs, MetricsModel rhs)
 277            {
 0278                return new MetricsModel()
 279                {
 280                    meshes = lhs.meshes + rhs.meshes,
 281                    bodies = lhs.bodies + rhs.bodies,
 282                    materials = lhs.materials + rhs.materials,
 283                    textures = lhs.textures + rhs.textures,
 284                    triangles = lhs.triangles + rhs.triangles,
 285                    entities = lhs.entities + rhs.entities
 286                };
 287            }
 288        }
 289
 290        [System.Serializable]
 291        private class OnMetricsUpdate
 292        {
 1293            public MetricsModel given = new MetricsModel();
 1294            public MetricsModel limit = new MetricsModel();
 295        }
 296
 297        [System.Serializable]
 298        public class OnEnterEventPayload { }
 299
 300        [System.Serializable]
 301        public class TransformPayload
 302        {
 0303            public Vector3 position = Vector3.zero;
 0304            public Quaternion rotation = Quaternion.identity;
 0305            public Vector3 scale = Vector3.one;
 306        }
 307
 308        public class OnSendScreenshot
 309        {
 310            public string id;
 311            public string encodedTexture;
 312        };
 313
 314        [System.Serializable]
 315        public class GotoEvent
 316        {
 317            public int x;
 318            public int y;
 319        };
 320
 321        [System.Serializable]
 322        public class BaseResolution
 323        {
 324            public int baseResolution;
 325        };
 326
 327        //-----------------------------------------------------
 328        // Raycast
 329        [System.Serializable]
 330        public class RayInfo
 331        {
 332            public Vector3 origin;
 333            public Vector3 direction;
 334            public float distance;
 335        }
 336
 337        [System.Serializable]
 338        public class RaycastHitInfo
 339        {
 340            public bool didHit;
 341            public RayInfo ray;
 342
 343            public Vector3 hitPoint;
 344            public Vector3 hitNormal;
 345        }
 346
 347        [System.Serializable]
 348        public class HitEntityInfo
 349        {
 350            public string entityId;
 351            public string meshName;
 352        }
 353
 354        [System.Serializable]
 355        public class RaycastHitEntity : RaycastHitInfo
 356        {
 357            public HitEntityInfo entity;
 358        }
 359
 360        [System.Serializable]
 361        public class RaycastHitEntities : RaycastHitInfo
 362        {
 363            public RaycastHitEntity[] entities;
 364        }
 365
 366        [System.Serializable]
 367        public class RaycastResponse<T> where T : RaycastHitInfo
 368        {
 369            public string queryId;
 370            public string queryType;
 371            public T payload;
 372        }
 373
 374        // Note (Zak): We need to explicitly define this classes for the JsonUtility to
 375        // be able to serialize them
 376        [System.Serializable]
 377        public class RaycastHitFirstResponse : RaycastResponse<RaycastHitEntity> { }
 378
 379        [System.Serializable]
 380        public class RaycastHitAllResponse : RaycastResponse<RaycastHitEntities> { }
 381
 382        [System.Serializable]
 383        public class SendExpressionPayload
 384        {
 385            public string id;
 386            public long timestamp;
 387        }
 388
 389        [System.Serializable]
 390        public class UserAcceptedCollectiblesPayload
 391        {
 392            public string id;
 393        }
 394
 395        [System.Serializable]
 396        public class SendBlockPlayerPayload
 397        {
 398            public string userId;
 399        }
 400
 401        [System.Serializable]
 402        public class SendUnblockPlayerPayload
 403        {
 404            public string userId;
 405        }
 406
 407        [System.Serializable]
 408        public class TutorialStepPayload
 409        {
 410            public int tutorialStep;
 411        }
 412
 413        [System.Serializable]
 414        public class PerformanceReportPayload
 415        {
 416            public string samples;
 417            public bool fpsIsCapped;
 418            public int hiccupsInThousandFrames;
 419            public float hiccupsTime;
 420            public float totalTime;
 421        }
 422
 423        [System.Serializable]
 424        public class SystemInfoReportPayload
 425        {
 123426            public string graphicsDeviceName = SystemInfo.graphicsDeviceName;
 123427            public string graphicsDeviceVersion = SystemInfo.graphicsDeviceVersion;
 123428            public int graphicsMemorySize = SystemInfo.graphicsMemorySize;
 123429            public string processorType = SystemInfo.processorType;
 123430            public int processorCount = SystemInfo.processorCount;
 123431            public int systemMemorySize = SystemInfo.systemMemorySize;
 432        }
 433
 434        [System.Serializable]
 435        public class GenericAnalyticPayload
 436        {
 437            public string eventName;
 438            public Dictionary<object, object> data;
 439        }
 440
 441        [System.Serializable]
 442        public class PerformanceHiccupPayload
 443        {
 444            public int hiccupsInThousandFrames;
 445            public float hiccupsTime;
 446            public float totalTime;
 447        }
 448
 449        [System.Serializable]
 450        public class TermsOfServiceResponsePayload
 451        {
 452            public string sceneId;
 453            public bool dontShowAgain;
 454            public bool accepted;
 455        }
 456
 457        [System.Serializable]
 458        public class OpenURLPayload
 459        {
 460            public string url;
 461        }
 462
 463        [System.Serializable]
 464        public class GIFSetupPayload
 465        {
 466            public string imageSource;
 467            public string id;
 468            public bool isWebGL1;
 469        }
 470
 471        [System.Serializable]
 472        public class RequestScenesInfoAroundParcelPayload
 473        {
 474            public Vector2 parcel;
 475            public int scenesAround;
 476        }
 477
 478        [System.Serializable]
 479        public class AudioStreamingPayload
 480        {
 481            public string url;
 482            public bool play;
 483            public float volume;
 484        }
 485
 486        [System.Serializable]
 487        public class SetScenesLoadRadiusPayload
 488        {
 489            public float newRadius;
 490        }
 491
 492        [System.Serializable]
 493        public class SetVoiceChatRecordingPayload
 494        {
 495            public bool recording;
 496        }
 497
 498        [System.Serializable]
 499        public class ApplySettingsPayload
 500        {
 501            public float voiceChatVolume;
 502            public int voiceChatAllowCategory;
 503        }
 504
 505        [System.Serializable]
 506        public class JumpInPayload
 507        {
 0508            public FriendsController.UserStatus.Realm realm = new FriendsController.UserStatus.Realm();
 509            public Vector2 gridPosition;
 510        }
 511
 512        [System.Serializable]
 513        public class LoadingFeedbackMessage
 514        {
 515            public string message;
 516            public int loadPercentage;
 517        }
 518
 519        [System.Serializable]
 520        public class AnalyticsPayload
 521        {
 522            [System.Serializable]
 523            public class Property
 524            {
 525                public string key;
 526                public string value;
 527
 207528                public Property(string key, string value)
 529                {
 207530                    this.key = key;
 207531                    this.value = value;
 207532                }
 533            }
 534
 535            public string name;
 536            public Property[] properties;
 537        }
 538
 539        [System.Serializable]
 540        public class DelightedSurveyEnabledPayload
 541        {
 542            public bool enabled;
 543        }
 544
 545        [System.Serializable]
 546        public class ExternalActionSceneEventPayload
 547        {
 548            public string type;
 549            public string payload;
 550        }
 551
 552        [System.Serializable]
 553        public class MuteUserPayload
 554        {
 555            public string[] usersId;
 556            public bool mute;
 557        }
 558
 559        [System.Serializable]
 560        public class CloseUserAvatarPayload
 561        {
 562            public bool isSignUpFlow;
 563        }
 564
 565        [System.Serializable]
 566        public class StringPayload
 567        {
 568            public string value;
 569        }
 570
 571        [System.Serializable]
 572        public class KillPortableExperiencePayload
 573        {
 574            public string portableExperienceId;
 575        }
 576
 577        [System.Serializable]
 578        public class WearablesRequestFiltersPayload
 579        {
 580            public string ownedByUser;
 581            public string[] wearableIds;
 582            public string[] collectionIds;
 583        }
 584
 585        [System.Serializable]
 586        public class RequestWearablesPayload
 587        {
 588            public WearablesRequestFiltersPayload filters;
 589            public string context;
 590        }
 591
 592        [System.Serializable]
 593        public class SearchENSOwnerPayload
 594        {
 595            public string name;
 596            public int maxResults;
 597        }
 598
 599        [System.Serializable]
 600        public class UnpublishScenePayload
 601        {
 602            public string coordinates;
 603        }
 604
 605#if UNITY_WEBGL && !UNITY_EDITOR
 606    /**
 607     * This method is called after the first render. It marks the loading of the
 608     * rest of the JS client.
 609     */
 610    [DllImport("__Internal")] public static extern void StartDecentraland();
 611    [DllImport("__Internal")] public static extern void MessageFromEngine(string type, string message);
 612    [DllImport("__Internal")] public static extern string GetGraphicCard();
 613#else
 1614        private static bool hasQueuedMessages = false;
 1615        private static List<(string, string)> queuedMessages = new List<(string, string)>();
 0616        public static void StartDecentraland() {}
 617        public static void MessageFromEngine(string type, string message)
 618        {
 5584619            if (OnMessageFromEngine != null)
 620            {
 2819621                if (hasQueuedMessages)
 622                {
 27623                    ProcessQueuedMessages();
 624                }
 2819625                OnMessageFromEngine.Invoke(type, message);
 2819626                if (VERBOSE)
 627                {
 0628                    Debug.Log("MessageFromEngine called with: " + type + ", " + message);
 629                }
 0630            }
 631            else
 632            {
 2765633                lock (queuedMessages)
 634                {
 2765635                    queuedMessages.Add((type, message));
 2765636                }
 2765637                hasQueuedMessages = true;
 638            }
 5584639        }
 640
 641        private static void ProcessQueuedMessages()
 642        {
 27643            hasQueuedMessages = false;
 27644            lock (queuedMessages)
 645            {
 5580646                foreach((string type, string payload) in queuedMessages)
 647                {
 2763648                    MessageFromEngine(type, payload);
 649                }
 27650                queuedMessages.Clear();
 27651            }
 27652        }
 653
 0654        public static string GetGraphicCard() => "In Editor Graphic Card";
 655#endif
 656
 657        public static void SendMessage(string type)
 658        {
 659            // sending an empty JSON object to be compatible with other messages
 40660            MessageFromEngine(type, "{}");
 40661        }
 662
 663        public static void SendMessage<T>(string type, T message)
 664        {
 2776665            string messageJson = JsonUtility.ToJson(message);
 666
 2776667            if (VERBOSE)
 668            {
 0669                Debug.Log($"Sending message: " + messageJson);
 670            }
 671
 2776672            MessageFromEngine(type, messageJson);
 2776673        }
 674
 1675        private static ReportPositionPayload positionPayload = new ReportPositionPayload();
 1676        private static CameraModePayload cameraModePayload = new CameraModePayload();
 1677        private static IdleStateChangedPayload idleStateChangedPayload = new IdleStateChangedPayload();
 1678        private static OnMetricsUpdate onMetricsUpdate = new OnMetricsUpdate();
 1679        private static OnClickEvent onClickEvent = new OnClickEvent();
 1680        private static OnPointerDownEvent onPointerDownEvent = new OnPointerDownEvent();
 1681        private static OnPointerUpEvent onPointerUpEvent = new OnPointerUpEvent();
 1682        private static OnTextSubmitEvent onTextSubmitEvent = new OnTextSubmitEvent();
 1683        private static OnTextInputChangeEvent onTextInputChangeEvent = new OnTextInputChangeEvent();
 1684        private static OnScrollChangeEvent onScrollChangeEvent = new OnScrollChangeEvent();
 1685        private static OnFocusEvent onFocusEvent = new OnFocusEvent();
 1686        private static OnBlurEvent onBlurEvent = new OnBlurEvent();
 1687        private static OnEnterEvent onEnterEvent = new OnEnterEvent();
 1688        private static OnSendScreenshot onSendScreenshot = new OnSendScreenshot();
 1689        private static OnPointerEventPayload onPointerEventPayload = new OnPointerEventPayload();
 1690        private static OnGlobalPointerEventPayload onGlobalPointerEventPayload = new OnGlobalPointerEventPayload();
 1691        private static OnGlobalPointerEvent onGlobalPointerEvent = new OnGlobalPointerEvent();
 1692        private static AudioStreamingPayload onAudioStreamingEvent = new AudioStreamingPayload();
 1693        private static SetVoiceChatRecordingPayload setVoiceChatRecordingPayload = new SetVoiceChatRecordingPayload();
 1694        private static SetScenesLoadRadiusPayload setScenesLoadRadiusPayload = new SetScenesLoadRadiusPayload();
 1695        private static ApplySettingsPayload applySettingsPayload = new ApplySettingsPayload();
 1696        private static GIFSetupPayload gifSetupPayload = new GIFSetupPayload();
 1697        private static JumpInPayload jumpInPayload = new JumpInPayload();
 1698        private static GotoEvent gotoEvent = new GotoEvent();
 1699        private static SendChatMessageEvent sendChatMessageEvent = new SendChatMessageEvent();
 1700        private static BaseResolution baseResEvent = new BaseResolution();
 1701        private static AnalyticsPayload analyticsEvent = new AnalyticsPayload();
 1702        private static DelightedSurveyEnabledPayload delightedSurveyEnabled = new DelightedSurveyEnabledPayload();
 1703        private static ExternalActionSceneEventPayload sceneExternalActionEvent = new ExternalActionSceneEventPayload();
 1704        private static MuteUserPayload muteUserEvent = new MuteUserPayload();
 1705        private static StoreSceneStateEvent storeSceneState = new StoreSceneStateEvent();
 1706        private static CloseUserAvatarPayload closeUserAvatarPayload = new CloseUserAvatarPayload();
 1707        private static StringPayload stringPayload = new StringPayload();
 1708        private static KillPortableExperiencePayload killPortableExperiencePayload = new KillPortableExperiencePayload()
 1709        private static RequestWearablesPayload requestWearablesPayload = new RequestWearablesPayload();
 1710        private static SearchENSOwnerPayload searchEnsOwnerPayload = new SearchENSOwnerPayload();
 711
 712        public static void SendSceneEvent<T>(string sceneId, string eventType, T payload)
 713        {
 358714            SceneEvent<T> sceneEvent = new SceneEvent<T>();
 358715            sceneEvent.sceneId = sceneId;
 358716            sceneEvent.eventType = eventType;
 358717            sceneEvent.payload = payload;
 718
 358719            SendMessage("SceneEvent", sceneEvent);
 358720        }
 721
 722        private static void SendAllScenesEvent<T>(string eventType, T payload)
 723        {
 633724            AllScenesEvent<T> allScenesEvent = new AllScenesEvent<T>();
 633725            allScenesEvent.eventType = eventType;
 633726            allScenesEvent.payload = payload;
 727
 633728            SendMessage("AllScenesEvent", allScenesEvent);
 633729        }
 730
 731        public static void ReportPosition(Vector3 position, Quaternion rotation, float playerHeight)
 732        {
 588733            positionPayload.position = position;
 588734            positionPayload.rotation = rotation;
 588735            positionPayload.playerHeight = playerHeight;
 736
 588737            SendMessage("ReportPosition", positionPayload);
 588738        }
 739
 740        public static void ReportCameraChanged(CameraMode.ModeId cameraMode)
 741        {
 206742            cameraModePayload.cameraMode = cameraMode;
 206743            SendAllScenesEvent("cameraModeChanged", cameraModePayload);
 206744        }
 745
 746        public static void ReportIdleStateChanged(bool isIdle)
 747        {
 427748            idleStateChangedPayload.isIdle = isIdle;
 427749            SendAllScenesEvent("idleStateChanged", idleStateChangedPayload);
 427750        }
 751
 1380752        public static void ReportControlEvent<T>(T controlEvent) where T : ControlEvent { SendMessage("ControlEvent", co
 753
 10754        public static void BuilderInWorldMessage(string type, string message) { MessageFromEngine(type, message); }
 755
 756        public static void ReportOnClickEvent(string sceneId, string uuid)
 757        {
 7758            if (string.IsNullOrEmpty(uuid))
 759            {
 0760                return;
 761            }
 762
 7763            onClickEvent.uuid = uuid;
 764
 7765            SendSceneEvent(sceneId, "uuidEvent", onClickEvent);
 7766        }
 767
 768        private static void ReportRaycastResult<T, P>(string sceneId, string queryId, string queryType, P payload) where
 769        {
 0770            T response = new T();
 0771            response.queryId = queryId;
 0772            response.queryType = queryType;
 0773            response.payload = payload;
 774
 0775            SendSceneEvent<T>(sceneId, "raycastResponse", response);
 0776        }
 777
 0778        public static void ReportRaycastHitFirstResult(string sceneId, string queryId, RaycastType raycastType, RaycastH
 779
 0780        public static void ReportRaycastHitAllResult(string sceneId, string queryId, RaycastType raycastType, RaycastHit
 781
 782        private static OnPointerEventPayload.Hit CreateHitObject(string entityId, string meshName, Vector3 point, Vector
 783        {
 20784            OnPointerEventPayload.Hit hit = new OnPointerEventPayload.Hit();
 785
 20786            hit.hitPoint = point;
 20787            hit.length = distance;
 20788            hit.normal = normal;
 20789            hit.worldNormal = normal;
 20790            hit.meshName = meshName;
 20791            hit.entityId = entityId;
 792
 20793            return hit;
 794        }
 795
 796        private static void SetPointerEventPayload(OnPointerEventPayload pointerEventPayload, ACTION_BUTTON buttonId, st
 797        {
 20798            pointerEventPayload.origin = ray.origin;
 20799            pointerEventPayload.direction = ray.direction;
 20800            pointerEventPayload.buttonId = buttonId;
 801
 20802            if (isHitInfoValid)
 20803                pointerEventPayload.hit = CreateHitObject(entityId, meshName, point, normal, distance);
 804            else
 0805                pointerEventPayload.hit = null;
 0806        }
 807
 808        public static void ReportGlobalPointerDownEvent(ACTION_BUTTON buttonId, Ray ray, Vector3 point, Vector3 normal, 
 809        {
 11810            SetPointerEventPayload((OnPointerEventPayload) onGlobalPointerEventPayload, buttonId, entityId, meshName, ra
 11811            onGlobalPointerEventPayload.type = OnGlobalPointerEventPayload.InputEventType.DOWN;
 812
 11813            onGlobalPointerEvent.payload = onGlobalPointerEventPayload;
 814
 11815            SendSceneEvent(sceneId, "pointerEvent", onGlobalPointerEvent);
 11816        }
 817
 818        public static void ReportGlobalPointerUpEvent(ACTION_BUTTON buttonId, Ray ray, Vector3 point, Vector3 normal, fl
 819        {
 3820            SetPointerEventPayload((OnPointerEventPayload) onGlobalPointerEventPayload, buttonId, entityId, meshName, ra
 3821            onGlobalPointerEventPayload.type = OnGlobalPointerEventPayload.InputEventType.UP;
 822
 3823            onGlobalPointerEvent.payload = onGlobalPointerEventPayload;
 824
 3825            SendSceneEvent(sceneId, "pointerEvent", onGlobalPointerEvent);
 3826        }
 827
 828        public static void ReportOnPointerDownEvent(ACTION_BUTTON buttonId, string sceneId, string uuid, string entityId
 829        {
 4830            if (string.IsNullOrEmpty(uuid))
 831            {
 0832                return;
 833            }
 834
 4835            onPointerDownEvent.uuid = uuid;
 4836            SetPointerEventPayload(onPointerEventPayload, buttonId, entityId, meshName, ray, point, normal, distance, is
 4837            onPointerDownEvent.payload = onPointerEventPayload;
 838
 4839            SendSceneEvent(sceneId, "uuidEvent", onPointerDownEvent);
 4840        }
 841
 842        public static void ReportOnPointerUpEvent(ACTION_BUTTON buttonId, string sceneId, string uuid, string entityId, 
 843        {
 2844            if (string.IsNullOrEmpty(uuid))
 845            {
 0846                return;
 847            }
 848
 2849            onPointerUpEvent.uuid = uuid;
 2850            SetPointerEventPayload(onPointerEventPayload, buttonId, entityId, meshName, ray, point, normal, distance, is
 2851            onPointerUpEvent.payload = onPointerEventPayload;
 852
 2853            SendSceneEvent(sceneId, "uuidEvent", onPointerUpEvent);
 2854        }
 855
 856        public static void ReportOnTextSubmitEvent(string sceneId, string uuid, string text)
 857        {
 1858            if (string.IsNullOrEmpty(uuid))
 859            {
 1860                return;
 861            }
 862
 0863            onTextSubmitEvent.uuid = uuid;
 0864            onTextSubmitEvent.payload.text = text;
 865
 0866            SendSceneEvent(sceneId, "uuidEvent", onTextSubmitEvent);
 0867        }
 868
 869        public static void ReportOnTextInputChangedEvent(string sceneId, string uuid, string text)
 870        {
 17871            if (string.IsNullOrEmpty(uuid))
 872            {
 17873                return;
 874            }
 875
 0876            onTextInputChangeEvent.uuid = uuid;
 0877            onTextInputChangeEvent.payload.value = text;
 878
 0879            SendSceneEvent(sceneId, "uuidEvent", onTextInputChangeEvent);
 0880        }
 881
 882        public static void ReportOnFocusEvent(string sceneId, string uuid)
 883        {
 3884            if (string.IsNullOrEmpty(uuid))
 885            {
 3886                return;
 887            }
 888
 0889            onFocusEvent.uuid = uuid;
 0890            SendSceneEvent(sceneId, "uuidEvent", onFocusEvent);
 0891        }
 892
 893        public static void ReportOnBlurEvent(string sceneId, string uuid)
 894        {
 1895            if (string.IsNullOrEmpty(uuid))
 896            {
 1897                return;
 898            }
 899
 0900            onBlurEvent.uuid = uuid;
 0901            SendSceneEvent(sceneId, "uuidEvent", onBlurEvent);
 0902        }
 903
 904        public static void ReportOnScrollChange(string sceneId, string uuid, Vector2 value, int pointerId)
 905        {
 15906            if (string.IsNullOrEmpty(uuid))
 907            {
 13908                return;
 909            }
 910
 2911            onScrollChangeEvent.uuid = uuid;
 2912            onScrollChangeEvent.payload.value = value;
 2913            onScrollChangeEvent.payload.pointerId = pointerId;
 914
 2915            SendSceneEvent(sceneId, "uuidEvent", onScrollChangeEvent);
 2916        }
 917
 0918        public static void ReportEvent<T>(string sceneId, T @event) { SendSceneEvent(sceneId, "uuidEvent", @event); }
 919
 920        public static void ReportOnMetricsUpdate(string sceneId, MetricsModel current,
 921            MetricsModel limit)
 922        {
 125923            onMetricsUpdate.given = current;
 125924            onMetricsUpdate.limit = limit;
 925
 125926            SendSceneEvent(sceneId, "metricsUpdate", onMetricsUpdate);
 125927        }
 928
 929        public static void ReportOnEnterEvent(string sceneId, string uuid)
 930        {
 0931            if (string.IsNullOrEmpty(uuid))
 0932                return;
 933
 0934            onEnterEvent.uuid = uuid;
 935
 0936            SendSceneEvent(sceneId, "uuidEvent", onEnterEvent);
 0937        }
 938
 0939        public static void LogOut() { SendMessage("LogOut"); }
 940
 0941        public static void RedirectToSignUp() { SendMessage("RedirectToSignUp"); }
 942
 0943        public static void PreloadFinished(string sceneId) { SendMessage("PreloadFinished", sceneId); }
 944
 945        public static void ReportMousePosition(Vector3 mousePosition, string id)
 946        {
 0947            positionPayload.mousePosition = mousePosition;
 0948            positionPayload.id = id;
 0949            SendMessage("ReportMousePosition", positionPayload);
 0950        }
 951
 952        public static void SendScreenshot(string encodedTexture, string id)
 953        {
 0954            onSendScreenshot.encodedTexture = encodedTexture;
 0955            onSendScreenshot.id = id;
 0956            SendMessage("SendScreenshot", onSendScreenshot);
 0957        }
 958
 959        public static void SetDelightedSurveyEnabled(bool enabled)
 960        {
 196961            delightedSurveyEnabled.enabled = enabled;
 196962            SendMessage("SetDelightedSurveyEnabled", delightedSurveyEnabled);
 196963        }
 964
 965        public static void SetScenesLoadRadius(float newRadius)
 966        {
 1967            setScenesLoadRadiusPayload.newRadius = newRadius;
 1968            SendMessage("SetScenesLoadRadius", setScenesLoadRadiusPayload);
 1969        }
 970
 971        [System.Serializable]
 972        public class SaveAvatarPayload
 973        {
 974            public string face;
 975            public string face128;
 976            public string face256;
 977            public string body;
 978            public bool isSignUpFlow;
 979            public AvatarModel avatar;
 980        }
 981
 982        public static class RendererAuthenticationType
 983        {
 0984            public static string Guest => "guest";
 0985            public static string WalletConnect => "wallet_connect";
 986        }
 987
 988        [System.Serializable]
 989        public class SendAuthenticationPayload
 990        {
 991            public string rendererAuthenticationType;
 992        }
 993
 994        [System.Serializable]
 995        public class SendPassportPayload
 996        {
 997            public string name;
 998            public string email;
 999        }
 1000
 1001        [System.Serializable]
 1002        public class SendSaveUserUnverifiedNamePayload
 1003        {
 1004            public string newUnverifiedName;
 1005        }
 1006
 21007        public static void RequestOwnProfileUpdate() { SendMessage("RequestOwnProfileUpdate"); }
 1008
 1009        public static void SendSaveAvatar(AvatarModel avatar, Texture2D faceSnapshot, Texture2D face128Snapshot, Texture
 1010        {
 11011            var payload = new SaveAvatarPayload()
 1012            {
 1013                avatar = avatar,
 1014                face = System.Convert.ToBase64String(faceSnapshot.EncodeToPNG()),
 1015                face128 = System.Convert.ToBase64String(face128Snapshot.EncodeToPNG()),
 1016                face256 = System.Convert.ToBase64String(face256Snapshot.EncodeToPNG()),
 1017                body = System.Convert.ToBase64String(bodySnapshot.EncodeToPNG()),
 1018                isSignUpFlow = isSignUpFlow
 1019            };
 11020            SendMessage("SaveUserAvatar", payload);
 11021        }
 1022
 01023        public static void SendAuthentication(string rendererAuthenticationType) { SendMessage("SendAuthentication", new
 1024
 21025        public static void SendPassport(string name, string email) { SendMessage("SendPassport", new SendPassportPayload
 1026
 1027        public static void SendSaveUserUnverifiedName(string newName)
 1028        {
 01029            var payload = new SendSaveUserUnverifiedNamePayload()
 1030            {
 1031                newUnverifiedName = newName
 1032            };
 1033
 01034            SendMessage("SaveUserUnverifiedName", payload);
 01035        }
 1036
 21037        public static void SendUserAcceptedCollectibles(string airdropId) { SendMessage("UserAcceptedCollectibles", new 
 1038
 521039        public static void SaveUserTutorialStep(int newTutorialStep) { SendMessage("SaveUserTutorialStep", new TutorialS
 1040
 1041        public static void SendPerformanceReport(string encodedFrameTimesInMS, bool usingFPSCap, int hiccupsInThousandFr
 1042        {
 01043            SendMessage("PerformanceReport", new PerformanceReportPayload()
 1044            {
 1045                samples = encodedFrameTimesInMS,
 1046                fpsIsCapped = usingFPSCap,
 1047                hiccupsInThousandFrames = hiccupsInThousandFrames,
 1048                hiccupsTime = hiccupsTime,
 1049                totalTime = totalTime
 1050            });
 01051        }
 1052
 1053        public static void SendSystemInfoReport()
 1054        {
 1231055            SendMessage("SystemInfoReport", new SystemInfoReportPayload());
 1231056        }
 1057
 1058        public static void SendTermsOfServiceResponse(string sceneId, bool accepted, bool dontShowAgain)
 1059        {
 21060            var payload = new TermsOfServiceResponsePayload()
 1061            {
 1062                sceneId = sceneId,
 1063                accepted = accepted,
 1064                dontShowAgain = dontShowAgain
 1065            };
 21066            SendMessage("TermsOfServiceResponse", payload);
 21067        }
 1068
 1069        public static void SendExpression(string expressionID, long timestamp)
 1070        {
 21071            SendMessage("TriggerExpression", new SendExpressionPayload()
 1072            {
 1073                id = expressionID,
 1074                timestamp = timestamp
 1075            });
 21076        }
 1077
 01078        public static void ReportMotdClicked() { SendMessage("MotdConfirmClicked"); }
 1079
 61080        public static void OpenURL(string url) { SendMessage("OpenWebURL", new OpenURLPayload { url = url }); }
 1081
 01082        public static void SendReportScene(string sceneID) { SendMessage("ReportScene", sceneID); }
 1083
 41084        public static void SendReportPlayer(string playerName) { SendMessage("ReportPlayer", playerName); }
 1085
 1086        public static void SendBlockPlayer(string userId)
 1087        {
 11088            SendMessage("BlockPlayer", new SendBlockPlayerPayload()
 1089            {
 1090                userId = userId
 1091            });
 11092        }
 1093
 1094        public static void SendUnblockPlayer(string userId)
 1095        {
 01096            SendMessage("UnblockPlayer", new SendUnblockPlayerPayload()
 1097            {
 1098                userId = userId
 1099            });
 01100        }
 1101
 1102        public static void RequestScenesInfoAroundParcel(Vector2 parcel, int maxScenesArea)
 1103        {
 01104            SendMessage("RequestScenesInfoInArea", new RequestScenesInfoAroundParcelPayload()
 1105            {
 1106                parcel = parcel,
 1107                scenesAround = maxScenesArea
 1108            });
 01109        }
 1110
 1111        public static void SendAudioStreamEvent(string url, bool play, float volume)
 1112        {
 31113            onAudioStreamingEvent.url = url;
 31114            onAudioStreamingEvent.play = play;
 31115            onAudioStreamingEvent.volume = volume;
 31116            SendMessage("SetAudioStream", onAudioStreamingEvent);
 31117        }
 1118
 1119        public static void SendSetVoiceChatRecording(bool recording)
 1120        {
 01121            setVoiceChatRecordingPayload.recording = recording;
 01122            SendMessage("SetVoiceChatRecording", setVoiceChatRecordingPayload);
 01123        }
 1124
 01125        public static void ToggleVoiceChatRecording() { SendMessage("ToggleVoiceChatRecording"); }
 1126
 1127        public static void ApplySettings(float voiceChatVolume, int voiceChatAllowCategory)
 1128        {
 61129            applySettingsPayload.voiceChatVolume = voiceChatVolume;
 61130            applySettingsPayload.voiceChatAllowCategory = voiceChatAllowCategory;
 61131            SendMessage("ApplySettings", applySettingsPayload);
 61132        }
 1133
 1134        public static void RequestGIFProcessor(string gifURL, string gifId, bool isWebGL1)
 1135        {
 01136            gifSetupPayload.imageSource = gifURL;
 01137            gifSetupPayload.id = gifId;
 01138            gifSetupPayload.isWebGL1 = isWebGL1;
 1139
 01140            SendMessage("RequestGIFProcessor", gifSetupPayload);
 01141        }
 1142
 1143        public static void DeleteGIF(string id)
 1144        {
 01145            stringPayload.value = id;
 01146            SendMessage("DeleteGIF", stringPayload);
 01147        }
 1148
 1149        public static void GoTo(int x, int y)
 1150        {
 21151            gotoEvent.x = x;
 21152            gotoEvent.y = y;
 21153            SendMessage("GoTo", gotoEvent);
 21154        }
 1155
 01156        public static void GoToCrowd() { SendMessage("GoToCrowd"); }
 1157
 01158        public static void GoToMagic() { SendMessage("GoToMagic"); }
 1159
 1160        public static void JumpIn(int x, int y, string serverName, string layerName)
 1161        {
 11162            jumpInPayload.realm.serverName = serverName;
 11163            jumpInPayload.realm.layer = layerName;
 1164
 11165            jumpInPayload.gridPosition.x = x;
 11166            jumpInPayload.gridPosition.y = y;
 1167
 11168            SendMessage("JumpIn", jumpInPayload);
 11169        }
 1170
 1171        public static void SendChatMessage(ChatMessage message)
 1172        {
 51173            sendChatMessageEvent.message = message;
 51174            SendMessage("SendChatMessage", sendChatMessageEvent);
 51175        }
 1176
 81177        public static void UpdateFriendshipStatus(FriendsController.FriendshipUpdateStatusMessage message) { SendMessage
 1178
 781179        public static void ScenesLoadingFeedback(LoadingFeedbackMessage message) { SendMessage("ScenesLoadingFeedback", 
 1180
 61181        public static void FetchHotScenes() { SendMessage("FetchHotScenes"); }
 1182
 1183        public static void SetBaseResolution(int resolution)
 1184        {
 21185            baseResEvent.baseResolution = resolution;
 21186            SendMessage("SetBaseResolution", baseResEvent);
 21187        }
 1188
 01189        public static void ReportAnalyticsEvent(string eventName) { ReportAnalyticsEvent(eventName, null); }
 1190
 1191        public static void ReportAnalyticsEvent(string eventName, AnalyticsPayload.Property[] eventProperties)
 1192        {
 591193            analyticsEvent.name = eventName;
 591194            analyticsEvent.properties = eventProperties;
 591195            SendMessage("Track", analyticsEvent);
 591196        }
 1197
 41198        public static void FetchBalanceOfMANA() { SendMessage("FetchBalanceOfMANA"); }
 1199
 1200        public static void SendSceneExternalActionEvent(string sceneId, string type, string payload)
 1201        {
 1961202            sceneExternalActionEvent.type = type;
 1961203            sceneExternalActionEvent.payload = payload;
 1961204            SendSceneEvent(sceneId, "externalAction", sceneExternalActionEvent);
 1961205        }
 1206
 1207        public static void SetMuteUsers(string[] usersId, bool mute)
 1208        {
 01209            muteUserEvent.usersId = usersId;
 01210            muteUserEvent.mute = mute;
 01211            SendMessage("SetMuteUsers", muteUserEvent);
 01212        }
 1213
 1214        public static void SendCloseUserAvatar(bool isSignUpFlow)
 1215        {
 01216            closeUserAvatarPayload.isSignUpFlow = isSignUpFlow;
 01217            SendMessage("CloseUserAvatar", closeUserAvatarPayload);
 01218        }
 1219
 1220        public static void KillPortableExperience(string portableExperienceId)
 1221        {
 01222            killPortableExperiencePayload.portableExperienceId = portableExperienceId;
 01223            SendMessage("KillPortableExperience", killPortableExperiencePayload);
 01224        }
 1225
 1226        public static void RequestWearables(
 1227            string ownedByUser,
 1228            string[] wearableIds,
 1229            string[] collectionIds,
 1230            string context)
 1231        {
 21232            requestWearablesPayload.filters = new WearablesRequestFiltersPayload
 1233            {
 1234                ownedByUser = ownedByUser,
 1235                wearableIds = wearableIds,
 1236                collectionIds = collectionIds
 1237            };
 1238
 21239            requestWearablesPayload.context = context;
 1240
 21241            SendMessage("RequestWearables", requestWearablesPayload);
 21242        }
 1243
 1244        public static void SearchENSOwner(string name, int maxResults)
 1245        {
 61246            searchEnsOwnerPayload.name = name;
 61247            searchEnsOwnerPayload.maxResults = maxResults;
 1248
 61249            SendMessage("SearchENSOwner", searchEnsOwnerPayload);
 61250        }
 1251
 1252        public static void RequestUserProfile(string userId)
 1253        {
 161254            stringPayload.value = userId;
 161255            SendMessage("RequestUserProfile", stringPayload);
 161256        }
 1257
 121258        public static void ReportAvatarFatalError() { SendMessage("ReportAvatarFatalError"); }
 1259
 1260        public static void UnpublishScene(Vector2Int sceneCoordinates)
 1261        {
 21262            var payload = new UnpublishScenePayload() { coordinates = $"{sceneCoordinates.x},{sceneCoordinates.y}" };
 21263            SendMessage("UnpublishScene", payload);
 21264        }
 1265
 1266        public static void NotifyStatusThroughChat(string message)
 1267        {
 01268            stringPayload.value = message;
 01269            SendMessage("NotifyStatusThroughChat", stringPayload);
 01270        }
 1271    }
 1272}

Methods/Properties

WebInterface()
StartStatefulMode(System.String)
StopStatefulMode(System.String)
SceneReady(System.String)
ActivateRenderingACK()
DeactivateRenderingACK()
OnGlobalPointerEvent()
StoreSceneStateEvent()
operator+(DCL.Interface.WebInterface/MetricsModel, DCL.Interface.WebInterface/MetricsModel)
OnMetricsUpdate()
TransformPayload()
SystemInfoReportPayload()
JumpInPayload()
Property(System.String, System.String)
StartDecentraland()
MessageFromEngine(System.String, System.String)
ProcessQueuedMessages()
GetGraphicCard()
SendMessage(System.String)
SendMessage[T](System.String, T)
SendSceneEvent[T](System.String, System.String, T)
SendAllScenesEvent[T](System.String, T)
ReportPosition(UnityEngine.Vector3, UnityEngine.Quaternion, System.Single)
ReportCameraChanged(CameraMode/ModeId)
ReportIdleStateChanged(System.Boolean)
ReportControlEvent[T](T)
BuilderInWorldMessage(System.String, System.String)
ReportOnClickEvent(System.String, System.String)
ReportRaycastResult[T, P](System.String, System.String, System.String, P)
ReportRaycastHitFirstResult(System.String, System.String, DCL.Models.RaycastType, DCL.Interface.WebInterface/RaycastHitEntity)
ReportRaycastHitAllResult(System.String, System.String, DCL.Models.RaycastType, DCL.Interface.WebInterface/RaycastHitEntities)
CreateHitObject(System.String, System.String, UnityEngine.Vector3, UnityEngine.Vector3, System.Single)
SetPointerEventPayload(DCL.Interface.WebInterface/OnPointerEventPayload, DCL.Interface.WebInterface/ACTION_BUTTON, System.String, System.String, UnityEngine.Ray, UnityEngine.Vector3, UnityEngine.Vector3, System.Single, System.Boolean)
ReportGlobalPointerDownEvent(DCL.Interface.WebInterface/ACTION_BUTTON, UnityEngine.Ray, UnityEngine.Vector3, UnityEngine.Vector3, System.Single, System.String, System.String, System.String, System.Boolean)
ReportGlobalPointerUpEvent(DCL.Interface.WebInterface/ACTION_BUTTON, UnityEngine.Ray, UnityEngine.Vector3, UnityEngine.Vector3, System.Single, System.String, System.String, System.String, System.Boolean)
ReportOnPointerDownEvent(DCL.Interface.WebInterface/ACTION_BUTTON, System.String, System.String, System.String, System.String, UnityEngine.Ray, UnityEngine.Vector3, UnityEngine.Vector3, System.Single)
ReportOnPointerUpEvent(DCL.Interface.WebInterface/ACTION_BUTTON, System.String, System.String, System.String, System.String, UnityEngine.Ray, UnityEngine.Vector3, UnityEngine.Vector3, System.Single)
ReportOnTextSubmitEvent(System.String, System.String, System.String)
ReportOnTextInputChangedEvent(System.String, System.String, System.String)
ReportOnFocusEvent(System.String, System.String)
ReportOnBlurEvent(System.String, System.String)
ReportOnScrollChange(System.String, System.String, UnityEngine.Vector2, System.Int32)
ReportEvent[T](System.String, T)
ReportOnMetricsUpdate(System.String, DCL.Interface.WebInterface/MetricsModel, DCL.Interface.WebInterface/MetricsModel)
ReportOnEnterEvent(System.String, System.String)
LogOut()
RedirectToSignUp()
PreloadFinished(System.String)
ReportMousePosition(UnityEngine.Vector3, System.String)
SendScreenshot(System.String, System.String)
SetDelightedSurveyEnabled(System.Boolean)
SetScenesLoadRadius(System.Single)
Guest()
WalletConnect()
RequestOwnProfileUpdate()
SendSaveAvatar(AvatarModel, UnityEngine.Texture2D, UnityEngine.Texture2D, UnityEngine.Texture2D, UnityEngine.Texture2D, System.Boolean)
SendAuthentication(System.String)
SendPassport(System.String, System.String)
SendSaveUserUnverifiedName(System.String)
SendUserAcceptedCollectibles(System.String)
SaveUserTutorialStep(System.Int32)
SendPerformanceReport(System.String, System.Boolean, System.Int32, System.Single, System.Single)
SendSystemInfoReport()
SendTermsOfServiceResponse(System.String, System.Boolean, System.Boolean)
SendExpression(System.String, System.Int64)
ReportMotdClicked()
OpenURL(System.String)
SendReportScene(System.String)
SendReportPlayer(System.String)
SendBlockPlayer(System.String)
SendUnblockPlayer(System.String)
RequestScenesInfoAroundParcel(UnityEngine.Vector2, System.Int32)
SendAudioStreamEvent(System.String, System.Boolean, System.Single)
SendSetVoiceChatRecording(System.Boolean)
ToggleVoiceChatRecording()
ApplySettings(System.Single, System.Int32)
RequestGIFProcessor(System.String, System.String, System.Boolean)
DeleteGIF(System.String)
GoTo(System.Int32, System.Int32)
GoToCrowd()
GoToMagic()
JumpIn(System.Int32, System.Int32, System.String, System.String)
SendChatMessage(DCL.Interface.ChatMessage)
UpdateFriendshipStatus(FriendsController/FriendshipUpdateStatusMessage)
ScenesLoadingFeedback(DCL.Interface.WebInterface/LoadingFeedbackMessage)
FetchHotScenes()
SetBaseResolution(System.Int32)
ReportAnalyticsEvent(System.String)
ReportAnalyticsEvent(System.String, DCL.Interface.WebInterface/AnalyticsPayload/Property[])
FetchBalanceOfMANA()
SendSceneExternalActionEvent(System.String, System.String, System.String)
SetMuteUsers(System.String[], System.Boolean)
SendCloseUserAvatar(System.Boolean)
KillPortableExperience(System.String)
RequestWearables(System.String, System.String[], System.String[], System.String)
SearchENSOwner(System.String, System.Int32)
RequestUserProfile(System.String)
ReportAvatarFatalError()
UnpublishScene(UnityEngine.Vector2Int)
NotifyStatusThroughChat(System.String)