Skip to content

JA Runtime Helpers B

Codex edited this page Oct 12, 2026 · 1 revision

uk · ru · en · de · fr · it · es · zh-tw · ja · ko

補助関数 B

内部実装のコードです。単独のスクリプトとして実行できません。

ClassicUO.CSharp.CSharpCallbacks.CommandWords

以下の条件を確認し、示された結果を返します。

引数: command

ソース: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:449.

private static string[] CommandWords(string command)

結果: string[].

結果: words.ToArray().

呼び出し: word.Append, char.IsWhiteSpace, words.Add, word.ToString, word.Clear, words.ToArray.

条件: quote != '\0'; letter == quote; letter is '\'' or '"'; char.IsWhiteSpace(letter).

内部実装のコードです。単独のスクリプトとして実行できません。

private static string[] CommandWords(string command)
    {
        var words = new List<string>(); var word = new System.Text.StringBuilder(); char quote = '\0'; bool started = false;
        foreach (char letter in command)
        {
            if (quote != '\0') { if (letter == quote) quote = '\0'; else word.Append(letter); started = true; }
            else if (letter is '\'' or '"') { quote = letter; started = true; }
            else if (char.IsWhiteSpace(letter)) { if (started) { words.Add(word.ToString()); word.Clear(); started = false; } }
            else { word.Append(letter); started = true; }
        }
        if (quote != '\0') throw new ArgumentException("Unclosed quote in callback command.");
        if (started) words.Add(word.ToString());
        return words.ToArray();
    }

ClassicUO.CSharp.CSharpCallbacks.IsRunning

以下の式の値を返します。

引数: name

ソース: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:168.

public bool IsRunning(string name)

結果: bool.

呼び出し: Verify, active.Any.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public bool IsRunning(string name)
    {
        Verify();
        lock (sync) return active.Any(call => call.Name.Equals((name ?? "").Trim(), StringComparison.OrdinalIgnoreCase)
            && !call.Cancellation.IsCancellationRequested);
    }

ClassicUO.Game.GameActions.Attack

示された呼び出しと状態更新を実行します。

引数: world, serial

ソース: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:265.

public static void Attack(World world, uint serial)

結果: void.

呼び出し: world.Mobiles.Get, UIManager.Add, Socket.Send_AttackRequest.

条件: ProfileManager.CurrentProfile.EnabledCriminalActionQuery; m != null && (world.Player.NotorietyFlag == NotorietyFlag.Innocent || world.Player.NotorietyFlag == NotorietyFlag.Ally) && m.NotorietyFlag == NotorietyFlag.Innocent && m != world.Player.

内部実装のコードです。単独のスクリプトとして実行できません。

public static void Attack(World world, uint serial)
        {
            if (ProfileManager.CurrentProfile.EnabledCriminalActionQuery)
            {
                Mobile m = world.Mobiles.Get(serial);

                if (m != null && (world.Player.NotorietyFlag == NotorietyFlag.Innocent || world.Player.NotorietyFlag == NotorietyFlag.Ally) && m.NotorietyFlag == NotorietyFlag.Innocent && m != world.Player)
                {
                    QuestionGump messageBox = new QuestionGump
                    (
                        world,
                        ResGeneral.ThisMayFlagYouCriminal,
                        s =>
                        {
                            if (s)
                            {
                                Socket.Send_AttackRequest(serial);
                            }
                        }
                    );

                    UIManager.Add(messageBox);

                    return;
                }
            }

            world.TargetManager.NewTargetSystemSerial = serial;
            world.TargetManager.LastAttack = serial;
            Socket.Send_AttackRequest(serial);
        }

ClassicUO.Game.GameActions.RequestPartyQuit

示された呼び出しと状態更新を実行します。

引数: player

ソース: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:559.

public static void RequestPartyQuit(PlayerMobile player)

結果: void.

呼び出し: Socket.Send_PartyRemoveRequest.

内部実装のコードです。単独のスクリプトとして実行できません。

public static void RequestPartyQuit(PlayerMobile player)
        {
            Socket.Send_PartyRemoveRequest(player.Serial);
        }

ClassicUO.Game.GameActions.RequestPartyRemoveMember

示された呼び出しと状態更新を実行します。

引数: serial

ソース: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:554.

public static void RequestPartyRemoveMember(uint serial)

結果: void.

呼び出し: Socket.Send_PartyRemoveRequest.

内部実装のコードです。単独のスクリプトとして実行できません。

public static void RequestPartyRemoveMember(uint serial)
        {
            Socket.Send_PartyRemoveRequest(serial);
        }

ClassicUO.Game.GameActions.UseSecondaryAbility

示された呼び出しと状態更新を実行します。

引数: world

ソース: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:957.

public static void UseSecondaryAbility(World world)

結果: void.

呼び出し: SendAbility.

条件: world?.Player == null; ((byte) ability & 0x80) == 0.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public static void UseSecondaryAbility(World world)
        {
            if (world?.Player == null)
                return;

            ref Ability ability = ref world.Player.Abilities[1];

            if (((byte) ability & 0x80) == 0)
            {
                for (int i = 0; i < 2; i++)
                {
                    world.Player.Abilities[i] &= (Ability) 0x7F;
                }

                SendAbility(world, (byte)ability, false);
            }
            else
            {
                SendAbility(world, 0, false);
            }

            ability ^= (Ability) 0x80;
        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ActivateGumpButton

以下の式の値を返します。

引数: gumpId, buttonId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3007.

public int ActivateGumpButton(int gumpId, int buttonId)

結果: int.

結果: Invoke(() => ActivateGumpButtonUnsafe(ResolveGumpUnsafe(gumpId), buttonId)).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int ActivateGumpButton(int gumpId, int buttonId)

            => Invoke(() => ActivateGumpButtonUnsafe(ResolveGumpUnsafe(gumpId), buttonId));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ActivateGumpButtonUnsafe

以下の条件を確認し、示された結果を返します。

引数: gump, buttonId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3013.

private static int ActivateGumpButtonUnsafe(Gump gump, int buttonId)

結果: int.

結果: 0; 1.

呼び出し: logical.Fields.FirstOrDefault, logical.ChangePage, logical.OnButtonClick, `Descendants(gump).OfType()

            .FirstOrDefault`, `Descendants(gump).OfType<Button>`, `Descendants`, `gump.ChangePage`, `gump.OnButtonClick`.

条件: gump == null; gump is SessionServerGump logical; field == null || logical.IsDisposed; field.Action == ButtonAction.SwitchPage.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private static int ActivateGumpButtonUnsafe(Gump gump, int buttonId)

        {

            if (gump == null)

                return 0;



            if (gump is SessionServerGump logical)

            {

                var field = logical.Fields.FirstOrDefault(f => f.IsButton && f.ButtonId == buttonId);

                if (field == null || logical.IsDisposed) return 0;

                if (field.Action == ButtonAction.SwitchPage) logical.ChangePage(field.ToPage);

                else logical.OnButtonClick(field.ButtonId);

                return 1;

            }

            Button button = Descendants(gump).OfType<Button>()

                .FirstOrDefault(control => control.ButtonID == buttonId);

            if (button == null)

                return 0;



            if (button.ButtonAction == ButtonAction.SwitchPage)

                gump.ChangePage(button.ToPage);

            else

                gump.OnButtonClick(button.ButtonID);



            return 1;

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.AddObject

示された呼び出しと状態更新を実行します。

引数: name

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:719.

public void AddObject(string name)

結果: void.

呼び出し: string.IsNullOrWhiteSpace, Error, State.Objects.Remove, SelectObject, State.Objects.Set, ReportStatus.

条件: string.IsNullOrWhiteSpace(name) || _csharpState == null; result is Entity entity; result != null.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void AddObject(string name)

        {

            if (string.IsNullOrWhiteSpace(name) || _csharpState == null)

            {

                Error("UO.AddObject: object name is empty");

                return;

            }



            State.Objects.Remove(name);

            GameObject result = SelectObject();

            if (result is Entity entity)

            {

                State.Objects.Set(name, (int)entity.Serial);

                ReportStatus($"Object '{name}' = 0x{entity.Serial:X8}");

            }

            else if (result != null)

                Error("UO.AddObject: select an item or mobile, not a map tile");

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.BookGetPageText

以下の式の値を返します。

引数: page

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1795.

public string BookGetPageText(int page)

結果: string.

結果: Invoke(() => GetOpenBook()?.YokoGetPageText(page) ?? string.Empty).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public string BookGetPageText(int page) => Invoke(() => GetOpenBook()?.YokoGetPageText(page) ?? string.Empty);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.CharPrintEx

示された呼び出しと状態更新を実行します。

引数: id, color, font, msg

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1846.

public void CharPrintEx(int id, int color, int font, string msg)

結果: void.

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { using var journalContext = new JournalMessageContext("script"); Entity target = _world.Get(unchecked((uint)id)); if (target == null || target.IsDestroyed || string.IsNullOrEmpty(msg)) { ReportStatus($"UO.ClientPrintEx target is unavailable: 0x{(uint)id:X8}"); return; } byte selectedFont = (byte)Math.Clamp(font, byte.MinValue, byte.MaxValue); GameActions.Print(_world, target, msg, unchecked((ushort)color), GameActions.LOCAL_OVERHEAD_MESSAGE_TYPE, selectedFont, true); ReportStatus($"UO.ClientPrintEx delivered over 0x{(uint)id:X8} with font {selectedFont}"); }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { using var journalContext = new JournalMessageContext("script"); Entity target = _world.Get(unchecked((uint)id)); if (target == null || target.IsDestroyed || string.IsNullOrEmpty(msg)) { ReportStatus($"UO.ClientPrintEx target is unavailable: 0x{(uint)id:X8}"); return; } byte selectedFont = (byte)Math.Clamp(font, byte.MinValue, byte.MaxValue); GameActions.Print(_world, target, msg, unchecked((ushort)color), GameActions.LOCAL_OVERHEAD_MESSAGE_TYPE, selectedFont, true); ReportStatus($"UO.ClientPrintEx delivered over 0x{(uint)id:X8} with font {selectedFont}"); }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.World.Get: _world.Get(unchecked((uint)id)).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ReportStatus: ReportStatus($"UO.ClientPrintEx target is unavailable: 0x{(uint)id:X8}").
  • ClassicUO.Game.GameActions.Print: GameActions.Print(_world, target, msg, unchecked((ushort)color), GameActions.LOCAL_OVERHEAD_MESSAGE_TYPE, selectedFont, true).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ReportStatus: ReportStatus($"UO.ClientPrintEx delivered over 0x{(uint)id:X8} with font {selectedFont}").

内部実装のコードです。単独のスクリプトとして実行できません。

public void CharPrintEx(int id, int color, int font, string msg) => Invoke(() =>

        {

            using var journalContext = new JournalMessageContext("script");

            Entity target = _world.Get(unchecked((uint)id));

            if (target == null || target.IsDestroyed || string.IsNullOrEmpty(msg))

            {

                ReportStatus($"UO.ClientPrintEx target is unavailable: 0x{(uint)id:X8}");

                return;

            }



            byte selectedFont = (byte)Math.Clamp(font, byte.MinValue, byte.MaxValue);

            GameActions.Print(_world, target, msg, unchecked((ushort)color),

                GameActions.LOCAL_OVERHEAD_MESSAGE_TYPE, selectedFont, true);

            ReportStatus($"UO.ClientPrintEx delivered over 0x{(uint)id:X8} with font {selectedFont}");

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Count

以下の式の値を返します。

引数: type, color, containerId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2699.

public int Count(int type, int color, int containerId)

結果: int.

結果: _findFullQuantity.

呼び出し: FindType.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int Count(int type, int color, int containerId)

        {

            FindType(type, color, containerId, State.FindDistance, true);

            return _findFullQuantity;

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.FindTrade

以下の式の値を返します。

引数: index

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:246.

private ISessionTrade FindTrade(int index)

結果: ISessionTrade.

結果: index < 0 ? null : _world.Trades.Snapshot().ElementAtOrDefault(index).

呼び出し: _world.Trades.Snapshot().ElementAtOrDefault, _world.Trades.Snapshot.

内部実装のコードです。単独のスクリプトとして実行できません。

private ISessionTrade FindTrade(int index) => index < 0 ? null : _world.Trades.Snapshot().ElementAtOrDefault(index);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetAbilityName

以下の式の値を返します。

引数: abilityId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2219.

public string GetAbilityName(int abilityId)

結果: string.

内部実装のコードです。単独のスクリプトとして実行できません。

public string GetAbilityName(int abilityId) => abilityId >= 1 && abilityId <= AbilityData.Abilities.Length

            ? AbilityData.Abilities[abilityId - 1].Name

            : string.Empty;

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetCharactersForCurrentShard

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:488.

public string[] GetCharactersForCurrentShard()

結果: string[].

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { if (_world.SessionControl is { } session) return session.Characters; string account = !string.IsNullOrEmpty(LoginScene.Account) ? LoginScene.Account : Settings.GlobalSettings.Username; string server = _world.ResolveProfileServerName(); string[] known = LastCharacterManager.GetKnownCharacters(account, server); if (known.Length != 0) return known; LoginScene loginScene = Client.Game?.GetScene<LoginScene>(); if (loginScene?.Characters != null) { string[] current = loginScene.Characters .Where(name => !string.IsNullOrWhiteSpace(name)) .ToArray(); if (current.Length != 0) return current; } string currentName = _world.Player?.Name ?? string.Empty; return string.IsNullOrWhiteSpace(currentName) ? Array.Empty<string>() : new[] { currentName }; }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { if (_world.SessionControl is { } session) return session.Characters; string account = !string.IsNullOrEmpty(LoginScene.Account) ? LoginScene.Account : Settings.GlobalSettings.Username; string server = _world.ResolveProfileServerName(); string[] known = LastCharacterManager.GetKnownCharacters(account, server); if (known.Length != 0) return known; LoginScene loginScene = Client.Game?.GetScene<LoginScene>(); if (loginScene?.Characters != null) { string[] current = loginScene.Characters .Where(name => !string.IsNullOrWhiteSpace(name)) .ToArray(); if (current.Length != 0) return current; } string currentName = _world.Player?.Name ?? string.Empty; return string.IsNullOrWhiteSpace(currentName) ? Array.Empty<string>() : new[] { currentName }; }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.World.ResolveProfileServerName: _world.ResolveProfileServerName().
  • ClassicUO.Game.Managers.LastCharacterManager.GetKnownCharacters: LastCharacterManager.GetKnownCharacters(account, server).

内部実装のコードです。単独のスクリプトとして実行できません。

public string[] GetCharactersForCurrentShard() => Invoke(() =>

        {

            if (_world.SessionControl is { } session)

                return session.Characters;

            string account = !string.IsNullOrEmpty(LoginScene.Account)

                ? LoginScene.Account

                : Settings.GlobalSettings.Username;

            string server = _world.ResolveProfileServerName();

            string[] known = LastCharacterManager.GetKnownCharacters(account, server);

            if (known.Length != 0)

                return known;



            LoginScene loginScene = Client.Game?.GetScene<LoginScene>();

            if (loginScene?.Characters != null)

            {

                string[] current = loginScene.Characters

                    .Where(name => !string.IsNullOrWhiteSpace(name))

                    .ToArray();

                if (current.Length != 0)

                    return current;

            }



            string currentName = _world.Player?.Name ?? string.Empty;

            return string.IsNullOrWhiteSpace(currentName)

                ? Array.Empty<string>()

                : new[] { currentName };

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetDir

以下の式の値を返します。

引数: id

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2727.

public int GetDir(int id)

結果: int.

結果: Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile) is Mobile m ? (int)(m.Direction & Direction.Mask) : 0).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetDir(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile) is Mobile m ? (int)(m.Direction & Direction.Mask) : 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetGumpFullLines

以下の式の値を返します。

引数: index

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2829.

public string[] GetGumpFullLines(int index)

結果: string[].

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public string[] GetGumpFullLines(int index) => Invoke(() =>

        {

            Gump gump = ServerGumpsUnsafe().ElementAtOrDefault(index);

            return gump == null ? Array.Empty<string>() : Descendants(gump).Select(DescribeControl).ToArray();

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetGumpTextLines

以下の式の値を返します。

引数: index

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2817.

public string[] GetGumpTextLines(int index)

結果: string[].

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public string[] GetGumpTextLines(int index) => Invoke(() =>

        {

            Gump gump = ServerGumpsUnsafe().ElementAtOrDefault(index);

            return gump == null ? Array.Empty<string>() : Descendants(gump).Select(GetControlText).Where(text => !string.IsNullOrWhiteSpace(text)).ToArray();

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetLastMenuIdentity

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:676.

public string GetLastMenuIdentity()

結果: string.

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { SessionMenu menu = _world.ServerMenus.Snapshot().LastOrDefault(); if (menu == null) return string.Empty; string items = string.Join("\u001F", menu.GetYokoItemsEx()); return $"{menu.LocalSerial:X8}:{menu.ServerSerial:X8}:{menu.YokoCaption}:{items}"; }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { SessionMenu menu = _world.ServerMenus.Snapshot().LastOrDefault(); if (menu == null) return string.Empty; string items = string.Join("\u001F", menu.GetYokoItemsEx()); return $"{menu.LocalSerial:X8}:{menu.ServerSerial:X8}:{menu.YokoCaption}:{items}"; }). オーバーロード候補です。ソースは選択された候補を確定していません。

内部実装のコードです。単独のスクリプトとして実行できません。

public string GetLastMenuIdentity() => Invoke(() =>

        {

            SessionMenu menu = _world.ServerMenus.Snapshot().LastOrDefault();

            if (menu == null)

                return string.Empty;

            string items = string.Join("\u001F", menu.GetYokoItemsEx());

            return $"{menu.LocalSerial:X8}:{menu.ServerSerial:X8}:{menu.YokoCaption}:{items}";

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetMaxMana

以下の式の値を返します。

引数: id

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:235.

public int GetMaxMana(int id)

結果: int.

結果: Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.ManaMax ?? 0).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetMaxMana(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.ManaMax ?? 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetMultiAllParts

以下の式の値を返します。

引数: multiId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2329.

public int[][] GetMultiAllParts(int multiId)

結果: int[][].

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { if (!_world.HouseManager.TryGetHouse(unchecked((uint)multiId), out House house)) return Array.Empty<int[]>(); return house.Components .Where(component => component != null && !component.IsDestroyed) .Select(component => new[] { (int)component.Graphic, (int)component.Hue, (int)component.X, (int)component.Y, (int)component.Z, component.MultiOffsetX, component.MultiOffsetY, component.MultiOffsetZ, multiId }) .ToArray(); }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { if (!_world.HouseManager.TryGetHouse(unchecked((uint)multiId), out House house)) return Array.Empty<int[]>(); return house.Components .Where(component => component != null && !component.IsDestroyed) .Select(component => new[] { (int)component.Graphic, (int)component.Hue, (int)component.X, (int)component.Y, (int)component.Z, component.MultiOffsetX, component.MultiOffsetY, component.MultiOffsetZ, multiId }) .ToArray(); }). オーバーロード候補です。ソースは選択された候補を確定していません。

内部実装のコードです。単独のスクリプトとして実行できません。

public int[][] GetMultiAllParts(int multiId) => Invoke(() =>

        {

            if (!_world.HouseManager.TryGetHouse(unchecked((uint)multiId), out House house))

                return Array.Empty<int[]>();



            return house.Components

                .Where(component => component != null && !component.IsDestroyed)

                .Select(component => new[]

                {

                    (int)component.Graphic,

                    (int)component.Hue,

                    (int)component.X,

                    (int)component.Y,

                    (int)component.Z,

                    component.MultiOffsetX,

                    component.MultiOffsetY,

                    component.MultiOffsetZ,

                    multiId

                })

                .ToArray();

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetShopList

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3567.

public string[] GetShopList()

結果: string[].

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => _world.Shops.Last?.GetItems() ?? UIManager.Gumps.OfType<ShopGump>().LastOrDefault(g => g.World == _world && !g.IsDisposed && g.ShopState == null)?.GetYokoShopItems() ?? Array.Empty<string>()). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => _world.Shops.Last?.GetItems() ?? UIManager.Gumps.OfType<ShopGump>().LastOrDefault(g => g.World == _world && !g.IsDisposed && g.ShopState == null)?.GetYokoShopItems() ?? Array.Empty<string>()). オーバーロード候補です。ソースは選択された候補を確定していません。

内部実装のコードです。単独のスクリプトとして実行できません。

public string[] GetShopList() => Invoke(() => _world.Shops.Last?.GetItems()

            ?? UIManager.Gumps.OfType<ShopGump>().LastOrDefault(g => g.World == _world && !g.IsDisposed && g.ShopState == null)?.GetYokoShopItems() ?? Array.Empty<string>());

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetSkillLockState

以下の式の値を返します。

引数: name

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2101.

public int GetSkillLockState(string name)

結果: int.

結果: Invoke(() => FindSkillUnsafe(name) is Skill skill ? (int)skill.Lock : -1).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetSkillLockState(string name) => Invoke(() => FindSkillUnsafe(name) is Skill skill ? (int)skill.Lock : -1);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetStamina

以下の式の値を返します。

引数: id

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:233.

public int GetStamina(int id)

結果: int.

結果: Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Stamina ?? 0).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetStamina(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Stamina ?? 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Gold

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:157.

public int Gold

結果: int.

結果: Invoke(() => (int)(CurrentPlayer?.Gold ?? 0)).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int Gold => Invoke(() => (int)(CurrentPlayer?.Gold ?? 0));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IgnoreReset

示された呼び出しと状態更新を実行します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2706.

public void IgnoreReset()

結果: void.

呼び出し: State.IgnoredSerials.Clear.

内部実装のコードです。単独のスクリプトとして実行できません。

public void IgnoreReset() => State.IgnoredSerials.Clear();

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.InJournalFiltered

以下の条件を確認し、示された結果を返します。

引数: pattern, serial, color, startTime, endTime, newestOnly, caseSensitive

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1891.

public int InJournalFiltered(string pattern, int serial, int color, int startTime, int endTime, bool newestOnly, bool caseSensitive)

結果: int.

結果: FindJournal(pattern, start, end, -1, false, !caseSensitive, serial, color, newestOnly).

呼び出し: now.AddMilliseconds, Math.Max, Math.Min, FindJournal.

条件: startTime > 0 || endTime > 0.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int InJournalFiltered(string pattern, int serial, int color, int startTime, int endTime, bool newestOnly, bool caseSensitive)

        {

            DateTime? start = null;

            DateTime? end = null;

            if (startTime > 0 || endTime > 0)

            {

                DateTime now = DateTime.Now;

                start = now.AddMilliseconds(-Math.Max(startTime, endTime));

                end = now.AddMilliseconds(-Math.Min(startTime, endTime));

            }

            return FindJournal(pattern, start, end, -1, false, !caseSensitive, serial, color, newestOnly);

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.JournalMessageType

以下の式の値を返します。

引数: index

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1970.

public int JournalMessageType(int index)

結果: int.

結果: GetJournalEntry(index) is JournalEntry entry ? (int)entry.MessageType : 0.

呼び出し: GetJournalEntry.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int JournalMessageType(int index) => GetJournalEntry(index) is JournalEntry entry ? (int)entry.MessageType : 0;

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.JournalName

以下の式の値を返します。

引数: index

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1967.

public string JournalName(int index)

結果: string.

結果: GetJournalEntry(index)?.Name ?? string.Empty.

呼び出し: GetJournalEntry.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public string JournalName(int index) => GetJournalEntry(index)?.Name ?? string.Empty;

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.MatchesFindIdentity

以下の式の値を返します。

引数: gameObject, wantedTypes, wantedColors, ignoredTypes

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3791.

private bool MatchesFindIdentity(Entity gameObject, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, IgnoreTypeFilter ignoredTypes)

結果: bool.

呼び出し: State.IgnoredSerials.Contains, ignoredTypes.Matches, wantedTypes.Contains, wantedColors.Contains.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private bool MatchesFindIdentity(Entity gameObject, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, IgnoreTypeFilter ignoredTypes)

        {

            return gameObject != null

                && !gameObject.IsDestroyed

                && !State.IgnoredSerials.Contains(unchecked((int)gameObject.Serial))

                && !ignoredTypes.Matches(gameObject.Graphic, gameObject.Hue)

                && (wantedTypes.Count == 0 || wantedTypes.Contains(gameObject.Graphic))

                && (wantedColors.Count == 0 || wantedColors.Contains(gameObject.Hue));

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.RegisterFound

示された呼び出しと状態更新を実行します。

引数: item

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3827.

private void RegisterFound(Item item)

結果: void.

呼び出し: Math.Max, RegisterFoundSerial.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private void RegisterFound(Item item)

        {

            _findCount++;

            _findFullQuantity += Math.Max(1, (int)item.Amount);

            RegisterFoundSerial(unchecked((int)item.Serial));

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.RequestInteractiveHideTarget

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1616.

public int RequestInteractiveHideTarget()

結果: int.

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int RequestInteractiveHideTarget()

        {

            return Invoke(() =>

            {

                _world.TargetManager.SetTargeting(selected =>

                {

                    if (selected is not Entity entity || entity.IsDestroyed)

                    {

                        PrintInteractiveResult("UO.Hide: select a loaded item or mobile.");

                        return;

                    }



                    if (entity.Serial == _world.Player?.Serial)

                    {

                        PrintInteractiveResult("UO.Hide: the player cannot be hidden locally.");

                        return;

                    }



                    HideLocally(entity);

                    PrintInteractiveResult($"UO.Hide: hidden 0x{entity.Serial:X8} locally.");

                }, 0, TargetType.Neutral);

                PrintInteractiveResult("UO.Hide: target an item or mobile to hide locally.");

                return 1;

            });

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ResolveClassicUOAbilityId

コードに示す規則に従って引数を解析または解決します。

引数: abilityNameOrId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2198.

internal static int ResolveClassicUOAbilityId(string abilityNameOrId)

結果: int.

結果: numericId >= 1 && numericId <= AbilityData.Abilities.Length ? numericId : 0; 0; index + 1.

呼び出し: (abilityNameOrId ?? string.Empty).Trim, int.TryParse, NormalizeAbilityName, ((Ability)(index + 1)).ToString.

条件: int.TryParse(requested, NumberStyles.Integer, CultureInfo.InvariantCulture, out int numericId); normalized.Length == 0; `NormalizeAbilityName(AbilityData.Abilities[index].Name) == normalized

                || NormalizeAbilityName(((Ability)(index + 1)).ToString()) == normalized`.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

internal static int ResolveClassicUOAbilityId(string abilityNameOrId)

        {

            string requested = (abilityNameOrId ?? string.Empty).Trim();

            if (int.TryParse(requested, NumberStyles.Integer, CultureInfo.InvariantCulture, out int numericId))

                return numericId >= 1 && numericId <= AbilityData.Abilities.Length ? numericId : 0;



            string normalized = NormalizeAbilityName(requested);

            if (normalized.Length == 0)

                return 0;



            for (int index = 0; index < AbilityData.Abilities.Length; index++)

            {

                if (NormalizeAbilityName(AbilityData.Abilities[index].Name) == normalized

                    || NormalizeAbilityName(((Ability)(index + 1)).ToString()) == normalized)

                    return index + 1;

            }



            return 0;

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ShowGumpInspector

以下の式の値を返します。

引数: gumpId

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3039.

public int ShowGumpInspector(int gumpId)

結果: int.

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { Gump gump = ResolveGumpUnsafe(gumpId); if (gump == null) { Error($"UO.InfoGump: gump {gumpId} was not found"); return 0; } _selectedServerGump = gump; List<Gump> gumps = ServerGumpsUnsafe(); int index = gumps.IndexOf(gump); List<Control> controls = Descendants(gump).ToList(); var document = new StringBuilder(); document.AppendLine("_____ C# InfoGump _____"); document.AppendLine($"Index={index}"); document.AppendLine($"Serial=0x{gump.LocalSerial:X8}"); document.AppendLine($"GumpID=0x{gump.ServerSerial:X8}"); document.AppendLine($"X={gump.X} Y={gump.Y} Width={gump.Width} Height={gump.Height}"); document.AppendLine($"ActivePage={gump.ActivePage}"); document.AppendLine($"CanClose={gump.CanCloseWithRightClick}"); document.AppendLine($"Controls={controls.Count}"); document.AppendLine(); document.AppendLine("Buttons:"); foreach (Control button in controls.Where(IsButtonControl)) document.AppendLine(DescribeControl(button)); document.AppendLine(); document.AppendLine("Checks / Radios:"); foreach (Control checkbox in controls.Where(c => c is Checkbox || c is SessionGumpControl { Kind: "checkbox" or "radio" })) document.AppendLine(DescribeControl(checkbox)); document.AppendLine(); document.AppendLine("Text / Entries / HTML:"); foreach (Control control in controls.Where(control => GetControlText(control) != null)) document.AppendLine(DescribeControl(control)); document.AppendLine(); document.AppendLine("All controls:"); for (int controlIndex = 0; controlIndex < controls.Count; controlIndex++) document.AppendLine($"{controlIndex}] {DescribeControl(controls[controlIndex])}"); // InfoGump is an explicit request to open the inspector. Do not gate it // behind the generic interactiveCommands flag used by target-style helpers. _infoGumpOpener(_world, $"C# Gump Inspector [{index}]", document.ToString()); return 1; }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { Gump gump = ResolveGumpUnsafe(gumpId); if (gump == null) { Error($"UO.InfoGump: gump {gumpId} was not found"); return 0; } _selectedServerGump = gump; List<Gump> gumps = ServerGumpsUnsafe(); int index = gumps.IndexOf(gump); List<Control> controls = Descendants(gump).ToList(); var document = new StringBuilder(); document.AppendLine("_____ C# InfoGump _____"); document.AppendLine($"Index={index}"); document.AppendLine($"Serial=0x{gump.LocalSerial:X8}"); document.AppendLine($"GumpID=0x{gump.ServerSerial:X8}"); document.AppendLine($"X={gump.X} Y={gump.Y} Width={gump.Width} Height={gump.Height}"); document.AppendLine($"ActivePage={gump.ActivePage}"); document.AppendLine($"CanClose={gump.CanCloseWithRightClick}"); document.AppendLine($"Controls={controls.Count}"); document.AppendLine(); document.AppendLine("Buttons:"); foreach (Control button in controls.Where(IsButtonControl)) document.AppendLine(DescribeControl(button)); document.AppendLine(); document.AppendLine("Checks / Radios:"); foreach (Control checkbox in controls.Where(c => c is Checkbox || c is SessionGumpControl { Kind: "checkbox" or "radio" })) document.AppendLine(DescribeControl(checkbox)); document.AppendLine(); document.AppendLine("Text / Entries / HTML:"); foreach (Control control in controls.Where(control => GetControlText(control) != null)) document.AppendLine(DescribeControl(control)); document.AppendLine(); document.AppendLine("All controls:"); for (int controlIndex = 0; controlIndex < controls.Count; controlIndex++) document.AppendLine($"{controlIndex}] {DescribeControl(controls[controlIndex])}"); // InfoGump is an explicit request to open the inspector. Do not gate it // behind the generic interactiveCommands flag used by target-style helpers. _infoGumpOpener(_world, $"C# Gump Inspector [{index}]", document.ToString()); return 1; }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ResolveGumpUnsafe: ResolveGumpUnsafe(gumpId).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Error: Error($"UO.InfoGump: gump {gumpId} was not found").
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ServerGumpsUnsafe: ServerGumpsUnsafe().
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Descendants: Descendants(gump).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.DescribeControl: DescribeControl(button).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.DescribeControl: DescribeControl(checkbox).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetControlText: GetControlText(control).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.DescribeControl: DescribeControl(control).
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.DescribeControl: DescribeControl(controls[controlIndex]).

内部実装のコードです。単独のスクリプトとして実行できません。

public int ShowGumpInspector(int gumpId) => Invoke(() =>

        {

            Gump gump = ResolveGumpUnsafe(gumpId);

            if (gump == null)

            {

                Error($"UO.InfoGump: gump {gumpId} was not found");

                return 0;

            }



            _selectedServerGump = gump;

            List<Gump> gumps = ServerGumpsUnsafe();

            int index = gumps.IndexOf(gump);

            List<Control> controls = Descendants(gump).ToList();

            var document = new StringBuilder();

            document.AppendLine("_____ C# InfoGump _____");

            document.AppendLine($"Index={index}");

            document.AppendLine($"Serial=0x{gump.LocalSerial:X8}");

            document.AppendLine($"GumpID=0x{gump.ServerSerial:X8}");

            document.AppendLine($"X={gump.X} Y={gump.Y} Width={gump.Width} Height={gump.Height}");

            document.AppendLine($"ActivePage={gump.ActivePage}");

            document.AppendLine($"CanClose={gump.CanCloseWithRightClick}");

            document.AppendLine($"Controls={controls.Count}");

            document.AppendLine();

            document.AppendLine("Buttons:");

            foreach (Control button in controls.Where(IsButtonControl))

                document.AppendLine(DescribeControl(button));

            document.AppendLine();

            document.AppendLine("Checks / Radios:");

            foreach (Control checkbox in controls.Where(c => c is Checkbox || c is SessionGumpControl { Kind: "checkbox" or "radio" }))

                document.AppendLine(DescribeControl(checkbox));

            document.AppendLine();

            document.AppendLine("Text / Entries / HTML:");

            foreach (Control control in controls.Where(control => GetControlText(control) != null))

                document.AppendLine(DescribeControl(control));

            document.AppendLine();

            document.AppendLine("All controls:");

            for (int controlIndex = 0; controlIndex < controls.Count; controlIndex++)

                document.AppendLine($"{controlIndex}] {DescribeControl(controls[controlIndex])}");



            // InfoGump is an explicit request to open the inspector. Do not gate it

            // behind the generic interactiveCommands flag used by target-style helpers.

            _infoGumpOpener(_world, $"C# Gump Inspector [{index}]", document.ToString());

            return 1;

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ShowJournal

示された呼び出しと状態更新を実行します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1668.

public void ShowJournal()

結果: void.

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void ShowJournal() => Invoke(() => GameActions.OpenJournal(_world));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.TileName

以下の条件を確認し、示された結果を返します。

引数: tile

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3893.

private static string TileName(GameObject tile)

結果: string.

結果: land.TileData.Name ?? string.Empty.

条件: tile is Land land.

内部実装のコードです。単独のスクリプトとして実行できません。

private static string TileName(GameObject tile)

        {

            if (tile is Land land)

                return land.TileData.Name ?? string.Empty;

            return tile.Graphic < Client.UO.FileManager.TileData.StaticData.Length

                ? Client.UO.FileManager.TileData.StaticData[tile.Graphic].Name ?? string.Empty

                : string.Empty;

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ToggleFly

示された呼び出しと状態更新を実行します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1445.

public void ToggleFly()

結果: void.

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void ToggleFly() => Invoke(() => NetClient.Socket.Send_ToggleGargoyleFlying());

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.TryOpenDoorForStep

以下の式の値を返します。

引数: direction

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1413.

public int TryOpenDoorForStep(int direction)

結果: int.

呼び出し: Invoke.

呼び出し:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { if (_world.Player == null || direction < 0 || direction > 7) return 0; return _world.Player.TryOpenDoor((Direction)direction, true) ? 1 : 0; }). オーバーロード候補です。ソースは選択された候補を確定していません。
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { if (_world.Player == null || direction < 0 || direction > 7) return 0; return _world.Player.TryOpenDoor((Direction)direction, true) ? 1 : 0; }). オーバーロード候補です。ソースは選択された候補を確定していません。

内部実装のコードです。単独のスクリプトとして実行できません。

public int TryOpenDoorForStep(int direction) => Invoke(() =>

        {

            if (_world.Player == null || direction < 0 || direction > 7)

                return 0;

            return _world.Player.TryOpenDoor((Direction)direction, true) ? 1 : 0;

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Weight

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:155.

public int Weight

結果: int.

結果: Invoke(() => CurrentPlayer?.Weight ?? 0).

呼び出し: Invoke.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int Weight => Invoke(() => CurrentPlayer?.Weight ?? 0);

ClassicUO.Game.Managers.ClientLanguageManager.TranslateUi

以下の条件を確認し、示された結果を返します。

引数: text

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClientLanguageManager.cs:123.

internal static string TranslateUi(string text)

結果: string.

結果: text ?? string.Empty; text; translated.

呼び出し: string.IsNullOrEmpty, translations.TryGetValue, text.Trim, text.IndexOf, text.Substring.

条件: string.IsNullOrEmpty(text); translations.Count == 0; translations.TryGetValue(text, out string translated); `trimmed.Length == text.Length ||

            !translations.TryGetValue(trimmed, out translated)`.

内部実装のコードです。単独のスクリプトとして実行できません。

internal static string TranslateUi(string text)

        {

            if (string.IsNullOrEmpty(text))

                return text ?? string.Empty;



            Dictionary<string, string> translations = _uiTranslations;

            if (translations.Count == 0)

                return text;



            if (translations.TryGetValue(text, out string translated))

                return translated;



            string trimmed = text.Trim();

            if (trimmed.Length == text.Length ||

                !translations.TryGetValue(trimmed, out translated))

            {

                return text;

            }



            int start = text.IndexOf(trimmed, StringComparison.Ordinal);

            return text.Substring(0, start) + translated +

                   text.Substring(start + trimmed.Length);

        }

ClassicUO.Game.Managers.JournalManager.SetYokoHistoryLimit

示された呼び出しと状態更新を実行します。

引数: length

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/JournalManager.cs:42.

internal static void SetYokoHistoryLimit(int length)

結果: void.

呼び出し: Math.Clamp, Entries.RemoveFromFront.

内部実装のコードです。単独のスクリプトとして実行できません。

internal static void SetYokoHistoryLimit(int length)
        {
            _yokoHistoryLimit = Math.Clamp(length, 1, Constants.MAX_JOURNAL_HISTORY_COUNT);
            while (Entries.Count > _yokoHistoryLimit)
                Entries.RemoveFromFront();
        }

ClassicUO.Game.Managers.YokoInjectionManager.BeginScriptControlledDisconnect

示された呼び出しと状態更新を実行します。

引数: scriptKey

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:777.

internal void BeginScriptControlledDisconnect(string scriptKey)

結果: void.

呼び出し: _running.TryGetValue, script.BeginControlledDisconnect.

条件: scriptKey != null && _running.TryGetValue(scriptKey, out YokoRunningScript script).

内部実装のコードです。単独のスクリプトとして実行できません。

internal void BeginScriptControlledDisconnect(string scriptKey)
        {
            if (scriptKey != null && _running.TryGetValue(scriptKey, out YokoRunningScript script))
                script.BeginControlledDisconnect();
        }

ClassicUO.Game.Managers.YokoInjectionManager.FindProcedureByName

以下の条件を確認し、示された結果を返します。

引数: name

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3497.

internal YokoProcedureInfo FindProcedureByName(string name)

結果: YokoProcedureInfo.

結果: null; qualified.

呼び出し: string.IsNullOrWhiteSpace, RequestedAutoloadPath, _proceduresByKey.TryGetValue, _procedures.Where(p => p.Name.Equals(name, StringComparison.OrdinalIgnoreCase)).ToArray, _procedures.Where, Path.GetFullPath, TryGetSelectedAutoloadActionProcedures, freshDeclarations.Where(p => p.Name.Equals(name, StringComparison.OrdinalIgnoreCase)).ToArray.

条件: string.IsNullOrWhiteSpace(name); _proceduresByKey.TryGetValue(name, out YokoProcedureInfo qualified); !string.IsNullOrWhiteSpace(selectedPath); TryGetSelectedAutoloadActionProcedures(fullPath, out var freshDeclarations).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

internal YokoProcedureInfo FindProcedureByName(string name)
        {
            if (string.IsNullOrWhiteSpace(name)) return null;
            // Every top-level file is indexed, including backups. Named calls
            // follow the character selection; explicit keys keep IDE snapshots.
            string selectedPath = RequestedAutoloadPath();
            YokoProcedureInfo[] matches;
            HashSet<string> loadedFiles;
            lock (_proceduresLock)
            {
                if (_proceduresByKey.TryGetValue(name, out YokoProcedureInfo qualified))
                    return qualified;
                matches = _procedures.Where(p => p.Name.Equals(name, StringComparison.OrdinalIgnoreCase)).ToArray();
                loadedFiles = new HashSet<string>(_ideLoadedFiles, StringComparer.OrdinalIgnoreCase);
            }
            if (!string.IsNullOrWhiteSpace(selectedPath))
            {
                string fullPath = Path.GetFullPath(selectedPath);
                if (TryGetSelectedAutoloadActionProcedures(fullPath, out var freshDeclarations))
                {
                    // Load/Reload validates a disk snapshot without replacing
                    // unsaved IDE documents. Names must use that fresh view;
                    // deleted names must not resolve to a cached backup.
                    YokoProcedureInfo[] fresh = freshDeclarations.Where(p =>
                        p.Name.Equals(name, StringComparison.OrdinalIgnoreCase)).ToArray();
                    if (fresh.Length != 0) return fresh.Length == 1
                        && !IsSelectedAutoloadExplicitlyUnloaded(fullPath) ? fresh[0] : null;
                    if (matches.Any(p => string.Equals(Path.GetFullPath(p.FilePath),
                            fullPath, StringComparison.OrdinalIgnoreCase)))
                        return null;
                    matches = matches.Where(p => !string.Equals(Path.GetFullPath(p.FilePath),
                            fullPath, StringComparison.OrdinalIgnoreCase)
                        && (!IsTopLevelAutoloadFile(p.FilePath)
                            || loadedFiles.Contains(Path.GetFullPath(p.FilePath)))).ToArray();
                }
                YokoProcedureInfo[] selected = matches.Where(p => string.Equals(
                    Path.GetFullPath(p.FilePath), fullPath, StringComparison.OrdinalIgnoreCase)).ToArray();
                if (selected.Length != 0) return selected.Length == 1
                    && !IsSelectedAutoloadExplicitlyUnloaded(fullPath) ? selected[0] : null;
            }
            // Unique separately loaded helpers remain callable. Ambiguous names
            // need an explicit key; never choose an arbitrary sorted backup.
            return matches.Length == 1 && !IsSelectedAutoloadExplicitlyUnloaded(Path.GetFullPath(matches[0].FilePath))
                ? matches[0] : null;
        }

ClassicUO.Game.Managers.YokoInjectionManager.IsTopLevelAutoloadFile

以下の式の値を返します。

引数: filePath

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3552.

private bool IsTopLevelAutoloadFile(string filePath)

結果: bool.

呼び出し: string.Equals, Path.GetDirectoryName, Path.GetFullPath, Path.TrimEndingDirectorySeparator.

内部実装のコードです。単独のスクリプトとして実行できません。

private bool IsTopLevelAutoloadFile(string filePath) => string.Equals(
            Path.GetDirectoryName(Path.GetFullPath(filePath)),
            Path.TrimEndingDirectorySeparator(Path.GetFullPath(AutoloadPath)),
            StringComparison.OrdinalIgnoreCase);

ClassicUO.Game.Managers.YokoInjectionManager.SetScriptName

示された呼び出しと状態更新を実行します。

引数: index, value

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:2830.

internal void SetScriptName(int index, string value)

結果: void.

呼び出し: ElementAt, RunningScripts, string.Equals, MarkRuntimeStateChanged.

条件: script != null && !string.Equals(script.Name, nextName, StringComparison.Ordinal).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

internal void SetScriptName(int index, string value)
        {
            YokoRunningScript script = ElementAt(RunningScripts(), index);
            string nextName = value ?? string.Empty;
            if (script != null && !string.Equals(script.Name, nextName, StringComparison.Ordinal))
            {
                script.Name = nextName;
                MarkRuntimeStateChanged();
            }
        }

ClassicUO.Game.Managers.YokoInjectionManager.SetSpeechFilter

示された呼び出しと状態更新を実行します。

引数: enabled

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:726.

internal void SetSpeechFilter(bool enabled)

結果: void.

内部実装のコードです。単独のスクリプトとして実行できません。

internal void SetSpeechFilter(bool enabled) => _speechFilterEnabled = enabled;

ClassicUO.Game.Managers.YokoInjectionManager.StartScript

以下の条件を確認し、示された結果を返します。

引数: scriptPath

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:2878.

internal int StartScript(string scriptPath)

結果: int.

結果: 0xFFFF; GetScriptsCount().

呼び出し: string.IsNullOrWhiteSpace, Path.IsPathRooted, Path.GetFullPath, Path.Combine, File.Exists, ReadScriptContent, SelectFileEntryPoint, DiscoverProcedures.

条件: string.IsNullOrWhiteSpace(scriptPath); !File.Exists(fullPath); procedure == null || !RunProcedure(procedure, Array.Empty<string>()).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

internal int StartScript(string scriptPath)
        {
            if (string.IsNullOrWhiteSpace(scriptPath))
                return 0xFFFF;

            string fullPath;
            string content;
            try
            {
                fullPath = Path.IsPathRooted(scriptPath)
                    ? Path.GetFullPath(scriptPath)
                    : Path.GetFullPath(Path.Combine(AutoloadPath, scriptPath));
                if (!File.Exists(fullPath)) return 0xFFFF;
                content = ReadScriptContent(fullPath);
            }
            catch { return 0xFFFF; }

            YokoProcedureInfo procedure = SelectFileEntryPoint(
                DiscoverProcedures(content, fullPath, Path.GetFileName(fullPath)), fullPath);
            if (procedure == null || !RunProcedure(procedure, Array.Empty<string>()))
                return 0xFFFF;

            return GetScriptsCount();
        }

ClassicUO.Game.Managers.YokoInjectionManager.TryGetSelectedAutoloadActionProcedures

以下の式の値を返します。

引数: path, procedures

ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoSelectedAutoloadActions.cs:69.

internal bool TryGetSelectedAutoloadActionProcedures(string path, out IReadOnlyList<YokoProcedureInfo> procedures)

結果: bool.

結果: procedures != null.

呼び出し: string.Equals.

内部実装のコードです。単独のスクリプトとして実行できません。

internal bool TryGetSelectedAutoloadActionProcedures(string path, out IReadOnlyList<YokoProcedureInfo> procedures)

    {

        lock (_selectedAutoloadActionLock)

        {

            procedures = string.Equals(path, _selectedAutoloadStatePath, StringComparison.OrdinalIgnoreCase)

                ? _selectedAutoloadDeclarations : null;

            return procedures != null;

        }

    }

ClassicUO.Game.UI.Gumps.YokoScriptEditorGump.Open

以下の式の値を返します。

引数: world, filePath

ソース: Project_Full/src/ClassicUO.Client/Game/UI/Gumps/YokoScriptEditorGump.cs:14.

internal static YokoTheiaIdeGump Open(World world, string filePath = null)

結果: YokoTheiaIdeGump.

結果: YokoTheiaIdeGump.Open(world, filePath).

呼び出し: YokoTheiaIdeGump.Open.

内部実装のコードです。単独のスクリプトとして実行できません。

internal static YokoTheiaIdeGump Open(World world, string filePath = null) => YokoTheiaIdeGump.Open(world, filePath);

InjectionScript.Runtime.InjectionApiUO.AlwaysRun

示された呼び出しと状態更新を実行します。

引数: enabled

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3773.

public void AlwaysRun(int enabled)

結果: void.

呼び出し: bridge.AlwaysRun.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void AlwaysRun(int enabled) => bridge.AlwaysRun(enabled);

InjectionScript.Runtime.InjectionApiUO.BuildPortablePath

以下の条件を確認し、示された結果を返します。

引数: startX, startY, startZ, finishX, finishY, finishZ, map, accuracy, accuracyZ, optimized, run, maxSteps, maxDistance, avoidMobiles, avoidStatics, allowDoors, allowDiagonal

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2300.

`private InjectionValue BuildPortablePath(int startX, int startY, int startZ, int finishX, int finishY, int finishZ,

        int map, int accuracy, int accuracyZ = 255, bool optimized = true, bool run = false,

        int maxSteps = 0, int maxDistance = 0, bool avoidMobiles = false, bool avoidStatics = false,

        bool allowDoors = false, bool allowDiagonal = true)`

結果: InjectionValue.

結果: new InjectionValue(Array.Empty<InjectionValue>()).

呼び出し: PortablePathSearch.ValidPoint, Array.Empty<InjectionValue>, Math.Max, Math.Min, Math.Abs, `bridge.GetMobiles()

                .Where(id => id != bridge.Self)

                .Select`, `bridge.GetMobiles()

                .Where`, `bridge.GetMobiles`.

条件: `!PortablePathSearch.ValidPoint(startX, startY, startZ)

            || !PortablePathSearch.ValidPoint(finishX, finishY, finishZ) || map < 0 || map > byte.MaxValue`; `map != bridge.WorldNumber`; `maxDistance > 0 && requestedDistance > maxDistance`; `state.BadLocations.Count != 0 || state.BadObjects.Count != 0`.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private InjectionValue BuildPortablePath(int startX, int startY, int startZ, int finishX, int finishY, int finishZ,
            int map, int accuracy, int accuracyZ = 255, bool optimized = true, bool run = false,
            int maxSteps = 0, int maxDistance = 0, bool avoidMobiles = false, bool avoidStatics = false,
            bool allowDoors = false, bool allowDiagonal = true)
        {
            if (!PortablePathSearch.ValidPoint(startX, startY, startZ)
                || !PortablePathSearch.ValidPoint(finishX, finishY, finishZ) || map < 0 || map > byte.MaxValue)
                return new InjectionValue(Array.Empty<InjectionValue>());
            if (map != bridge.WorldNumber) return new InjectionValue(Array.Empty<InjectionValue>());
            int safeAccuracy = Math.Max(0, Math.Min(20, accuracy));
// …
            if (maxDistance > 0 && requestedDistance > maxDistance)
                return new InjectionValue(Array.Empty<InjectionValue>());
// …
            if (state.BadLocations.Count != 0 || state.BadObjects.Count != 0)
// …
                if (bridge is IApiPathQueryScheduler snapshotScheduler)
// …
                if (forbidden?.Invoke(nextX, nextY) == true
                    || occupiedByMobiles != null && occupiedByMobiles.Contains((nextX, nextY))) return null;
                if (forbidden != null && x != nextX && y != nextY)
// …
                    if (blockedSides == 1 && state.MoveThroughCorner == 0
                        || blockedSides == 2 && state.MoveBetweenTwoCorners == 0) return null;
// …
                if (allowDoors && !doorCells.TryGetValue((nextX, nextY, z), out doorAtCell))
// …
                if (avoidStatics)
// …
                    if (!staticCells.TryGetValue((nextX, nextY), out bool hasStatics))
// …
                    if (hasStatics && !doorAtCell) return null;
// …
                if (step.Length == 0 || step[0] == 0)
// …
                    return doorAtCell ? z : (int?)null;
// …
                return step.Length > 1 ? step[1] : z;
// …
                    if (bridge is IApiPathQueryScheduler scheduler) scheduler.ExecutePathQuerySlice(slice);
// …
            return new InjectionValue(points.Select(point => new InjectionValue(new[] {
// …

完全なコードはソースファイルにあります。以下は正確な抜粋です。

InjectionScript.Runtime.InjectionApiUO.CallSub

示された呼び出しと状態更新を実行します。

引数: subrutineName

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5916.

public void CallSub(string subrutineName)

結果: void.

呼び出し: bridge.Exec.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void CallSub(string subrutineName) => bridge.Exec(subrutineName);

InjectionScript.Runtime.InjectionApiUO.CompactMoveXYZ

以下の条件を確認し、示された結果を返します。

引数: values

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2243.

private int CompactMoveXYZ(InjectionValue[] values)

結果: int.

呼び出し: Math.Max, NumberConversions.ToInt, ToBoolean, MoveToCanonical.

条件: values == null || values.Length < 6 || values.Length > 10.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private int CompactMoveXYZ(InjectionValue[] values)

        {

            if (values == null || values.Length < 6 || values.Length > 10)

                throw new NativeSubrutineException("UO.MoveXYZ expects x,y,z,accuracyXY,accuracyZ,running[,timeout[,maxSteps[,avoidMobiles[,openDoors]]]].");

            int timeout = values.Length > 6 ? Math.Max(0, NumberConversions.ToInt(values[6])) : 0;

            int maxSteps = values.Length > 7 ? Math.Max(0, NumberConversions.ToInt(values[7])) : 0;

            bool? avoidMobiles = values.Length > 8 ? ToBoolean(values[8]) : (bool?)null;

            bool? openDoors = values.Length > 9 ? ToBoolean(values[9]) : (bool?)null;

            return MoveToCanonical(NumberConversions.ToInt(values[0]), NumberConversions.ToInt(values[1]), NumberConversions.ToInt(values[2]),

                NumberConversions.ToInt(values[3]), ToBoolean(values[5]), NumberConversions.ToInt(values[4]), true, null,

                timeout, maxSteps, 0, avoidMobiles, openDoors, false);

        }

InjectionScript.Runtime.InjectionApiUO.ConvertContainer

以下の条件を確認し、示された結果を返します。

引数: id

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6373.

private int ConvertContainer(string id)

結果: int.

結果: 1; -1; GetObject(id).

呼び出し: NumberConversions.TryStr2Int, id.Equals, GetObject.

条件: NumberConversions.TryStr2Int(id, out int numeric) && numeric == 0; id.Equals("my", StringComparison.OrdinalIgnoreCase); id.Equals("ground", StringComparison.OrdinalIgnoreCase).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private int ConvertContainer(string id)

        {

            if (NumberConversions.TryStr2Int(id, out int numeric) && numeric == 0)

                return 1;

            if (id.Equals("my", StringComparison.OrdinalIgnoreCase))

                return -1;

            else if (id.Equals("ground", StringComparison.OrdinalIgnoreCase))

                return 1;



            return GetObject(id);

        }

InjectionScript.Runtime.InjectionApiUO.ConvertGumpValue

以下の式の値を返します。

引数: identifier, value

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3242.

private static InjectionValue ConvertGumpValue(string identifier, string value)

結果: InjectionValue.

結果: new InjectionValue(NumberConversions.TryStr2Int(value ?? string.Empty, out int number) ? number : 0); new InjectionValue(value ?? string.Empty).

呼び出し: (identifier ?? string.Empty).ToLowerInvariant, NumberConversions.TryStr2Int.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private static InjectionValue ConvertGumpValue(string identifier, string value)

        {

            switch ((identifier ?? string.Empty).ToLowerInvariant())

            {

                case "buttonlen":

                case "button":

                case "textlen":

                case "injid":

                case "replyed":

                case "inclient":

                case "objectcount":

                    return new InjectionValue(NumberConversions.TryStr2Int(value ?? string.Empty, out int number) ? number : 0);

                default:

                    return new InjectionValue(value ?? string.Empty);

            }

        }

InjectionScript.Runtime.InjectionApiUO.Disarm

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5596.

public int Disarm()

結果: int.

結果: Unequip(weaponLayers, "Weapons disarmed.").

呼び出し: Unequip.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int Disarm()

            => Unequip(weaponLayers, "Weapons disarmed.");

InjectionScript.Runtime.InjectionApiUO.Dress

示された呼び出しと状態更新を実行します。

引数: name

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5606.

public void Dress(string name)

結果: void.

呼び出し: Equip.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void Dress(string name)

            => Equip(name, dressSets, dressLayers, "Clothing set requests processed.", "No clothing set with setdress.");

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1806.

new []

結果: [].

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "booksettext":

                {

                    string bookText = Text(0) ?? string.Empty;

                    state.BookPages.Clear();

                    state.BookPages.AddRange(bookText.Split(new[] { '\f' }, StringSplitOptions.None));

                    bridge.BookSetText(bookText);

                    return InjectionValue.Unit;

                }

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1659.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "bow": bridge.Bow(); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1570.

結果: new InjectionValue(bridge.GetName(Arg(0, bridge.Self))).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "getname":

                case "charname": return new InjectionValue(bridge.GetName(Arg(0, bridge.Self)));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1913.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "consoleentryreply":

                case "consoleentryunicodereply": bridge.ReplyServerPrompt(Text(0)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2016.

結果: new InjectionValue(DecodeEasyUoId(Text(0))).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "euo2id":

                case "euo2type": return new InjectionValue(DecodeEasyUoId(Text(0)));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1386.

結果: new InjectionValue(bridge.FindFullQuantity()).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "findfullquantity": return new InjectionValue(bridge.FindFullQuantity());

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1308.

結果: new InjectionValue(bridge.GameServerAddress).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "gameserveripstring": return new InjectionValue(bridge.GameServerAddress);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1395.

結果: new InjectionValue(Array.Empty<InjectionValue>()); new InjectionValue(items.Select(serial => new InjectionValue(serial)).ToArray()).

条件: selection.Kind == InjectionValueKind.String; selection.Kind != InjectionValueKind.Integer && selection.Kind != InjectionValueKind.Decimal; container < 0 || container == 0 && !ground && !explicitZero.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "getcontent":

                case "getequipment":

                {

                    InjectionValue selection = arguments[0];

                    bool ground = false, explicitZero;

                    int container;

                    if (selection.Kind == InjectionValueKind.String)

                    {

                        string text = Text(0).Trim();

                        ground = text.Equals("ground", StringComparison.OrdinalIgnoreCase);

                        explicitZero = NumberConversions.TryStr2Int(text, out int literal) && literal == 0;

                        container = ground ? 0 : text.Equals("my", StringComparison.OrdinalIgnoreCase)

                            ? bridge.Backpack : GetObject(text);

                    }

                    else

                    {

                        if (selection.Kind != InjectionValueKind.Integer && selection.Kind != InjectionValueKind.Decimal)

                            return new InjectionValue(Array.Empty<InjectionValue>());

                        container = Arg(0);

                        explicitZero = selection.Kind == InjectionValueKind.Integer ? selection.Integer == 0 : selection.Decimal == 0d;

                    }

                    // Only an explicit ground/zero selector may query world items.

                    if (container < 0 || container == 0 && !ground && !explicitZero)

                        return new InjectionValue(Array.Empty<InjectionValue>());

                    bool equipment = name.Equals("GetEquipment", StringComparison.OrdinalIgnoreCase);

                    int[] items = equipment

                        ? container == 0 ? Array.Empty<int>() : bridge.GetEquipment(container)

                        : bridge.GetContent(container);

                    return new InjectionValue(items.Select(serial => new InjectionValue(serial)).ToArray());

                }

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1875.

結果: new InjectionValue(bridge.GetWorldItems().Where(id => bridge.IsHouse(id) != 0).Select(id => new InjectionValue(id)).ToArray()).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "getmultis":

                    return new InjectionValue(bridge.GetWorldItems().Where(id => bridge.IsHouse(id) != 0).Select(id => new InjectionValue(id)).ToArray());

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1862.

結果: new InjectionValue(bridge.GetStaticArt(ResolveType(arguments[0]), Arg(1)).Select(value => new InjectionValue(value)).ToArray()).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "getstaticart":

                    return new InjectionValue(bridge.GetStaticArt(ResolveType(arguments[0]), Arg(1)).Select(value => new InjectionValue(value)).ToArray());

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1563.

結果: new InjectionValue(bridge.GetY(Arg(0, bridge.Self))).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "gety": return new InjectionValue(bridge.GetY(Arg(0, bridge.Self)));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1911.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "gumpautotextentry": QueueGumpControl("textentry", Arg(0), Text(1)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2039.

結果: new InjectionValue(selectedJournalEntry?.Serial ?? 0).

内部実装のコードです。単独のスクリプトとして実行できません。

case "lineid": return new InjectionValue(selectedJournalEntry?.Serial ?? 0);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1660.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "salute": bridge.Salute(); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1353.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "setwalkunmounttimer":

                    state.WalkUnmountTimer = ClampMoveTimer(Arg(0), 400);

                    bridge.SetMovementTimers(state.RunMountTimer, state.RunUnmountTimer, state.WalkMountTimer, state.WalkUnmountTimer);

                    return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1959.

結果: InjectionValue.Unit.

条件: found != 0.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "targetbyresource":

                {

                    int found = bridge.FindType(ResolveType(arguments[1]), -1, 0, -1, true);

                    if (found != 0) { bridge.WaitTargetObject(Arg(0)); bridge.UseObject(found); }

                    return InjectionValue.Unit;

                }

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1658.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "uosaycolor": bridge.Say(Text(0), Arg(1)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1912.

結果: InjectionValue.Unit.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "waittextentry": bridge.SetGumpValue(-1, "textentry", -1, Text(0)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList

以下の条件を確認し、示された結果を返します。

引数: key

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2832.

List<string> LegacyList(string key)

結果: List<string>.

結果: list.

呼び出し: state.LegacyLists.TryGetValue.

条件: !state.LegacyLists.TryGetValue(key, out List<string> list).

内部実装のコードです。単独のスクリプトとして実行できません。

List<string> LegacyList(string key)

            {

                if (!state.LegacyLists.TryGetValue(key, out List<string> list))

                {

                    list = new List<string>();

                    state.LegacyLists[key] = list;

                }

                return list;

            }

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "adddir":

                case "addfindlist":

                case "addgate":

                case "addrecall":

                case "addstep":

                    LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));

                    break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "adddir":

                case "addfindlist":

                case "addgate":

                case "addrecall":

                case "addstep":

                    LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));

                    break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2873.

条件: arguments.Length >= 2.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "automenu":

                    if (arguments.Length >= 2) bridge.AddMenuHook(arguments[0].ToString(), arguments[1].ToString(), true);

                    break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2951.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "emoteaction": bridge.EmoteAction(Text(0)); break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3056.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "specmove": bridge.Step(Arg(0) & 7, arguments.Length > 1 && Arg(1) != 0); break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

この分岐は指定されたコマンド名だけを処理します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3058.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

case "waitgumpcheck":

                    for (int index = 0; index + 1 < arguments.Length; index += 2)

                        bridge.SetGumpValue(-1, "checkbox", Arg(index), Text(index + 1));

                    break;

InjectionScript.Runtime.InjectionApiUO.Flying

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3777.

public int Flying()

結果: int.

結果: bridge.Flying(bridge.Self).

呼び出し: bridge.Flying.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int Flying() => bridge.Flying(bridge.Self);

InjectionScript.Runtime.InjectionApiUO.GetHP

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3591.

public int GetHP()

結果: int.

結果: GetHP("self").

呼び出し: GetHP.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetHP() => GetHP("self");

InjectionScript.Runtime.InjectionApiUO.GetMaxHP

以下の式の値を返します。

引数: id

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3596.

public int GetMaxHP(string id)

結果: int.

結果: GetMaxHP(GetObject(id)).

呼び出し: GetMaxHP, GetObject.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetMaxHP(string id) => GetMaxHP(GetObject(id));

InjectionScript.Runtime.InjectionApiUO.GetName

以下の式の値を返します。

引数: id

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3611.

public string GetName(string id)

結果: string.

結果: GetName(GetObject(id)).

呼び出し: GetName, GetObject.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public string GetName(string id) => GetName(GetObject(id));

InjectionScript.Runtime.InjectionApiUO.GetProfile

以下の式の値を返します。

引数: serial

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3395.

public string GetProfile(InjectionValue serial)

結果: string.

結果: bridge.GetProfile(GetObject(serial)).

呼び出し: bridge.GetProfile, GetObject.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public string GetProfile(InjectionValue serial) => bridge.GetProfile(GetObject(serial));

InjectionScript.Runtime.InjectionApiUO.GetRun

以下の式の値を返します。

引数: id

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3776.

public int GetRun(InjectionValue id)

結果: int.

結果: bridge.GetRun(GetObject(id)).

呼び出し: bridge.GetRun, GetObject.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int GetRun(InjectionValue id) => bridge.GetRun(GetObject(id));

InjectionScript.Runtime.InjectionApiUO.InJournalBetweenTimes

以下の式の値を返します。

引数: pattern, startTime, endTime

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5380.

public int InJournalBetweenTimes(string pattern, int startTime, int endTime)

結果: int.

結果: InJournalBetweenTimesCore(pattern, startTime, endTime, -1, ignoreCase: false).

呼び出し: InJournalBetweenTimesCore.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int InJournalBetweenTimes(string pattern, int startTime, int endTime)

            => InJournalBetweenTimesCore(pattern, startTime, endTime, -1, ignoreCase: false);

InjectionScript.Runtime.InjectionApiUO.InJournalBetweenTimesCore

以下の式の値を返します。

引数: pattern, startTime, endTime, limit, ignoreCase

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5386.

private int InJournalBetweenTimesCore(string pattern, int startTime, int endTime, int limit, bool ignoreCase)

結果: int.

結果: result.

呼び出し: CurrentJournalTime, JournalTimestampToAge, bridge.InJournalBetweenTimesEx, SelectJournalSearchResult.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private int InJournalBetweenTimesCore(string pattern, int startTime, int endTime, int limit, bool ignoreCase)

        {

            int now = CurrentJournalTime();

            int startAge = JournalTimestampToAge(startTime, now);

            int endAge = endTime <= 0 ? 0 : JournalTimestampToAge(endTime, now);

            int result = bridge.InJournalBetweenTimesEx(pattern, startAge, endAge, limit, ignoreCase);

            SelectJournalSearchResult(result, pattern, ignoreCase);

            return result;

        }

InjectionScript.Runtime.InjectionApiUO.InJournalCore

以下の式の値を返します。

引数: pattern, limit, ignoreCase

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5350.

private int InJournalCore(string pattern, int limit, bool ignoreCase)

結果: int.

結果: result.

呼び出し: bridge.InJournalEx, SelectJournalSearchResult.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private int InJournalCore(string pattern, int limit, bool ignoreCase)

        {

            int result = bridge.InJournalEx(pattern, limit, ignoreCase);

            SelectJournalSearchResult(result, pattern, ignoreCase);

            return result;

        }

InjectionScript.Runtime.InjectionApiUO.InfoGump

示された呼び出しと状態更新を実行します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3196.

public void InfoGump()

結果: void.

呼び出し: bridge.ShowGumpInspector.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void InfoGump()

        {

            // Action command: no active server gump is a normal no-op/error-report case,

            // not a runtime exception. The ClassicUO bridge reports the condition.

            bridge.ShowGumpInspector(-1);

        }

InjectionScript.Runtime.InjectionApiUO.KeyPress

示された呼び出しと状態更新を実行します。

引数: key

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5276.

public void KeyPress(int key)

結果: void.

呼び出し: KeyPress.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void KeyPress(int key) => KeyPress(key, 1);

InjectionScript.Runtime.InjectionApiUO.LClick

示された呼び出しと状態更新を実行します。

引数: x, y

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5239.

public void LClick(int x, int y)

結果: void.

呼び出し: bridge.LClick.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void LClick(int x, int y) => bridge.LClick(x, y);

InjectionScript.Runtime.InjectionApiUO.LDblClick

示された呼び出しと状態更新を実行します。

引数: x, y

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5241.

public void LDblClick(int x, int y)

結果: void.

呼び出し: bridge.LDblClick.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void LDblClick(int x, int y) => bridge.LDblClick(x, y);

InjectionScript.Runtime.InjectionApiUO.LastStatusY

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3794.

public int LastStatusY()

結果: int.

結果: bridge is IStatusSnapshotBridge snapshot ? snapshot.LastStatusY : bridge.GetY(bridge.LastStatus).

呼び出し: bridge.GetY.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public int LastStatusY() => bridge is IStatusSnapshotBridge snapshot ? snapshot.LastStatusY : bridge.GetY(bridge.LastStatus);

InjectionScript.Runtime.InjectionApiUO.OpenIDE

示された呼び出しと状態更新を実行します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5316.

public void OpenIDE()

結果: void.

呼び出し: bridge.OpenIDE.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void OpenIDE() => bridge.OpenIDE(string.Empty);

InjectionScript.Runtime.InjectionApiUO.PMove

示された呼び出しと状態更新を実行します。

引数: targetX, targetY

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3506.

public void PMove(int targetX, int targetY)

結果: void.

呼び出し: GetX, GetY, timeSource.Now.AddSeconds, GetDirection, GetKey, bridge.MakeStepByKey, bridge.Wait, SystemMessage.

条件: targetX != currentX || targetY != currentY.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void PMove(int targetX, int targetY)

        {

            var currentX = GetX();

            var currentY = GetY();

            var timeout = timeSource.Now.AddSeconds(30);



            while ((targetX != currentX || targetY != currentY) && timeSource.Now < timeout)

            {

                var direction = GetDirection(currentX, currentY, targetX, targetY);

                var key = GetKey(direction);



                bridge.MakeStepByKey(key);

                bridge.Wait(75);



                currentX = GetX();

                currentY = GetY();

            }



            if (targetX != currentX || targetY != currentY)

                SystemMessage("PMove stopped: destination was not reached in 30 seconds.");

        }

InjectionScript.Runtime.InjectionApiUO.ResolveType

コードに示す規則に従って引数を解析または解決します。

引数: type

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3936.

private int ResolveType(string type)

結果: int.

結果: ResolveType(new InjectionValue(type)).

呼び出し: ResolveType.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

private int ResolveType(string type) => ResolveType(new InjectionValue(type));

InjectionScript.Runtime.InjectionApiUO.SetEvent

示された呼び出しと状態更新を実行します。

引数: nameValue, stateValue, repeatValue, subNameValue

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6013.

public void SetEvent(InjectionValue nameValue, InjectionValue stateValue, InjectionValue repeatValue, InjectionValue subNameValue)

結果: void.

呼び出し: NormalizeLegacyEventName, nameValue.ToString, string.IsNullOrEmpty, NumberConversions.ToInt, legacyEvents.Remove, IsSupportedLegacyEventName, SystemMessage, NormalizeLegacyEventHandler.

条件: string.IsNullOrEmpty(name); !enabled; !IsSupportedLegacyEventName(name).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void SetEvent(InjectionValue nameValue, InjectionValue stateValue, InjectionValue repeatValue, InjectionValue subNameValue)

        {

            string name = NormalizeLegacyEventName(nameValue.ToString());

            if (string.IsNullOrEmpty(name))

                return;



            bool enabled = NumberConversions.ToInt(stateValue) != 0;

            eventStates[name] = enabled ? 1 : 0;

            if (!enabled)

            {

                legacyEvents.Remove(name);

                return;

            }



            if (!IsSupportedLegacyEventName(name))

            {

                eventStates[name] = 0;

                legacyEvents.Remove(name);

                SystemMessage($"SetEvent: unsupported event '{name}'. Supported: SeeNewPlayer, Death, ChangeHitPoints, ChangeMana, ChangeStamina.");

                return;

            }



            var subscription = new LegacyEventSubscription

            {

                Name = name,

                Repeat = NumberConversions.ToInt(repeatValue) != 0,

                Handler = NormalizeLegacyEventHandler(subNameValue.ToString())

            };

            CaptureLegacyEventSnapshot(subscription);

            legacyEvents[name] = subscription;

        }

InjectionScript.Runtime.InjectionApiUO.SystemMessage

示された呼び出しと状態更新を実行します。

引数: msg

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5325.

public void SystemMessage(string msg)

結果: void.

呼び出し: bridge.Print.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void SystemMessage(string msg) => bridge.Print(systemMessageColor, msg);

InjectionScript.Runtime.InjectionApiUO.Target

示された呼び出しと状態更新を実行します。

引数: targetKey, target

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4256.

public void Target(InjectionValue targetKey, InjectionValue target)

結果: void.

呼び出し: NumberConversions.ToInt, selector.Equals, bridge.LastTile, Array.Empty<int>, bridge.Target, SystemMessage, TryGetObject.

条件: selector.Equals("lasttile", StringComparison.OrdinalIgnoreCase); tile.Length >= 4; TryGetObject(target, out int serial).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void Target(InjectionValue targetKey, InjectionValue target)

        {

            int key = NumberConversions.ToInt(targetKey);

            string selector = target.Kind == InjectionValueKind.String ? target.String : string.Empty;



            if (selector.Equals("lasttile", StringComparison.OrdinalIgnoreCase))

            {

                int[] tile = bridge.LastTile() ?? Array.Empty<int>();

                if (tile.Length >= 4)

                    bridge.Target(key, 0, 1, tile[0], tile[1], tile[2], tile[3]);

                else

                    SystemMessage("UO.Target: lasttile is unavailable");

                return;

            }



            if (TryGetObject(target, out int serial))

                bridge.Target(key, serial, 0, 0, 0, 0, 0);

            else

                SystemMessage($"UO.Target: invalid target '{selector}'");

        }

InjectionScript.Runtime.InjectionApiUO.WaitTargetObject

示された呼び出しと状態更新を実行します。

引数: id1, id2

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4175.

public void WaitTargetObject(string id1, string id2)

結果: void.

呼び出し: WaitTargetObject, GetObject.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void WaitTargetObject(string id1, string id2) => WaitTargetObject(GetObject(id1), GetObject(id2));

InjectionScript.Runtime.InjectionApiUO.WaitTargetType

示された呼び出しと状態更新を実行します。

引数: type, color

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4213.

public void WaitTargetType(InjectionValue type, InjectionValue color)

結果: void.

呼び出し: WaitTargetType, ResolveType, NumberConversions.ToInt.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

public void WaitTargetType(InjectionValue type, InjectionValue color)

            => WaitTargetType(ResolveType(type), NumberConversions.ToInt(color));

InjectionScript.Runtime.InjectionApiUO.RegisterClassMaskApi [ClearClassMask]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.ClassMasks.cs:35.

args

結果: args.

結果: new InjectionValue(ClearClassMask(null)).

呼び出し: ClearClassMask.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

args => new InjectionValue(ClearClassMask(null))

InjectionScript.Runtime.InjectionApiUO.Register [FindType]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:396.

values

結果: values.

結果: new InjectionValue(FindType(values[0], values[1], values[2], values[3], values[4])).

呼び出し: FindType.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

values =>

                new InjectionValue(FindType(values[0], values[1], values[2], values[3], values[4]))

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases [GetFireResist]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1043.

結果: bridge.FireResistance.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

() => bridge.FireResistance

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases [GetPhysicalResist]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1042.

結果: bridge.Armor.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

() => bridge.Armor

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases [IsAlive]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1059.

serial

結果: serial.

結果: serial > 0 && bridge.Exists(serial) != 0 && IsDeadState(serial) == 0 ? 1 : 0.

呼び出し: bridge.Exists, IsDeadState.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

serial => serial > 0 && bridge.Exists(serial) != 0 && IsDeadState(serial) == 0 ? 1 : 0

InjectionScript.Runtime.InjectionApiUO.Register [MoveItem]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:556.

values

結果: values.

結果: new InjectionValue(CompactMoveItem(values)).

呼び出し: CompactMoveItem.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

values => new InjectionValue(CompactMoveItem(values))

InjectionScript.Runtime.InjectionApiUO.Register [MoveXYZ]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:895.

values

結果: values.

結果: new InjectionValue(CompactMoveXYZ(values)).

呼び出し: CompactMoveXYZ.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

values => new InjectionValue(CompactMoveXYZ(values))

InjectionScript.Runtime.InjectionApiUO.Register [Snap]

呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:733.

values

結果: values.

結果: new InjectionValue(Snap(values[0].ToString(), NumberConversions.ToInt(values[1]), ToBoolean(values[2]))).

呼び出し: Snap, values[0].ToString, NumberConversions.ToInt, ToBoolean.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

values => new InjectionValue(Snap(values[0].ToString(), NumberConversions.ToInt(values[1]), ToBoolean(values[2])))

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1013.

value

結果: value.

結果: getter(GetObject(value)).

呼び出し: getter, GetObject.

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

value => getter(GetObject(value))

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases

以下の式の値を返します。

引数: 引数はありません。

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1007.

結果: getter(bridge.Self).

呼び出し:

内部実装のコードです。単独のスクリプトとして実行できません。

() => getter(bridge.Self)

InjectionScript.Runtime.Metadata.IntrinsicVariableExists

以下の式の値を返します。

引数: name

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/Metadata.cs:24.

public bool IntrinsicVariableExists(string name)

結果: bool.

結果: intrinsicVariables.ContainsKey(name).

呼び出し: intrinsicVariables.ContainsKey.

内部実装のコードです。単独のスクリプトとして実行できません。

public bool IntrinsicVariableExists(string name) => intrinsicVariables.ContainsKey(name);

InjectionScript.Runtime.PortablePathSearch.ValidPoint

以下の式の値を返します。

引数: x, y, z

ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/PortablePathSearch.cs:22.

internal static bool ValidPoint(int x, int y, int z)

結果: bool.

内部実装のコードです。単独のスクリプトとして実行できません。

internal static bool ValidPoint(int x, int y, int z)

            => x >= 0 && x <= ushort.MaxValue && y >= 0 && y <= ushort.MaxValue

                && z >= sbyte.MinValue && z <= sbyte.MaxValue;

Clone this wiki locally