< Summary

Class:DCL.Interface.WebInterface
Assembly:WebInterface
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WebInterface/Interface.cs
Covered lines:217
Uncovered lines:100
Coverable lines:317
Total lines:1246
Line coverage:68.4% (217 of 317)
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%
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%3.073080%
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%
SendUserEmail(...)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%2100%
GoToCrowd()0%2100%
GoToMagic()0%2100%
JumpIn(...)0%110100%
SendChatMessage(...)0%110100%
UpdateFriendshipStatus(...)0%110100%
ScenesLoadingFeedback(...)0%2100%
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%

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
 269            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
 281            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
 104493            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 SceneEvent<T>
 104        {
 105            public string sceneId;
 106            public string eventType;
 107            public T payload;
 108        }
 109
 110        [System.Serializable]
 111        public class AllScenesEvent<T>
 112        {
 113            public string eventType;
 114            public T payload;
 115        }
 116
 117        [System.Serializable]
 118        public class UUIDEvent<TPayload>
 119            where TPayload : class, new()
 120        {
 121            public string uuid;
 122            public TPayload payload = new TPayload();
 123        }
 124
 125        public enum ACTION_BUTTON
 126        {
 127            POINTER,
 128            PRIMARY,
 129            SECONDARY,
 130            ANY
 131        }
 132
 133        [System.Serializable]
 134        public class OnClickEvent : UUIDEvent<OnClickEventPayload> { };
 135
 136        [System.Serializable]
 137        public class CameraModePayload
 138        {
 139            public CameraMode.ModeId cameraMode;
 140        };
 141
 142        [System.Serializable]
 143        public class IdleStateChangedPayload
 144        {
 145            public bool isIdle;
 146        };
 147
 148        [System.Serializable]
 149        public class OnPointerDownEvent : UUIDEvent<OnPointerEventPayload> { };
 150
 151        [System.Serializable]
 152        public class OnGlobalPointerEvent
 153        {
 0154            public OnGlobalPointerEventPayload payload = new OnGlobalPointerEventPayload();
 155        };
 156
 157        [System.Serializable]
 158        public class OnPointerUpEvent : UUIDEvent<OnPointerEventPayload> { };
 159
 160        [System.Serializable]
 161        private class OnTextSubmitEvent : UUIDEvent<OnTextSubmitEventPayload> { };
 162
 163        [System.Serializable]
 164        private class OnTextInputChangeEvent : UUIDEvent<OnTextInputChangeEventPayload> { };
 165
 166        [System.Serializable]
 167        private class OnScrollChangeEvent : UUIDEvent<OnScrollChangeEventPayload> { };
 168
 169        [System.Serializable]
 170        private class OnFocusEvent : UUIDEvent<EmptyPayload> { };
 171
 172        [System.Serializable]
 173        private class OnBlurEvent : UUIDEvent<EmptyPayload> { };
 174
 175        [System.Serializable]
 176        public class OnEnterEvent : UUIDEvent<OnEnterEventPayload> { };
 177
 178        [System.Serializable]
 179        public class OnClickEventPayload
 180        {
 181            public ACTION_BUTTON buttonId = ACTION_BUTTON.POINTER;
 182        }
 183
 184        [System.Serializable]
 185        public class SendChatMessageEvent
 186        {
 187            public ChatMessage message;
 188        }
 189
 190        [System.Serializable]
 191        public class RemoveEntityComponentsPayLoad
 192        {
 193            public string entityId;
 194            public string componentId;
 195        };
 196
 197        [System.Serializable]
 198        public class StoreSceneStateEvent
 199        {
 1200            public string type = "StoreSceneState";
 1201            public string payload = "";
 202        };
 203
 204        [System.Serializable]
 205        public class OnPointerEventPayload
 206        {
 207            [System.Serializable]
 208            public class Hit
 209            {
 210                public Vector3 origin;
 211                public float length;
 212                public Vector3 hitPoint;
 213                public Vector3 normal;
 214                public Vector3 worldNormal;
 215                public string meshName;
 216                public string entityId;
 217            }
 218
 219            public ACTION_BUTTON buttonId;
 220            public Vector3 origin;
 221            public Vector3 direction;
 222            public Hit hit;
 223        }
 224
 225        [System.Serializable]
 226        public class OnGlobalPointerEventPayload : OnPointerEventPayload
 227        {
 228            public enum InputEventType
 229            {
 230                DOWN,
 231                UP
 232            }
 233
 234            public InputEventType type;
 235        }
 236
 237        [System.Serializable]
 238        public class OnTextSubmitEventPayload
 239        {
 240            public string id;
 241            public string text;
 242        }
 243
 244        [System.Serializable]
 245        public class OnTextInputChangeEventPayload
 246        {
 247            public string value;
 248        }
 249
 250        [System.Serializable]
 251        public class OnScrollChangeEventPayload
 252        {
 253            public Vector2 value;
 254            public int pointerId;
 255        }
 256
 257        [System.Serializable]
 258        public class EmptyPayload { }
 259
 260        [System.Serializable]
 261        public class MetricsModel
 262        {
 263            public int meshes;
 264            public int bodies;
 265            public int materials;
 266            public int textures;
 267            public int triangles;
 268            public int entities;
 269
 270            public static MetricsModel operator + (MetricsModel lhs, MetricsModel rhs)
 271            {
 0272                return new MetricsModel()
 273                {
 274                    meshes = lhs.meshes + rhs.meshes,
 275                    bodies = lhs.bodies + rhs.bodies,
 276                    materials = lhs.materials + rhs.materials,
 277                    textures = lhs.textures + rhs.textures,
 278                    triangles = lhs.triangles + rhs.triangles,
 279                    entities = lhs.entities + rhs.entities
 280                };
 281            }
 282        }
 283
 284        [System.Serializable]
 285        private class OnMetricsUpdate
 286        {
 1287            public MetricsModel given = new MetricsModel();
 1288            public MetricsModel limit = new MetricsModel();
 289        }
 290
 291        [System.Serializable]
 292        public class OnEnterEventPayload { }
 293
 294        [System.Serializable]
 295        public class TransformPayload
 296        {
 0297            public Vector3 position = Vector3.zero;
 0298            public Quaternion rotation = Quaternion.identity;
 0299            public Vector3 scale = Vector3.one;
 300        }
 301
 302        public class OnSendScreenshot
 303        {
 304            public string id;
 305            public string encodedTexture;
 306        };
 307
 308        [System.Serializable]
 309        public class GotoEvent
 310        {
 311            public int x;
 312            public int y;
 313        };
 314
 315        [System.Serializable]
 316        public class BaseResolution
 317        {
 318            public int baseResolution;
 319        };
 320
 321        //-----------------------------------------------------
 322        // Raycast
 323        [System.Serializable]
 324        public class RayInfo
 325        {
 326            public Vector3 origin;
 327            public Vector3 direction;
 328            public float distance;
 329        }
 330
 331        [System.Serializable]
 332        public class RaycastHitInfo
 333        {
 334            public bool didHit;
 335            public RayInfo ray;
 336
 337            public Vector3 hitPoint;
 338            public Vector3 hitNormal;
 339        }
 340
 341        [System.Serializable]
 342        public class HitEntityInfo
 343        {
 344            public string entityId;
 345            public string meshName;
 346        }
 347
 348        [System.Serializable]
 349        public class RaycastHitEntity : RaycastHitInfo
 350        {
 351            public HitEntityInfo entity;
 352        }
 353
 354        [System.Serializable]
 355        public class RaycastHitEntities : RaycastHitInfo
 356        {
 357            public RaycastHitEntity[] entities;
 358        }
 359
 360        [System.Serializable]
 361        public class RaycastResponse<T> where T : RaycastHitInfo
 362        {
 363            public string queryId;
 364            public string queryType;
 365            public T payload;
 366        }
 367
 368        // Note (Zak): We need to explicitly define this classes for the JsonUtility to
 369        // be able to serialize them
 370        [System.Serializable]
 371        public class RaycastHitFirstResponse : RaycastResponse<RaycastHitEntity> { }
 372
 373        [System.Serializable]
 374        public class RaycastHitAllResponse : RaycastResponse<RaycastHitEntities> { }
 375
 376        [System.Serializable]
 377        public class SendExpressionPayload
 378        {
 379            public string id;
 380            public long timestamp;
 381        }
 382
 383        [System.Serializable]
 384        public class UserAcceptedCollectiblesPayload
 385        {
 386            public string id;
 387        }
 388
 389        [System.Serializable]
 390        public class SendBlockPlayerPayload
 391        {
 392            public string userId;
 393        }
 394
 395        [System.Serializable]
 396        public class SendUnblockPlayerPayload
 397        {
 398            public string userId;
 399        }
 400
 401        [System.Serializable]
 402        public class TutorialStepPayload
 403        {
 404            public int tutorialStep;
 405        }
 406
 407        [System.Serializable]
 408        public class PerformanceReportPayload
 409        {
 410            public string samples;
 411            public bool fpsIsCapped;
 412            public int hiccupsInThousandFrames;
 413            public float hiccupsTime;
 414            public float totalTime;
 415        }
 416
 417        [System.Serializable]
 418        public class SystemInfoReportPayload
 419        {
 105420            public string graphicsDeviceName = SystemInfo.graphicsDeviceName;
 105421            public string graphicsDeviceVersion = SystemInfo.graphicsDeviceVersion;
 105422            public int graphicsMemorySize = SystemInfo.graphicsMemorySize;
 105423            public string processorType = SystemInfo.processorType;
 105424            public int processorCount = SystemInfo.processorCount;
 105425            public int systemMemorySize = SystemInfo.systemMemorySize;
 426        }
 427
 428        [System.Serializable]
 429        public class GenericAnalyticPayload
 430        {
 431            public string eventName;
 432            public Dictionary<object, object> data;
 433        }
 434
 435        [System.Serializable]
 436        public class PerformanceHiccupPayload
 437        {
 438            public int hiccupsInThousandFrames;
 439            public float hiccupsTime;
 440            public float totalTime;
 441        }
 442
 443        [System.Serializable]
 444        public class TermsOfServiceResponsePayload
 445        {
 446            public string sceneId;
 447            public bool dontShowAgain;
 448            public bool accepted;
 449        }
 450
 451        [System.Serializable]
 452        public class OpenURLPayload
 453        {
 454            public string url;
 455        }
 456
 457        [System.Serializable]
 458        public class SendUserEmailPayload
 459        {
 460            public string userEmail;
 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
 118528                public Property(string key, string value)
 529                {
 118530                    this.key = key;
 118531                    this.value = value;
 118532                }
 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
 0614        public static void StartDecentraland() { }
 615
 616        public static void MessageFromEngine(string type, string message)
 617        {
 1823618            if (OnMessageFromEngine != null)
 619            {
 57620                OnMessageFromEngine.Invoke(type, message);
 621            }
 622
 1823623            if (VERBOSE)
 624            {
 0625                Debug.Log("MessageFromEngine called with: " + type + ", " + message);
 626            }
 1823627        }
 628
 0629        public static string GetGraphicCard() => "In Editor Graphic Card";
 630#endif
 631
 632        public static void SendMessage(string type)
 633        {
 634            // sending an empty JSON object to be compatible with other messages
 11635            MessageFromEngine(type, "{}");
 11636        }
 637
 638        public static void SendMessage<T>(string type, T message)
 639        {
 1807640            string messageJson = JsonUtility.ToJson(message);
 641
 1807642            if (VERBOSE)
 643            {
 0644                Debug.Log($"Sending message: " + messageJson);
 645            }
 646
 1807647            MessageFromEngine(type, messageJson);
 1807648        }
 649
 1650        private static ReportPositionPayload positionPayload = new ReportPositionPayload();
 1651        private static CameraModePayload cameraModePayload = new CameraModePayload();
 1652        private static IdleStateChangedPayload idleStateChangedPayload = new IdleStateChangedPayload();
 1653        private static OnMetricsUpdate onMetricsUpdate = new OnMetricsUpdate();
 1654        private static OnClickEvent onClickEvent = new OnClickEvent();
 1655        private static OnPointerDownEvent onPointerDownEvent = new OnPointerDownEvent();
 1656        private static OnPointerUpEvent onPointerUpEvent = new OnPointerUpEvent();
 1657        private static OnTextSubmitEvent onTextSubmitEvent = new OnTextSubmitEvent();
 1658        private static OnTextInputChangeEvent onTextInputChangeEvent = new OnTextInputChangeEvent();
 1659        private static OnScrollChangeEvent onScrollChangeEvent = new OnScrollChangeEvent();
 1660        private static OnFocusEvent onFocusEvent = new OnFocusEvent();
 1661        private static OnBlurEvent onBlurEvent = new OnBlurEvent();
 1662        private static OnEnterEvent onEnterEvent = new OnEnterEvent();
 1663        private static OnSendScreenshot onSendScreenshot = new OnSendScreenshot();
 1664        private static OnPointerEventPayload onPointerEventPayload = new OnPointerEventPayload();
 1665        private static OnGlobalPointerEventPayload onGlobalPointerEventPayload = new OnGlobalPointerEventPayload();
 1666        private static OnGlobalPointerEvent onGlobalPointerEvent = new OnGlobalPointerEvent();
 1667        private static AudioStreamingPayload onAudioStreamingEvent = new AudioStreamingPayload();
 1668        private static SetVoiceChatRecordingPayload setVoiceChatRecordingPayload = new SetVoiceChatRecordingPayload();
 1669        private static SetScenesLoadRadiusPayload setScenesLoadRadiusPayload = new SetScenesLoadRadiusPayload();
 1670        private static ApplySettingsPayload applySettingsPayload = new ApplySettingsPayload();
 1671        private static GIFSetupPayload gifSetupPayload = new GIFSetupPayload();
 1672        private static JumpInPayload jumpInPayload = new JumpInPayload();
 1673        private static GotoEvent gotoEvent = new GotoEvent();
 1674        private static SendChatMessageEvent sendChatMessageEvent = new SendChatMessageEvent();
 1675        private static BaseResolution baseResEvent = new BaseResolution();
 1676        private static AnalyticsPayload analyticsEvent = new AnalyticsPayload();
 1677        private static DelightedSurveyEnabledPayload delightedSurveyEnabled = new DelightedSurveyEnabledPayload();
 1678        private static ExternalActionSceneEventPayload sceneExternalActionEvent = new ExternalActionSceneEventPayload();
 1679        private static MuteUserPayload muteUserEvent = new MuteUserPayload();
 1680        private static StoreSceneStateEvent storeSceneState = new StoreSceneStateEvent();
 1681        private static CloseUserAvatarPayload closeUserAvatarPayload = new CloseUserAvatarPayload();
 1682        private static StringPayload stringPayload = new StringPayload();
 1683        private static KillPortableExperiencePayload killPortableExperiencePayload = new KillPortableExperiencePayload()
 1684        private static RequestWearablesPayload requestWearablesPayload = new RequestWearablesPayload();
 1685        private static SearchENSOwnerPayload searchEnsOwnerPayload = new SearchENSOwnerPayload();
 686
 687        public static void SendSceneEvent<T>(string sceneId, string eventType, T payload)
 688        {
 151689            SceneEvent<T> sceneEvent = new SceneEvent<T>();
 151690            sceneEvent.sceneId = sceneId;
 151691            sceneEvent.eventType = eventType;
 151692            sceneEvent.payload = payload;
 693
 151694            SendMessage("SceneEvent", sceneEvent);
 151695        }
 696
 697        private static void SendAllScenesEvent<T>(string eventType, T payload)
 698        {
 430699            AllScenesEvent<T> allScenesEvent = new AllScenesEvent<T>();
 430700            allScenesEvent.eventType = eventType;
 430701            allScenesEvent.payload = payload;
 702
 430703            SendMessage("AllScenesEvent", allScenesEvent);
 430704        }
 705
 706        public static void ReportPosition(Vector3 position, Quaternion rotation, float playerHeight)
 707        {
 483708            positionPayload.position = position;
 483709            positionPayload.rotation = rotation;
 483710            positionPayload.playerHeight = playerHeight;
 711
 483712            SendMessage("ReportPosition", positionPayload);
 483713        }
 714
 715        public static void ReportCameraChanged(CameraMode.ModeId cameraMode)
 716        {
 147717            cameraModePayload.cameraMode = cameraMode;
 147718            SendAllScenesEvent("cameraModeChanged", cameraModePayload);
 147719        }
 720
 721        public static void ReportIdleStateChanged(bool isIdle)
 722        {
 283723            idleStateChangedPayload.isIdle = isIdle;
 283724            SendAllScenesEvent("idleStateChanged", idleStateChangedPayload);
 283725        }
 726
 1050727        public static void ReportControlEvent<T>(T controlEvent) where T : ControlEvent { SendMessage("ControlEvent", co
 728
 10729        public static void BuilderInWorldMessage(string type, string message) { MessageFromEngine(type, message); }
 730
 731        public static void ReportOnClickEvent(string sceneId, string uuid)
 732        {
 7733            if (string.IsNullOrEmpty(uuid))
 734            {
 0735                return;
 736            }
 737
 7738            onClickEvent.uuid = uuid;
 739
 7740            SendSceneEvent(sceneId, "uuidEvent", onClickEvent);
 7741        }
 742
 743        private static void ReportRaycastResult<T, P>(string sceneId, string queryId, string queryType, P payload) where
 744        {
 0745            T response = new T();
 0746            response.queryId = queryId;
 0747            response.queryType = queryType;
 0748            response.payload = payload;
 749
 0750            SendSceneEvent<T>(sceneId, "raycastResponse", response);
 0751        }
 752
 0753        public static void ReportRaycastHitFirstResult(string sceneId, string queryId, RaycastType raycastType, RaycastH
 754
 0755        public static void ReportRaycastHitAllResult(string sceneId, string queryId, RaycastType raycastType, RaycastHit
 756
 757        private static OnPointerEventPayload.Hit CreateHitObject(string entityId, string meshName, Vector3 point, Vector
 758        {
 20759            OnPointerEventPayload.Hit hit = new OnPointerEventPayload.Hit();
 760
 20761            hit.hitPoint = point;
 20762            hit.length = distance;
 20763            hit.normal = normal;
 20764            hit.worldNormal = normal;
 20765            hit.meshName = meshName;
 20766            hit.entityId = entityId;
 767
 20768            return hit;
 769        }
 770
 771        private static void SetPointerEventPayload(OnPointerEventPayload pointerEventPayload, ACTION_BUTTON buttonId, st
 772        {
 20773            pointerEventPayload.origin = ray.origin;
 20774            pointerEventPayload.direction = ray.direction;
 20775            pointerEventPayload.buttonId = buttonId;
 776
 20777            if (isHitInfoValid)
 20778                pointerEventPayload.hit = CreateHitObject(entityId, meshName, point, normal, distance);
 779            else
 0780                pointerEventPayload.hit = null;
 0781        }
 782
 783        public static void ReportGlobalPointerDownEvent(ACTION_BUTTON buttonId, Ray ray, Vector3 point, Vector3 normal, 
 784        {
 11785            SetPointerEventPayload((OnPointerEventPayload) onGlobalPointerEventPayload, buttonId, entityId, meshName, ra
 11786            onGlobalPointerEventPayload.type = OnGlobalPointerEventPayload.InputEventType.DOWN;
 787
 11788            onGlobalPointerEvent.payload = onGlobalPointerEventPayload;
 789
 11790            SendSceneEvent(sceneId, "pointerEvent", onGlobalPointerEvent);
 11791        }
 792
 793        public static void ReportGlobalPointerUpEvent(ACTION_BUTTON buttonId, Ray ray, Vector3 point, Vector3 normal, fl
 794        {
 3795            SetPointerEventPayload((OnPointerEventPayload) onGlobalPointerEventPayload, buttonId, entityId, meshName, ra
 3796            onGlobalPointerEventPayload.type = OnGlobalPointerEventPayload.InputEventType.UP;
 797
 3798            onGlobalPointerEvent.payload = onGlobalPointerEventPayload;
 799
 3800            SendSceneEvent(sceneId, "pointerEvent", onGlobalPointerEvent);
 3801        }
 802
 803        public static void ReportOnPointerDownEvent(ACTION_BUTTON buttonId, string sceneId, string uuid, string entityId
 804        {
 4805            if (string.IsNullOrEmpty(uuid))
 806            {
 0807                return;
 808            }
 809
 4810            onPointerDownEvent.uuid = uuid;
 4811            SetPointerEventPayload(onPointerEventPayload, buttonId, entityId, meshName, ray, point, normal, distance, is
 4812            onPointerDownEvent.payload = onPointerEventPayload;
 813
 4814            SendSceneEvent(sceneId, "uuidEvent", onPointerDownEvent);
 4815        }
 816
 817        public static void ReportOnPointerUpEvent(ACTION_BUTTON buttonId, string sceneId, string uuid, string entityId, 
 818        {
 2819            if (string.IsNullOrEmpty(uuid))
 820            {
 0821                return;
 822            }
 823
 2824            onPointerUpEvent.uuid = uuid;
 2825            SetPointerEventPayload(onPointerEventPayload, buttonId, entityId, meshName, ray, point, normal, distance, is
 2826            onPointerUpEvent.payload = onPointerEventPayload;
 827
 2828            SendSceneEvent(sceneId, "uuidEvent", onPointerUpEvent);
 2829        }
 830
 831        public static void ReportOnTextSubmitEvent(string sceneId, string uuid, string text)
 832        {
 1833            if (string.IsNullOrEmpty(uuid))
 834            {
 1835                return;
 836            }
 837
 0838            onTextSubmitEvent.uuid = uuid;
 0839            onTextSubmitEvent.payload.text = text;
 840
 0841            SendSceneEvent(sceneId, "uuidEvent", onTextSubmitEvent);
 0842        }
 843
 844        public static void ReportOnTextInputChangedEvent(string sceneId, string uuid, string text)
 845        {
 17846            if (string.IsNullOrEmpty(uuid))
 847            {
 17848                return;
 849            }
 850
 0851            onTextInputChangeEvent.uuid = uuid;
 0852            onTextInputChangeEvent.payload.value = text;
 853
 0854            SendSceneEvent(sceneId, "uuidEvent", onTextInputChangeEvent);
 0855        }
 856
 857        public static void ReportOnFocusEvent(string sceneId, string uuid)
 858        {
 3859            if (string.IsNullOrEmpty(uuid))
 860            {
 3861                return;
 862            }
 863
 0864            onFocusEvent.uuid = uuid;
 0865            SendSceneEvent(sceneId, "uuidEvent", onFocusEvent);
 0866        }
 867
 868        public static void ReportOnBlurEvent(string sceneId, string uuid)
 869        {
 1870            if (string.IsNullOrEmpty(uuid))
 871            {
 1872                return;
 873            }
 874
 0875            onBlurEvent.uuid = uuid;
 0876            SendSceneEvent(sceneId, "uuidEvent", onBlurEvent);
 0877        }
 878
 879        public static void ReportOnScrollChange(string sceneId, string uuid, Vector2 value, int pointerId)
 880        {
 15881            if (string.IsNullOrEmpty(uuid))
 882            {
 13883                return;
 884            }
 885
 2886            onScrollChangeEvent.uuid = uuid;
 2887            onScrollChangeEvent.payload.value = value;
 2888            onScrollChangeEvent.payload.pointerId = pointerId;
 889
 2890            SendSceneEvent(sceneId, "uuidEvent", onScrollChangeEvent);
 2891        }
 892
 0893        public static void ReportEvent<T>(string sceneId, T @event) { SendSceneEvent(sceneId, "uuidEvent", @event); }
 894
 895        public static void ReportOnMetricsUpdate(string sceneId, MetricsModel current,
 896            MetricsModel limit)
 897        {
 97898            onMetricsUpdate.given = current;
 97899            onMetricsUpdate.limit = limit;
 900
 97901            SendSceneEvent(sceneId, "metricsUpdate", onMetricsUpdate);
 97902        }
 903
 904        public static void ReportOnEnterEvent(string sceneId, string uuid)
 905        {
 0906            if (string.IsNullOrEmpty(uuid))
 0907                return;
 908
 0909            onEnterEvent.uuid = uuid;
 910
 0911            SendSceneEvent(sceneId, "uuidEvent", onEnterEvent);
 0912        }
 913
 0914        public static void LogOut() { SendMessage("LogOut"); }
 915
 0916        public static void RedirectToSignUp() { SendMessage("RedirectToSignUp"); }
 917
 0918        public static void PreloadFinished(string sceneId) { SendMessage("PreloadFinished", sceneId); }
 919
 920        public static void ReportMousePosition(Vector3 mousePosition, string id)
 921        {
 0922            positionPayload.mousePosition = mousePosition;
 0923            positionPayload.id = id;
 0924            SendMessage("ReportMousePosition", positionPayload);
 0925        }
 926
 927        public static void SendScreenshot(string encodedTexture, string id)
 928        {
 0929            onSendScreenshot.encodedTexture = encodedTexture;
 0930            onSendScreenshot.id = id;
 0931            SendMessage("SendScreenshot", onSendScreenshot);
 0932        }
 933
 934        public static void SetDelightedSurveyEnabled(bool enabled)
 935        {
 18936            delightedSurveyEnabled.enabled = enabled;
 18937            SendMessage("SetDelightedSurveyEnabled", delightedSurveyEnabled);
 18938        }
 939
 940        public static void SetScenesLoadRadius(float newRadius)
 941        {
 1942            setScenesLoadRadiusPayload.newRadius = newRadius;
 1943            SendMessage("SetScenesLoadRadius", setScenesLoadRadiusPayload);
 1944        }
 945
 946        [System.Serializable]
 947        public class SaveAvatarPayload
 948        {
 949            public string face;
 950            public string face128;
 951            public string face256;
 952            public string body;
 953            public bool isSignUpFlow;
 954            public AvatarModel avatar;
 955        }
 956
 957        public static class RendererAuthenticationType
 958        {
 0959            public static string Guest => "guest";
 0960            public static string WalletConnect => "wallet_connect";
 961        }
 962
 963        [System.Serializable]
 964        public class SendAuthenticationPayload
 965        {
 966            public string rendererAuthenticationType;
 967        }
 968
 969        [System.Serializable]
 970        public class SendPassportPayload
 971        {
 972            public string name;
 973            public string email;
 974        }
 975
 976        [System.Serializable]
 977        public class SendSaveUserUnverifiedNamePayload
 978        {
 979            public string newUnverifiedName;
 980        }
 981
 2982        public static void RequestOwnProfileUpdate() { SendMessage("RequestOwnProfileUpdate"); }
 983
 984        public static void SendSaveAvatar(AvatarModel avatar, Texture2D faceSnapshot, Texture2D face128Snapshot, Texture
 985        {
 1986            var payload = new SaveAvatarPayload()
 987            {
 988                avatar = avatar,
 989                face = System.Convert.ToBase64String(faceSnapshot.EncodeToPNG()),
 990                face128 = System.Convert.ToBase64String(face128Snapshot.EncodeToPNG()),
 991                face256 = System.Convert.ToBase64String(face256Snapshot.EncodeToPNG()),
 992                body = System.Convert.ToBase64String(bodySnapshot.EncodeToPNG()),
 993                isSignUpFlow = isSignUpFlow
 994            };
 1995            SendMessage("SaveUserAvatar", payload);
 1996        }
 997
 0998        public static void SendAuthentication(string rendererAuthenticationType) { SendMessage("SendAuthentication", new
 999
 21000        public static void SendPassport(string name, string email) { SendMessage("SendPassport", new SendPassportPayload
 1001
 1002        public static void SendSaveUserUnverifiedName(string newName)
 1003        {
 01004            var payload = new SendSaveUserUnverifiedNamePayload()
 1005            {
 1006                newUnverifiedName = newName
 1007            };
 1008
 01009            SendMessage("SaveUserUnverifiedName", payload);
 01010        }
 1011
 21012        public static void SendUserAcceptedCollectibles(string airdropId) { SendMessage("UserAcceptedCollectibles", new 
 1013
 121014        public static void SaveUserTutorialStep(int newTutorialStep) { SendMessage("SaveUserTutorialStep", new TutorialS
 1015
 1016        public static void SendPerformanceReport(string encodedFrameTimesInMS, bool usingFPSCap, int hiccupsInThousandFr
 1017        {
 01018            SendMessage("PerformanceReport", new PerformanceReportPayload()
 1019            {
 1020                samples = encodedFrameTimesInMS,
 1021                fpsIsCapped = usingFPSCap,
 1022                hiccupsInThousandFrames = hiccupsInThousandFrames,
 1023                hiccupsTime = hiccupsTime,
 1024                totalTime = totalTime
 1025            });
 01026        }
 1027
 2101028        public static void SendSystemInfoReport() { SendMessage("SystemInfoReport", new SystemInfoReportPayload()); }
 1029
 1030        public static void SendTermsOfServiceResponse(string sceneId, bool accepted, bool dontShowAgain)
 1031        {
 21032            var payload = new TermsOfServiceResponsePayload()
 1033            {
 1034                sceneId = sceneId,
 1035                accepted = accepted,
 1036                dontShowAgain = dontShowAgain
 1037            };
 21038            SendMessage("TermsOfServiceResponse", payload);
 21039        }
 1040
 1041        public static void SendExpression(string expressionID, long timestamp)
 1042        {
 21043            SendMessage("TriggerExpression", new SendExpressionPayload()
 1044            {
 1045                id = expressionID,
 1046                timestamp = timestamp
 1047            });
 21048        }
 1049
 01050        public static void ReportMotdClicked() { SendMessage("MotdConfirmClicked"); }
 1051
 61052        public static void OpenURL(string url) { SendMessage("OpenWebURL", new OpenURLPayload { url = url }); }
 1053
 01054        public static void SendReportScene(string sceneID) { SendMessage("ReportScene", sceneID); }
 1055
 41056        public static void SendReportPlayer(string playerName) { SendMessage("ReportPlayer", playerName); }
 1057
 1058        public static void SendBlockPlayer(string userId)
 1059        {
 11060            SendMessage("BlockPlayer", new SendBlockPlayerPayload()
 1061            {
 1062                userId = userId
 1063            });
 11064        }
 1065
 1066        public static void SendUnblockPlayer(string userId)
 1067        {
 01068            SendMessage("UnblockPlayer", new SendUnblockPlayerPayload()
 1069            {
 1070                userId = userId
 1071            });
 01072        }
 1073
 1074        public static void SendUserEmail(string email)
 1075        {
 01076            SendMessage("ReportUserEmail", new SendUserEmailPayload()
 1077            {
 1078                userEmail = email
 1079            });
 01080        }
 1081
 1082        public static void RequestScenesInfoAroundParcel(Vector2 parcel, int maxScenesArea)
 1083        {
 01084            SendMessage("RequestScenesInfoInArea", new RequestScenesInfoAroundParcelPayload()
 1085            {
 1086                parcel = parcel,
 1087                scenesAround = maxScenesArea
 1088            });
 01089        }
 1090
 1091        public static void SendAudioStreamEvent(string url, bool play, float volume)
 1092        {
 31093            onAudioStreamingEvent.url = url;
 31094            onAudioStreamingEvent.play = play;
 31095            onAudioStreamingEvent.volume = volume;
 31096            SendMessage("SetAudioStream", onAudioStreamingEvent);
 31097        }
 1098
 1099        public static void SendSetVoiceChatRecording(bool recording)
 1100        {
 01101            setVoiceChatRecordingPayload.recording = recording;
 01102            SendMessage("SetVoiceChatRecording", setVoiceChatRecordingPayload);
 01103        }
 1104
 01105        public static void ToggleVoiceChatRecording() { SendMessage("ToggleVoiceChatRecording"); }
 1106
 1107        public static void ApplySettings(float voiceChatVolume, int voiceChatAllowCategory)
 1108        {
 41109            applySettingsPayload.voiceChatVolume = voiceChatVolume;
 41110            applySettingsPayload.voiceChatAllowCategory = voiceChatAllowCategory;
 41111            SendMessage("ApplySettings", applySettingsPayload);
 41112        }
 1113
 1114        public static void RequestGIFProcessor(string gifURL, string gifId, bool isWebGL1)
 1115        {
 01116            gifSetupPayload.imageSource = gifURL;
 01117            gifSetupPayload.id = gifId;
 01118            gifSetupPayload.isWebGL1 = isWebGL1;
 1119
 01120            SendMessage("RequestGIFProcessor", gifSetupPayload);
 01121        }
 1122
 1123        public static void DeleteGIF(string id)
 1124        {
 01125            stringPayload.value = id;
 01126            SendMessage("DeleteGIF", stringPayload);
 01127        }
 1128
 1129        public static void GoTo(int x, int y)
 1130        {
 01131            gotoEvent.x = x;
 01132            gotoEvent.y = y;
 01133            SendMessage("GoTo", gotoEvent);
 01134        }
 1135
 01136        public static void GoToCrowd() { SendMessage("GoToCrowd"); }
 1137
 01138        public static void GoToMagic() { SendMessage("GoToMagic"); }
 1139
 1140        public static void JumpIn(int x, int y, string serverName, string layerName)
 1141        {
 11142            jumpInPayload.realm.serverName = serverName;
 11143            jumpInPayload.realm.layer = layerName;
 1144
 11145            jumpInPayload.gridPosition.x = x;
 11146            jumpInPayload.gridPosition.y = y;
 1147
 11148            SendMessage("JumpIn", jumpInPayload);
 11149        }
 1150
 1151        public static void SendChatMessage(ChatMessage message)
 1152        {
 51153            sendChatMessageEvent.message = message;
 51154            SendMessage("SendChatMessage", sendChatMessageEvent);
 51155        }
 1156
 81157        public static void UpdateFriendshipStatus(FriendsController.FriendshipUpdateStatusMessage message) { SendMessage
 1158
 01159        public static void ScenesLoadingFeedback(LoadingFeedbackMessage message) { SendMessage("ScenesLoadingFeedback", 
 1160
 61161        public static void FetchHotScenes() { SendMessage("FetchHotScenes"); }
 1162
 1163        public static void SetBaseResolution(int resolution)
 1164        {
 21165            baseResEvent.baseResolution = resolution;
 21166            SendMessage("SetBaseResolution", baseResEvent);
 21167        }
 1168
 01169        public static void ReportAnalyticsEvent(string eventName) { ReportAnalyticsEvent(eventName, null); }
 1170
 1171        public static void ReportAnalyticsEvent(string eventName, AnalyticsPayload.Property[] eventProperties)
 1172        {
 321173            analyticsEvent.name = eventName;
 321174            analyticsEvent.properties = eventProperties;
 321175            SendMessage("Track", analyticsEvent);
 321176        }
 1177
 41178        public static void FetchBalanceOfMANA() { SendMessage("FetchBalanceOfMANA"); }
 1179
 1180        public static void SendSceneExternalActionEvent(string sceneId, string type, string payload)
 1181        {
 181182            sceneExternalActionEvent.type = type;
 181183            sceneExternalActionEvent.payload = payload;
 181184            SendSceneEvent(sceneId, "externalAction", sceneExternalActionEvent);
 181185        }
 1186
 1187        public static void SetMuteUsers(string[] usersId, bool mute)
 1188        {
 01189            muteUserEvent.usersId = usersId;
 01190            muteUserEvent.mute = mute;
 01191            SendMessage("SetMuteUsers", muteUserEvent);
 01192        }
 1193
 1194        public static void SendCloseUserAvatar(bool isSignUpFlow)
 1195        {
 01196            closeUserAvatarPayload.isSignUpFlow = isSignUpFlow;
 01197            SendMessage("CloseUserAvatar", closeUserAvatarPayload);
 01198        }
 1199
 1200        public static void KillPortableExperience(string portableExperienceId)
 1201        {
 01202            killPortableExperiencePayload.portableExperienceId = portableExperienceId;
 01203            SendMessage("KillPortableExperience", killPortableExperiencePayload);
 01204        }
 1205
 1206        public static void RequestWearables(
 1207            string ownedByUser,
 1208            string[] wearableIds,
 1209            string[] collectionIds,
 1210            string context)
 1211        {
 11212            requestWearablesPayload.filters = new WearablesRequestFiltersPayload
 1213            {
 1214                ownedByUser = ownedByUser,
 1215                wearableIds = wearableIds,
 1216                collectionIds = collectionIds
 1217            };
 1218
 11219            requestWearablesPayload.context = context;
 1220
 11221            SendMessage("RequestWearables", requestWearablesPayload);
 11222        }
 1223
 1224        public static void SearchENSOwner(string name, int maxResults)
 1225        {
 61226            searchEnsOwnerPayload.name = name;
 61227            searchEnsOwnerPayload.maxResults = maxResults;
 1228
 61229            SendMessage("SearchENSOwner", searchEnsOwnerPayload);
 61230        }
 1231
 1232        public static void RequestUserProfile(string userId)
 1233        {
 141234            stringPayload.value = userId;
 141235            SendMessage("RequestUserProfile", stringPayload);
 141236        }
 1237
 101238        public static void ReportAvatarFatalError() { SendMessage("ReportAvatarFatalError"); }
 1239
 1240        public static void UnpublishScene(Vector2Int sceneCoordinates)
 1241        {
 21242            var payload = new UnpublishScenePayload() { coordinates = $"{sceneCoordinates.x},{sceneCoordinates.y}" };
 21243            SendMessage("UnpublishScene", payload);
 21244        }
 1245    }
 1246}

Methods/Properties

WebInterface()
StartStatefulMode(System.String)
StopStatefulMode(System.String)
SceneReady(System.String)
ActivateRenderingACK()
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)
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)
SendUserEmail(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)