Commit graph

6 commits

Author SHA1 Message Date
Kamron Batman
6987fc7407 fix: AddonGenerator produces broken/incomplete addon output
Several issues in [AddonGen, most importantly that generated scripts do
not compile.

Compile-breaking (verified by compiling the generator's output):
- Item component emission wrote a trailing comma into the
  AddComponent(...) argument list and omitted the terminating semicolon
  (CS1525 / CS1002). Now emitted on a single line, matching the
  static-tile path:
  AddComponent(new AddonComponent(id) { Light = ..., Hue = ... }, x, y, z);
- Generated Deed property referenced the deed type as a method without
  `new` (CS1955). Added the missing `new`.

Gather-logic fixes (reasoned from the code):
- Z-range guards were inverted for the tile/item scan (`if (range && ...)`),
  so with the range filter off (the default) map tiles and items were
  never captured, inconsistent with the Static pass (`if (!range || ...)`).
- "Export Items" was nested inside `if (statics)`, so it did nothing
  unless "Export Statics" was also checked. Items now scan independently;
  placed Static items are skipped here since they are already captured
  (with hue/light) by the GetItemsInBounds<Static> pass, avoiding dupes.
- Swapped the gump's Min/Max labels, which sat over the opposite entries.
2026-07-06 22:47:17 -07:00
Kamron Batman
c67a3cd339
fix: Fixes Addon Generator script (#2499) 2026-06-21 23:24:29 -07:00
Kamron Batman
ebaf104935
chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
Kamron Batman
8282b00ca2
feat: Moves gumps out of the core (#1916)
> [!Important]
> **Developer Note**
> This code change will **completely move gumps out of the core**


### Summary

- Adds `GetGumps()` convenience which exposes methods to Find/Close/Send multiple gumps. This helper is a performance improvement by eliminating the Dictionary<Player, List> lookup for gumps.
2024-08-09 19:07:32 -07:00
Kamron Batman
4d47b3849f
fix: Changes IPAddress comparison to use UInt128 (#1897) 2024-08-04 09:32:41 -07:00
Kamron Batman
1c5813d8f4
feat: Adds [AddonGen (#1712)
### Summary

* Adds Arya's addon generator.
* Updates it for MUO


### ToDos
* Update to use search values when .NET 9 is introduced
* Add ability to codegen basic items from data files (JSON?)
2024-03-28 16:50:27 -07:00