JA Runtime Helpers B - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
内部実装のコードです。単独のスクリプトとして実行できません。
示された呼び出しと状態更新を実行します。
引数: string command
ソース: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:449.
private static string[] CommandWords(string command)
結果: string[].
条件:
quote != '\0'letter == quoteletter is '\'' or '"'char.IsWhiteSpace(letter)
呼び出し:
word.Appendchar.IsWhiteSpacewords.Addword.ToStringword.Clearwords.ToArray
内部実装のコードです。単独のスクリプトとして実行できません。
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();
}示された呼び出しと状態更新を実行します。
引数: string name
ソース: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:168.
public bool IsRunning(string name)
結果: bool.
呼び出し:
Verifyactive.Anycall.Name.Equals(name ?? "").Trim
内部実装のコードです。単独のスクリプトとして実行できません。
public bool IsRunning(string name)
{
Verify();
lock (sync) return active.Any(call => call.Name.Equals((name ?? "").Trim(), StringComparison.OrdinalIgnoreCase)
&& !call.Cancellation.IsCancellationRequested);
}示された呼び出しと状態更新を実行します。
引数: World world, uint serial
ソース: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:265.
public static void Attack(World world, uint serial)
結果: void.
条件:
ProfileManager.CurrentProfile.EnabledCriminalActionQuerym != null && (world.Player.NotorietyFlag == NotorietyFlag.Innocent || world.Player.NotorietyFlag == NotorietyFlag.Ally) && m.NotorietyFlag == NotorietyFlag.Innocent && m != world.Players
呼び出し:
world.Mobiles.GetSocket.Send_AttackRequestUIManager.Add
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: PlayerMobile 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);
}示された呼び出しと状態更新を実行します。
引数: uint 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);
}示された呼び出しと状態更新を実行します。
引数: World world
ソース: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:957.
public static void UseSecondaryAbility(World world)
結果: void.
条件:
world?.Player == null((byte) ability & 0x80) == 0
呼び出し:
SendAbility
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: int gumpId, int buttonId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3246.
public int ActivateGumpButton(int gumpId, int buttonId)
結果: int.
呼び出し:
InvokeActivateGumpButtonUnsafeResolveGumpUnsafe
内部実装のコードです。単独のスクリプトとして実行できません。
public int ActivateGumpButton(int gumpId, int buttonId)
=> Invoke(() => ActivateGumpButtonUnsafe(ResolveGumpUnsafe(gumpId), buttonId));示された呼び出しと状態更新を実行します。
引数: Gump gump, int buttonId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3252.
private static int ActivateGumpButtonUnsafe(Gump gump, int buttonId)
結果: int.
条件:
gump == nullgump is SessionServerGump logicalfield == null || logical.IsDisposedfield.Action == ButtonAction.SwitchPage
呼び出し:
-
logical.Fields.FirstOrDefault -
logical.ChangePage -
logical.OnButtonClick -
`Descendants(gump).OfType()
.FirstOrDefault` -
Descendants(gump).OfType<Button> -
Descendants -
gump.ChangePage -
gump.OnButtonClick
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: string name
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:725.
public void AddObject(string name)
結果: void.
条件:
string.IsNullOrWhiteSpace(name) || _csharpState == nullresult is Entity entityresult != null
呼び出し:
string.IsNullOrWhiteSpaceErrorState.Objects.RemoveSelectObjectState.Objects.SetReportStatus
内部実装のコードです。単独のスクリプトとして実行できません。
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");
}示された呼び出しと状態更新を実行します。
引数: int page
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2022.
public string BookGetPageText(int page)
結果: string.
呼び出し:
InvokeGetOpenBook.YokoGetPageText
内部実装のコードです。単独のスクリプトとして実行できません。
public string BookGetPageText(int page) => Invoke(() => GetOpenBook()?.YokoGetPageText(page) ?? string.Empty);示された呼び出しと状態更新を実行します。
引数: int id, int color, int font, string msg
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2073.
public void CharPrintEx(int id, int color, int font, string msg)
結果: void.
条件:
target == null || target.IsDestroyed || string.IsNullOrEmpty(msg)
呼び出し:
Invoke_world.Getstring.IsNullOrEmptyReportStatusMath.ClampGameActions.Print
内部実装のコードです。単独のスクリプトとして実行できません。
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}");
});示された呼び出しと状態更新を実行します。
引数: int type, int color, int containerId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2938.
public int Count(int type, int color, int containerId)
結果: int.
呼び出し:
FindType
内部実装のコードです。単独のスクリプトとして実行できません。
public int Count(int type, int color, int containerId)
{
FindType(type, color, containerId, State.FindDistance, true);
return _findFullQuantity;
}示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:252.
private ISessionTrade FindTrade(int index)
結果: ISessionTrade.
呼び出し:
_world.Trades.Snapshot().ElementAtOrDefault_world.Trades.Snapshot
内部実装のコードです。単独のスクリプトとして実行できません。
private ISessionTrade FindTrade(int index) => index < 0 ? null : _world.Trades.Snapshot().ElementAtOrDefault(index);示された呼び出しと状態更新を実行します。
引数: int abilityId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2446.
public string GetAbilityName(int abilityId)
結果: string.
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
public string GetAbilityName(int abilityId) => abilityId >= 1 && abilityId <= AbilityData.Abilities.Length
? AbilityData.Abilities[abilityId - 1].Name
: string.Empty;示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:494.
public string[] GetCharactersForCurrentShard()
結果: string[].
条件:
_world.SessionControl is { } sessionknown.Length != 0loginScene?.Characters != nullcurrent.Length != 0
呼び出し:
-
Invoke -
string.IsNullOrEmpty -
_world.ResolveProfileServerName -
LastCharacterManager.GetKnownCharacters -
.GetScene<LoginScene> -
`loginScene.Characters
.Where(name => !string.IsNullOrWhiteSpace(name)) .ToArray` -
`loginScene.Characters
.Where` -
string.IsNullOrWhiteSpace -
Array.Empty<string>
内部実装のコードです。単独のスクリプトとして実行できません。
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 };
});示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2966.
public int GetDir(int id)
結果: int.
呼び出し:
Invoke_world.Get
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetDir(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile) is Mobile m ? (int)(m.Direction & Direction.Mask) : 0);示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3068.
public string[] GetGumpFullLines(int index)
結果: string[].
呼び出し:
InvokeServerGumpsUnsafe().ElementAtOrDefaultServerGumpsUnsafeArray.Empty<string>Descendants(gump).Select(DescribeControl).ToArrayDescendants(gump).SelectDescendants
内部実装のコードです。単独のスクリプトとして実行できません。
public string[] GetGumpFullLines(int index) => Invoke(() =>
{
Gump gump = ServerGumpsUnsafe().ElementAtOrDefault(index);
return gump == null ? Array.Empty<string>() : Descendants(gump).Select(DescribeControl).ToArray();
});示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3056.
public string[] GetGumpTextLines(int index)
結果: string[].
呼び出し:
InvokeServerGumpsUnsafe().ElementAtOrDefaultServerGumpsUnsafeArray.Empty<string>Descendants(gump).Select(GetControlText).Where(text => !string.IsNullOrWhiteSpace(text)).ToArrayDescendants(gump).Select(GetControlText).WhereDescendants(gump).SelectDescendantsstring.IsNullOrWhiteSpace
内部実装のコードです。単独のスクリプトとして実行できません。
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();
});示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:682.
public string GetLastMenuIdentity()
結果: string.
条件:
menu == null
呼び出し:
Invoke_world.ServerMenus.Snapshot().LastOrDefault_world.ServerMenus.Snapshotstring.Joinmenu.GetYokoItemsEx
内部実装のコードです。単独のスクリプトとして実行できません。
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}";
});示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:241.
public int GetMaxMana(int id)
結果: int.
呼び出し:
Invoke_world.Get
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetMaxMana(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.ManaMax ?? 0);示された呼び出しと状態更新を実行します。
引数: int multiId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2556.
public int[][] GetMultiAllParts(int multiId)
結果: int[][].
条件:
!_world.HouseManager.TryGetHouse(unchecked((uint)multiId), out House house)
呼び出し:
-
Invoke -
_world.HouseManager.TryGetHouse -
Array.Empty<int[]> -
`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` -
`house.Components
.Where(component => component != null && !component.IsDestroyed) .Select` -
`house.Components
.Where`
内部実装のコードです。単独のスクリプトとして実行できません。
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();
});示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3894.
public string[] GetShopList()
結果: string[].
呼び出し:
Invoke.GetItemsUIManager.Gumps.OfType<ShopGump>().LastOrDefaultUIManager.Gumps.OfType<ShopGump>.GetYokoShopItemsArray.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>());示された呼び出しと状態更新を実行します。
引数: string name
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2328.
public int GetSkillLockState(string name)
結果: int.
呼び出し:
InvokeFindSkillUnsafe
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetSkillLockState(string name) => Invoke(() => FindSkillUnsafe(name) is Skill skill ? (int)skill.Lock : -1);示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:239.
public int GetStamina(int id)
結果: int.
呼び出し:
Invoke_world.Get
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetStamina(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Stamina ?? 0);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:163.
public int Gold
結果: int.
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
public int Gold => Invoke(() => (int)(CurrentPlayer?.Gold ?? 0));示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2945.
public void IgnoreReset()
結果: void.
呼び出し:
State.IgnoredSerials.Clear
内部実装のコードです。単独のスクリプトとして実行できません。
public void IgnoreReset() => State.IgnoredSerials.Clear();示された呼び出しと状態更新を実行します。
引数: string pattern, int serial, int color, int startTime, int endTime, bool newestOnly, bool caseSensitive
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2118.
public int InJournalFiltered(string pattern, int serial, int color, int startTime, int endTime, bool newestOnly, bool caseSensitive)
結果: int.
条件:
startTime > 0 || endTime > 0
呼び出し:
now.AddMillisecondsMath.MaxMath.MinFindJournal
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2197.
public int JournalMessageType(int index)
結果: int.
呼び出し:
GetJournalEntry
内部実装のコードです。単独のスクリプトとして実行できません。
public int JournalMessageType(int index) => GetJournalEntry(index) is JournalEntry entry ? (int)entry.MessageType : 0;示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2194.
public string JournalName(int index)
結果: string.
呼び出し:
GetJournalEntry
内部実装のコードです。単独のスクリプトとして実行できません。
public string JournalName(int index) => GetJournalEntry(index)?.Name ?? string.Empty;示された呼び出しと状態更新を実行します。
引数: Entity gameObject, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, IgnoreTypeFilter ignoredTypes
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4118.
private bool MatchesFindIdentity(Entity gameObject, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, IgnoreTypeFilter ignoredTypes)
結果: bool.
呼び出し:
State.IgnoredSerials.ContainsignoredTypes.MatcheswantedTypes.ContainswantedColors.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));
}示された呼び出しと状態更新を実行します。
引数: Item item
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4154.
private void RegisterFound(Item item)
結果: void.
呼び出し:
Math.MaxRegisterFoundSerial
内部実装のコードです。単独のスクリプトとして実行できません。
private void RegisterFound(Item item)
{
_findCount++;
_findFullQuantity += Math.Max(1, (int)item.Amount);
RegisterFoundSerial(unchecked((int)item.Serial));
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1789.
public int RequestInteractiveHideTarget()
結果: int.
条件:
selected is not Entity entity || entity.IsDestroyedentity.Serial == _world.Player?.Serial
呼び出し:
Invoke_world.TargetManager.SetTargetingPrintInteractiveResultHideLocally
内部実装のコードです。単独のスクリプトとして実行できません。
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;
});
}示された呼び出しと状態更新を実行します。
引数: string abilityNameOrId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2425.
internal static int ResolveClassicUOAbilityId(string abilityNameOrId)
結果: int.
条件:
-
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`
呼び出し:
(abilityNameOrId ?? string.Empty).Trimint.TryParseNormalizeAbilityName((Ability)(index + 1)).ToString
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: int gumpId = -1
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3283.
public int ShowGumpInspector(int gumpId = -1)
結果: int.
条件:
!found && _interactiveCommands
呼び出し:
InvokeTryBuildGumpInspectorUnsafeOpenInteractiveInfoGumpError
内部実装のコードです。単独のスクリプトとして実行できません。
public int ShowGumpInspector(int gumpId = -1) => Invoke(() =>
{
bool found = TryBuildGumpInspectorUnsafe(gumpId, out string title, out string document);
OpenInteractiveInfoGump(found ? title : "C# Gump Inspector", document);
if (!found && _interactiveCommands) Error(document);
return found ? 1 : 0;
});示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1895.
public void ShowJournal()
結果: void.
呼び出し:
InvokeGameActions.OpenJournal
内部実装のコードです。単独のスクリプトとして実行できません。
public void ShowJournal() => Invoke(() => GameActions.OpenJournal(_world));示された呼び出しと状態更新を実行します。
引数: GameObject tile
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4220.
private static string TileName(GameObject tile)
結果: string.
条件:
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;
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1616.
public void ToggleFly()
結果: void.
呼び出し:
InvokeNetClient.Socket.Send_ToggleGargoyleFlying
内部実装のコードです。単独のスクリプトとして実行できません。
public void ToggleFly() => Invoke(() => NetClient.Socket.Send_ToggleGargoyleFlying());示された呼び出しと状態更新を実行します。
引数: int direction
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1584.
public int TryOpenDoorForStep(int direction)
結果: int.
条件:
_world.Player == null || direction < 0 || direction > 7
呼び出し:
Invoke_world.Player.TryOpenDoor
内部実装のコードです。単独のスクリプトとして実行できません。
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;
});示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:161.
public int Weight
結果: int.
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
public int Weight => Invoke(() => CurrentPlayer?.Weight ?? 0);示された呼び出しと状態更新を実行します。
引数: string text
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClientLanguageManager.cs:123.
internal static string TranslateUi(string text)
結果: string.
条件:
-
string.IsNullOrEmpty(text) -
translations.Count == 0 -
translations.TryGetValue(text, out string translated) -
`trimmed.Length == text.Length ||
!translations.TryGetValue(trimmed, out translated)`
呼び出し:
string.IsNullOrEmptytranslations.TryGetValuetext.Trimtext.IndexOftext.Substring
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: int length
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/JournalManager.cs:42.
internal static void SetYokoHistoryLimit(int length)
結果: void.
呼び出し:
Math.ClampEntries.RemoveFromFront
内部実装のコードです。単独のスクリプトとして実行できません。
internal static void SetYokoHistoryLimit(int length)
{
_yokoHistoryLimit = Math.Clamp(length, 1, Constants.MAX_JOURNAL_HISTORY_COUNT);
while (Entries.Count > _yokoHistoryLimit)
Entries.RemoveFromFront();
}示された呼び出しと状態更新を実行します。
引数: string scriptKey
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:777.
internal void BeginScriptControlledDisconnect(string scriptKey)
結果: void.
条件:
scriptKey != null && _running.TryGetValue(scriptKey, out YokoRunningScript script)
呼び出し:
_running.TryGetValuescript.BeginControlledDisconnect
内部実装のコードです。単独のスクリプトとして実行できません。
internal void BeginScriptControlledDisconnect(string scriptKey)
{
if (scriptKey != null && _running.TryGetValue(scriptKey, out YokoRunningScript script))
script.BeginControlledDisconnect();
}示された呼び出しと状態更新を実行します。
引数: string name
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3499.
internal YokoProcedureInfo FindProcedureByName(string name)
結果: YokoProcedureInfo.
条件:
string.IsNullOrWhiteSpace(name)_proceduresByKey.TryGetValue(name, out YokoProcedureInfo qualified)!string.IsNullOrWhiteSpace(selectedPath)TryGetSelectedAutoloadActionProcedures(fullPath, out var freshDeclarations)
呼び出し:
-
string.IsNullOrWhiteSpace -
RequestedAutoloadPath -
_proceduresByKey.TryGetValue -
_procedures.Where(p => p.Name.Equals(name, StringComparison.OrdinalIgnoreCase)).ToArray -
_procedures.Where -
p.Name.Equals -
Path.GetFullPath -
TryGetSelectedAutoloadActionProcedures -
`freshDeclarations.Where(p =>
p.Name.Equals(name, StringComparison.OrdinalIgnoreCase)).ToArray` -
freshDeclarations.Where -
IsSelectedAutoloadExplicitlyUnloaded -
matches.Any -
string.Equals -
`matches.Where(p => !string.Equals(Path.GetFullPath(p.FilePath),
fullPath, StringComparison.OrdinalIgnoreCase) && (!IsTopLevelAutoloadFile(p.FilePath) || loadedFiles.Contains(Path.GetFullPath(p.FilePath)))).ToArray` -
matches.Where -
IsTopLevelAutoloadFile -
loadedFiles.Contains -
`matches.Where(p => string.Equals(
Path.GetFullPath(p.FilePath), fullPath, StringComparison.OrdinalIgnoreCase)).ToArray`
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: string filePath
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3554.
private bool IsTopLevelAutoloadFile(string filePath)
結果: bool.
呼び出し:
string.EqualsPath.GetDirectoryNamePath.GetFullPathPath.TrimEndingDirectorySeparator
内部実装のコードです。単独のスクリプトとして実行できません。
private bool IsTopLevelAutoloadFile(string filePath) => string.Equals(
Path.GetDirectoryName(Path.GetFullPath(filePath)),
Path.TrimEndingDirectorySeparator(Path.GetFullPath(AutoloadPath)),
StringComparison.OrdinalIgnoreCase);示された呼び出しと状態更新を実行します。
引数: int index, string value
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:2830.
internal void SetScriptName(int index, string value)
結果: void.
条件:
script != null && !string.Equals(script.Name, nextName, StringComparison.Ordinal)
呼び出し:
ElementAtRunningScriptsstring.EqualsMarkRuntimeStateChanged
内部実装のコードです。単独のスクリプトとして実行できません。
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();
}
}示された呼び出しと状態更新を実行します。
引数: bool enabled
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:726.
internal void SetSpeechFilter(bool enabled)
結果: void.
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
internal void SetSpeechFilter(bool enabled) => _speechFilterEnabled = enabled;示された呼び出しと状態更新を実行します。
引数: string scriptPath
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:2878.
internal int StartScript(string scriptPath)
結果: int.
条件:
string.IsNullOrWhiteSpace(scriptPath)!File.Exists(fullPath)procedure == null || !RunProcedure(procedure, Array.Empty<string>())
呼び出し:
string.IsNullOrWhiteSpacePath.IsPathRootedPath.GetFullPathPath.CombineFile.ExistsReadScriptContentSelectFileEntryPointDiscoverProceduresPath.GetFileNameRunProcedureArray.Empty<string>GetScriptsCount
内部実装のコードです。単独のスクリプトとして実行できません。
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();
}示された呼び出しと状態更新を実行します。
引数: string path, out IReadOnlyList<YokoProcedureInfo> procedures
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoSelectedAutoloadActions.cs:69.
internal bool TryGetSelectedAutoloadActionProcedures(string path, out IReadOnlyList<YokoProcedureInfo> procedures)
結果: bool.
呼び出し:
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;
}
}示された呼び出しと状態更新を実行します。
引数: World world, string filePath = null
ソース: Project_Full/src/ClassicUO.Client/Game/UI/Gumps/YokoScriptEditorGump.cs:14.
internal static YokoTheiaIdeGump Open(World world, string filePath = null)
結果: YokoTheiaIdeGump.
呼び出し:
YokoTheiaIdeGump.Open
内部実装のコードです。単独のスクリプトとして実行できません。
internal static YokoTheiaIdeGump Open(World world, string filePath = null) => YokoTheiaIdeGump.Open(world, filePath);示された呼び出しと状態更新を実行します。
引数: int enabled
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3891.
public void AlwaysRun(int enabled)
結果: void.
呼び出し:
bridge.AlwaysRun
内部実装のコードです。単独のスクリプトとして実行できません。
public void AlwaysRun(int enabled) => bridge.AlwaysRun(enabled);以下の条件を確認し、示された結果を返します。
引数: 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`.
呼び出し:
-
InjectionScript.Runtime.PortablePathSearch.ValidPoint:PortablePathSearch.ValidPoint(startX, startY, startZ). -
InjectionScript.Runtime.PortablePathSearch.ValidPoint:PortablePathSearch.ValidPoint(finishX, finishY, finishZ). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetMobiles:bridge.GetMobiles(). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetX:bridge.GetX(id). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetY:bridge.GetY(id). -
InjectionScript.Runtime.ScriptPathObstacles.Create:ScriptPathObstacles.Create(state, bridge). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.HasDoorAt:bridge.HasDoorAt(nextX, nextY, z, map). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetStaticTiles:bridge.GetStaticTiles(nextX, nextY, map). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.CheckWorldStep:bridge.CheckWorldStep(x, y, z, nextX, nextY, map). -
InjectionScript.Runtime.PortablePathSearch.Find:PortablePathSearch.Find(startX, startY, startZ, finishX, finishY, finishZ, safeAccuracy, safeAccuracyZ, maxSteps, allowDiagonal && (optimized || run), CheckStep, () => bridge.Wait(0), slice => { if (bridge is IApiPathQueryScheduler scheduler) scheduler.ExecutePathQuerySlice(slice); else slice(); }). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Wait:bridge.Wait(0). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.WorldNumber:bridge.WorldNumber. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
内部実装のコードです。単独のスクリプトとして実行できません。
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[] {
// …完全なコードはソースファイルにあります。以下は正確な抜粋です。
示された呼び出しと状態更新を実行します。
引数: string subrutineName
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6034.
public void CallSub(string subrutineName)
結果: void.
呼び出し:
bridge.Exec
内部実装のコードです。単独のスクリプトとして実行できません。
public void CallSub(string subrutineName) => bridge.Exec(subrutineName);示された呼び出しと状態更新を実行します。
引数: InjectionValue[] values
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2294.
private int CompactMoveXYZ(InjectionValue[] values)
結果: int.
条件:
values == null || values.Length < 6 || values.Length > 10
呼び出し:
Math.MaxNumberConversions.ToIntToBooleanMoveToCanonical
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: string id
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6491.
private int ConvertContainer(string id)
結果: int.
条件:
NumberConversions.TryStr2Int(id, out int numeric) && numeric == 0id.Equals("my", StringComparison.OrdinalIgnoreCase)id.Equals("ground", StringComparison.OrdinalIgnoreCase)
呼び出し:
NumberConversions.TryStr2Intid.EqualsGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: string identifier, string value
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3372.
private static InjectionValue ConvertGumpValue(string identifier, string value)
結果: InjectionValue.
呼び出し:
(identifier ?? string.Empty).ToLowerInvariantNumberConversions.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);
}
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5714.
public int Disarm()
結果: int.
呼び出し:
Unequip
内部実装のコードです。単独のスクリプトとして実行できません。
public int Disarm()
=> Unequip(weaponLayers, "Weapons disarmed.");示された呼び出しと状態更新を実行します。
引数: string name
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5724.
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.");この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1806.
new []
結果: [].
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.BookSetText:bridge.BookSetText(bookText).
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1659.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Bow:bridge.Bow().
内部実装のコードです。単独のスクリプトとして実行できません。
case "bow": bridge.Bow(); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1570.
結果: new InjectionValue(bridge.GetName(Arg(0, bridge.Self))).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetName:bridge.GetName(Arg(0, bridge.Self)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0, bridge.Self). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
内部実装のコードです。単独のスクリプトとして実行できません。
case "getname":
case "charname": return new InjectionValue(bridge.GetName(Arg(0, bridge.Self)));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1913.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ReplyServerPrompt:bridge.ReplyServerPrompt(Text(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "consoleentryreply":
case "consoleentryunicodereply": bridge.ReplyServerPrompt(Text(0)); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2016.
結果: new InjectionValue(DecodeEasyUoId(Text(0))).
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.DecodeEasyUoId:DecodeEasyUoId(Text(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "euo2id":
case "euo2type": return new InjectionValue(DecodeEasyUoId(Text(0)));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1386.
結果: new InjectionValue(bridge.FindFullQuantity()).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.FindFullQuantity:bridge.FindFullQuantity().
内部実装のコードです。単独のスクリプトとして実行できません。
case "findfullquantity": return new InjectionValue(bridge.FindFullQuantity());この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1308.
結果: new InjectionValue(bridge.GameServerAddress).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GameServerAddress:bridge.GameServerAddress.
内部実装のコードです。単独のスクリプトとして実行できません。
case "gameserveripstring": return new InjectionValue(bridge.GameServerAddress);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: 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.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0). -
InjectionScript.Runtime.NumberConversions.TryStr2Int:NumberConversions.TryStr2Int(text, out int literal). -
InjectionScript.Runtime.InjectionApiUO.GetObject:GetObject(text). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetEquipment:bridge.GetEquipment(container). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetContent:bridge.GetContent(container). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Backpack:bridge.Backpack.
内部実装のコードです。単独のスクリプトとして実行できません。
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());
}この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: 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()).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetWorldItems:bridge.GetWorldItems(). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsHouse:bridge.IsHouse(id).
内部実装のコードです。単独のスクリプトとして実行できません。
case "getmultis":
return new InjectionValue(bridge.GetWorldItems().Where(id => bridge.IsHouse(id) != 0).Select(id => new InjectionValue(id)).ToArray());この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: 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()).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetStaticArt:bridge.GetStaticArt(ResolveType(arguments[0]), Arg(1)). -
InjectionScript.Runtime.InjectionApiUO.ResolveType:ResolveType(arguments[0]). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1).
内部実装のコードです。単独のスクリプトとして実行できません。
case "getstaticart":
return new InjectionValue(bridge.GetStaticArt(ResolveType(arguments[0]), Arg(1)).Select(value => new InjectionValue(value)).ToArray());この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1563.
結果: new InjectionValue(bridge.GetY(Arg(0, bridge.Self))).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetY:bridge.GetY(Arg(0, bridge.Self)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0, bridge.Self). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
内部実装のコードです。単独のスクリプトとして実行できません。
case "gety": return new InjectionValue(bridge.GetY(Arg(0, bridge.Self)));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1911.
結果: InjectionValue.Unit.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.QueueGumpControl:QueueGumpControl("textentry", Arg(0), Text(1)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(1).
内部実装のコードです。単独のスクリプトとして実行できません。
case "gumpautotextentry": QueueGumpControl("textentry", Arg(0), Text(1)); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2039.
結果: new InjectionValue(selectedJournalEntry?.Serial ?? 0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "lineid": return new InjectionValue(selectedJournalEntry?.Serial ?? 0);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1660.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Salute:bridge.Salute().
内部実装のコードです。単独のスクリプトとして実行できません。
case "salute": bridge.Salute(); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1353.
結果: InjectionValue.Unit.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ClampMoveTimer:ClampMoveTimer(Arg(0), 400). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetMovementTimers:bridge.SetMovementTimers(state.RunMountTimer, state.RunUnmountTimer, state.WalkMountTimer, state.WalkUnmountTimer).
内部実装のコードです。単独のスクリプトとして実行できません。
case "setwalkunmounttimer":
state.WalkUnmountTimer = ClampMoveTimer(Arg(0), 400);
bridge.SetMovementTimers(state.RunMountTimer, state.RunUnmountTimer, state.WalkMountTimer, state.WalkUnmountTimer);
return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1959.
結果: InjectionValue.Unit.
条件: found != 0.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.FindType:bridge.FindType(ResolveType(arguments[1]), -1, 0, -1, true). -
InjectionScript.Runtime.InjectionApiUO.ResolveType:ResolveType(arguments[1]). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.WaitTargetObject:bridge.WaitTargetObject(Arg(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.UseObject:bridge.UseObject(found).
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1658.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Say:bridge.Say(Text(0), Arg(1)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1).
内部実装のコードです。単独のスクリプトとして実行できません。
case "uosaycolor": bridge.Say(Text(0), Arg(1)); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1912.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetGumpValue:bridge.SetGumpValue(-1, "textentry", -1, Text(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "waittextentry": bridge.SetGumpValue(-1, "textentry", -1, Text(0)); return InjectionValue.Unit;以下の条件を確認し、示された結果を返します。
引数: 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;
}この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList:LegacyList(name). -
InjectionScript.Runtime.InjectionValue.ToString:value.ToString().
内部実装のコードです。単独のスクリプトとして実行できません。
case "adddir":
case "addfindlist":
case "addgate":
case "addrecall":
case "addstep":
LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));
break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList:LegacyList(name). -
InjectionScript.Runtime.InjectionValue.ToString:value.ToString().
内部実装のコードです。単独のスクリプトとして実行できません。
case "adddir":
case "addfindlist":
case "addgate":
case "addrecall":
case "addstep":
LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));
break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2873.
条件: arguments.Length >= 2.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.AddMenuHook:bridge.AddMenuHook(arguments[0].ToString(), arguments[1].ToString(), true). -
InjectionScript.Runtime.InjectionValue.ToString:arguments[0].ToString(). -
InjectionScript.Runtime.InjectionValue.ToString:arguments[1].ToString().
内部実装のコードです。単独のスクリプトとして実行できません。
case "automenu":
if (arguments.Length >= 2) bridge.AddMenuHook(arguments[0].ToString(), arguments[1].ToString(), true);
break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2951.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.EmoteAction:bridge.EmoteAction(Text(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Text:Text(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "emoteaction": bridge.EmoteAction(Text(0)); break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3056.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Step:bridge.Step(Arg(0) & 7, arguments.Length > 1 && Arg(1) != 0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(1).
内部実装のコードです。単独のスクリプトとして実行できません。
case "specmove": bridge.Step(Arg(0) & 7, arguments.Length > 1 && Arg(1) != 0); break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3058.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetGumpValue:bridge.SetGumpValue(-1, "checkbox", Arg(index), Text(index + 1)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(index). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Text:Text(index + 1).
内部実装のコードです。単独のスクリプトとして実行できません。
case "waitgumpcheck":
for (int index = 0; index + 1 < arguments.Length; index += 2)
bridge.SetGumpValue(-1, "checkbox", Arg(index), Text(index + 1));
break;示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3895.
public int Flying()
結果: int.
呼び出し:
bridge.Flying
内部実装のコードです。単独のスクリプトとして実行できません。
public int Flying() => bridge.Flying(bridge.Self);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3709.
public int GetHP()
結果: int.
呼び出し:
GetHP
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetHP() => GetHP("self");示された呼び出しと状態更新を実行します。
引数: string id
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3714.
public int GetMaxHP(string id)
結果: int.
呼び出し:
GetMaxHPGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetMaxHP(string id) => GetMaxHP(GetObject(id));示された呼び出しと状態更新を実行します。
引数: string id
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3729.
public string GetName(string id)
結果: string.
呼び出し:
GetNameGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public string GetName(string id) => GetName(GetObject(id));示された呼び出しと状態更新を実行します。
引数: InjectionValue serial
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3525.
public string GetProfile(InjectionValue serial)
結果: string.
呼び出し:
bridge.GetProfileGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public string GetProfile(InjectionValue serial) => bridge.GetProfile(GetObject(serial));示された呼び出しと状態更新を実行します。
引数: InjectionValue id
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3894.
public int GetRun(InjectionValue id)
結果: int.
呼び出し:
bridge.GetRunGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetRun(InjectionValue id) => bridge.GetRun(GetObject(id));示された呼び出しと状態更新を実行します。
引数: string pattern, int startTime, int endTime
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5498.
public int InJournalBetweenTimes(string pattern, int startTime, int endTime)
結果: int.
呼び出し:
InJournalBetweenTimesCore
内部実装のコードです。単独のスクリプトとして実行できません。
public int InJournalBetweenTimes(string pattern, int startTime, int endTime)
=> InJournalBetweenTimesCore(pattern, startTime, endTime, -1, ignoreCase: false);示された呼び出しと状態更新を実行します。
引数: string pattern, int startTime, int endTime, int limit, bool ignoreCase
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5504.
private int InJournalBetweenTimesCore(string pattern, int startTime, int endTime, int limit, bool ignoreCase)
結果: int.
呼び出し:
CurrentJournalTimeJournalTimestampToAgebridge.InJournalBetweenTimesExSelectJournalSearchResult
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: string pattern, int limit, bool ignoreCase
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5468.
private int InJournalCore(string pattern, int limit, bool ignoreCase)
結果: int.
呼び出し:
bridge.InJournalExSelectJournalSearchResult
内部実装のコードです。単独のスクリプトとして実行できません。
private int InJournalCore(string pattern, int limit, bool ignoreCase)
{
int result = bridge.InJournalEx(pattern, limit, ignoreCase);
SelectJournalSearchResult(result, pattern, ignoreCase);
return result;
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3317.
public string InfoGump()
結果: string.
呼び出し:
bridge.GetGumpInspectorTextbridge.ShowGumpInspector
内部実装のコードです。単独のスクリプトとして実行できません。
public string InfoGump()
{
string document = bridge.GetGumpInspectorText(-1);
bridge.ShowGumpInspector(-1);
return document;
}示された呼び出しと状態更新を実行します。
引数: int key
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5394.
public void KeyPress(int key)
結果: void.
呼び出し:
KeyPress
内部実装のコードです。単独のスクリプトとして実行できません。
public void KeyPress(int key) => KeyPress(key, 1);示された呼び出しと状態更新を実行します。
引数: int x, int y
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5357.
public void LClick(int x, int y)
結果: void.
呼び出し:
bridge.LClick
内部実装のコードです。単独のスクリプトとして実行できません。
public void LClick(int x, int y) => bridge.LClick(x, y);示された呼び出しと状態更新を実行します。
引数: int x, int y
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5359.
public void LDblClick(int x, int y)
結果: void.
呼び出し:
bridge.LDblClick
内部実装のコードです。単独のスクリプトとして実行できません。
public void LDblClick(int x, int y) => bridge.LDblClick(x, y);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3912.
public int LastStatusY()
結果: int.
呼び出し:
bridge.GetY
内部実装のコードです。単独のスクリプトとして実行できません。
public int LastStatusY() => bridge is IStatusSnapshotBridge snapshot ? snapshot.LastStatusY : bridge.GetY(bridge.LastStatus);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5434.
public void OpenIDE()
結果: void.
呼び出し:
bridge.OpenIDE
内部実装のコードです。単独のスクリプトとして実行できません。
public void OpenIDE() => bridge.OpenIDE(string.Empty);示された呼び出しと状態更新を実行します。
引数: int targetX, int targetY
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3640.
public void PMove(int targetX, int targetY)
結果: void.
条件:
MoveToCanonical(targetX, targetY, bridge.GetZ(bridge.Self), 0, false) == 0
呼び出し:
MoveToCanonicalbridge.GetZSystemMessage
内部実装のコードです。単独のスクリプトとして実行できません。
public void PMove(int targetX, int targetY)
{
if (MoveToCanonical(targetX, targetY, bridge.GetZ(bridge.Self), 0, false) == 0)
SystemMessage("PMove stopped: destination is unreachable or exceeds UO.LimitMove().");
}示された呼び出しと状態更新を実行します。
引数: string type
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4054.
private int ResolveType(string type)
結果: int.
呼び出し:
ResolveType
内部実装のコードです。単独のスクリプトとして実行できません。
private int ResolveType(string type) => ResolveType(new InjectionValue(type));示された呼び出しと状態更新を実行します。
引数: InjectionValue nameValue, InjectionValue stateValue, InjectionValue repeatValue, InjectionValue subNameValue
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6131.
public void SetEvent(InjectionValue nameValue, InjectionValue stateValue, InjectionValue repeatValue, InjectionValue subNameValue)
結果: void.
条件:
string.IsNullOrEmpty(name)!enabled!IsSupportedLegacyEventName(name)
呼び出し:
NormalizeLegacyEventNamenameValue.ToStringstring.IsNullOrEmptyNumberConversions.ToIntlegacyEvents.RemoveIsSupportedLegacyEventNameSystemMessageNormalizeLegacyEventHandlersubNameValue.ToStringCaptureLegacyEventSnapshot
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: string msg
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5443.
public void SystemMessage(string msg)
結果: void.
呼び出し:
bridge.Print
内部実装のコードです。単独のスクリプトとして実行できません。
public void SystemMessage(string msg) => bridge.Print(systemMessageColor, msg);示された呼び出しと状態更新を実行します。
引数: InjectionValue targetKey, InjectionValue target
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4374.
public void Target(InjectionValue targetKey, InjectionValue target)
結果: void.
条件:
selector.Equals("lasttile", StringComparison.OrdinalIgnoreCase)tile.Length >= 4TryGetObject(target, out int serial)
呼び出し:
NumberConversions.ToIntselector.Equalsbridge.LastTileArray.Empty<int>bridge.TargetSystemMessageTryGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
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}'");
}示された呼び出しと状態更新を実行します。
引数: string id1, string id2
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4293.
public void WaitTargetObject(string id1, string id2)
結果: void.
呼び出し:
WaitTargetObjectGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public void WaitTargetObject(string id1, string id2) => WaitTargetObject(GetObject(id1), GetObject(id2));示された呼び出しと状態更新を実行します。
引数: InjectionValue type, InjectionValue color
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4331.
public void WaitTargetType(InjectionValue type, InjectionValue color)
結果: void.
呼び出し:
WaitTargetTypeResolveTypeNumberConversions.ToInt
内部実装のコードです。単独のスクリプトとして実行できません。
public void WaitTargetType(InjectionValue type, InjectionValue color)
=> WaitTargetType(ResolveType(type), NumberConversions.ToInt(color));呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.ClassMasks.cs:35.
args
結果: args.
結果: new InjectionValue(ClearClassMask(null)).
呼び出し: ClearClassMask.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ClearClassMask:ClearClassMask(null).
内部実装のコードです。単独のスクリプトとして実行できません。
args => new InjectionValue(ClearClassMask(null))呼び出し時には保存済みのハンドラー 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.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.FindType:FindType(values[0], values[1], values[2], values[3], values[4]).
内部実装のコードです。単独のスクリプトとして実行できません。
values =>
new InjectionValue(FindType(values[0], values[1], values[2], values[3], values[4]))呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1043.
結果: bridge.FireResistance.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.FireResistance:bridge.FireResistance.
内部実装のコードです。単独のスクリプトとして実行できません。
() => bridge.FireResistance呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1042.
結果: bridge.Armor.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Armor:bridge.Armor.
内部実装のコードです。単独のスクリプトとして実行できません。
() => bridge.Armor呼び出し時には保存済みのハンドラー 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.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Exists:bridge.Exists(serial). -
InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases::IsDeadState:IsDeadState(serial).
内部実装のコードです。単独のスクリプトとして実行できません。
serial => serial > 0 && bridge.Exists(serial) != 0 && IsDeadState(serial) == 0 ? 1 : 0呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:556.
values
結果: values.
結果: new InjectionValue(CompactMoveItem(values)).
呼び出し: CompactMoveItem.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.CompactMoveItem:CompactMoveItem(values).
内部実装のコードです。単独のスクリプトとして実行できません。
values => new InjectionValue(CompactMoveItem(values))呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:895.
values
結果: values.
結果: new InjectionValue(CompactMoveXYZ(values)).
呼び出し: CompactMoveXYZ.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.CompactMoveXYZ:CompactMoveXYZ(values).
内部実装のコードです。単独のスクリプトとして実行できません。
values => new InjectionValue(CompactMoveXYZ(values))呼び出し時には保存済みのハンドラー 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.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.Snap:Snap(values[0].ToString(), NumberConversions.ToInt(values[1]), ToBoolean(values[2])). -
InjectionScript.Runtime.InjectionValue.ToString:values[0].ToString(). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(values[1]). -
InjectionScript.Runtime.InjectionApiUO.ToBoolean:ToBoolean(values[2]).
内部実装のコードです。単独のスクリプトとして実行できません。
values => new InjectionValue(Snap(values[0].ToString(), NumberConversions.ToInt(values[1]), ToBoolean(values[2])))以下の式の値を返します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1013.
value
結果: value.
結果: getter(GetObject(value)).
呼び出し: getter, GetObject.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.GetObject:GetObject(value).
内部実装のコードです。単独のスクリプトとして実行できません。
value => getter(GetObject(value))以下の式の値を返します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1007.
結果: getter(bridge.Self).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
内部実装のコードです。単独のスクリプトとして実行できません。
() => getter(bridge.Self)示された呼び出しと状態更新を実行します。
引数: string name
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/Metadata.cs:24.
public bool IntrinsicVariableExists(string name)
結果: bool.
呼び出し:
intrinsicVariables.ContainsKey
内部実装のコードです。単独のスクリプトとして実行できません。
public bool IntrinsicVariableExists(string name) => intrinsicVariables.ContainsKey(name);示された呼び出しと状態更新を実行します。
引数: int x, int y, int z
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/PortablePathSearch.cs:21.
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;示された呼び出しと状態更新を実行します。
引数: Func<T> action
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/State/Globals.cs:132.
private T WithLock<T>(Func<T> action)
結果: T.
条件:
!acquiredacquired
呼び出し:
mutex.WaitOneTimeSpan.FromSecondsactionmutex.ReleaseMutex
内部実装のコードです。単独のスクリプトとして実行できません。
private T WithLock<T>(Func<T> action)
{
using var mutex = new Mutex(false, mutexName);
bool acquired = false;
try
{
try { acquired = mutex.WaitOne(TimeSpan.FromSeconds(10)); }
catch (AbandonedMutexException) { acquired = true; }
if (!acquired) throw new TimeoutException("The shared C# global store is busy.");
return action();
}
finally { if (acquired) mutex.ReleaseMutex(); }
}