Function default

  • simple chat

    Parameters

    Returns {
        initialize(options?) => void;
    }

    • initialize:function
      • Parameters

        • Optional options: {
              addLog?: false | ((message) => unknown);
              balloon?: true | {
                  local?: boolean;
                  nameplatePositionHeightOptions?: NameplatePositionHeightOptions;
                  position?: {
                      x?: number;
                      y?: number;
                  };
                  textTextureOptions?: ChatBalloonTextTexrureOptions;
              };
              handleChatMessage?: ((onChatMessage) => unknown);
              notifySound?: {
                  audioSrc: string;
                  volume?: number;
              };
          }
          • Optional addLog?: false | ((message) => unknown)
          • Optional balloon?: true | {
                local?: boolean;
                nameplatePositionHeightOptions?: NameplatePositionHeightOptions;
                position?: {
                    x?: number;
                    y?: number;
                };
                textTextureOptions?: ChatBalloonTextTexrureOptions;
            }
          • Optional handleChatMessage?: ((onChatMessage) => unknown)
              • (onChatMessage): unknown
              • Parameters

                • onChatMessage: ((chatMessage) => unknown)
                    • (chatMessage): unknown
                    • Parameters

                      • chatMessage: string

                      Returns unknown

                Returns unknown

          • Optional notifySound?: {
                audioSrc: string;
                volume?: number;
            }
            • audioSrc: string
            • Optional volume?: number

        Returns void

Generated using TypeDoc