The public classname is an authoring identifier such as enemy_scriver,
vehicle_ride_armor or trigger_teleport. It is independent of the C# class,
namespace and assembly. Selecting a named entry places that entity directly;
the author does not select original_object and supply a numeric ID.
LevelProject.EntityClasses stores the portable definition of the runtime
adapter. Imported per-instance game/id/subid data lives in
ProjectEntity.RuntimeProperties, outside the editable keyvalues. The compiler
translates public keyvalues and emits the existing runtime adapter. Public
classnames, original properties and opaque adapter data are included in the
package’s authoring metadata and restored on editable reimport. Old packages
continue to load. Opening a legacy source project resolves recognized native
placements in memory; saving persists that migration. Unknown placements are
preserved rather than guessed.
This table records the meanings read from the existing ROM-derived C# controllers in this checkout. It is not a new ROM disassembly or BizHawk test, and it does not establish frame parity. Masks below refer to the hidden native subtype byte. Only an explicit property edit rewrites its mask; all other bits remain untouched. A zero/nonzero selector writes the lowest bit in its mask when enabled and preserves an imported noncanonical encoding until edited.
| Actors | Public keyvalue | Mask | Meaning and source |
|---|---|---|---|
| X1 DodgeBlaster, Crusher; X2 Scriver, Aclanda, BariteLaser, GasPipe, Morgun, PararoidR5, PararoidV1 | facing |
40 |
Initial engine horizontal facing, Left/Right. Their actor initialization or motion constructors read bit 6. Crusher uses CrusherMotion.initialRight; this is not ceiling mounting. |
| X2 Scriver | behavior |
0F |
Zero selects Jumping, nonzero selects Proximity drilling, in ScriverControl.Reset. |
| X1 ArmorSoldier | starts_armored |
80 |
Armored body versus exposed pilot in ArmorSoldier. The neutral player vehicle is a separate vehicle_ride_armor classname. |
| X2 GasPipe; X3 Trapper | upside_down |
80 |
Vertical mounting flip in native initialization. |
| X3 Escanail | facing |
F0 |
Zero/nonzero initial direction and wall probes in Escanail.InitializeOriginalControl / AtWallEnd. |
| X2 Refleczer | facing, upside_down |
01, 02 |
Horizontal and vertical orientation in Refleczer.InitializeOriginalControl; additional animation-selection bits remain opaque. |
| X3 NotorBanger | jump_after_burst |
01 |
Enter the jump/recovery phase after the firing burst. |
| X3 Trapper | attack_range |
7F |
Values 0/1/2 select 128/96/64 pixels in the charge detector. Other imported values remain unchanged. |
| X1 MetalWing | immediate_flight |
80 |
One-tick cruise wait instead of the randomized wait, passed to MetalWingControl.Step. |
| X1 BallDeVoux | starts_grounded |
80 |
Mode 6, Airborne=0 instead of mode 2, Airborne=255, in BallDeVouxMotion. Other subtype effects on facing are preserved. |
| X1 BattonBone, BattonM501 | vertical_escape_limit |
80 |
Also escape at 192 pixels of vertical displacement from home, in BattonControl. |
| X1 RayField | beam_pattern |
0E, shifted 1 |
Original indices 0..4, the last alternating. RayField.InitializeOriginalControl rejects larger indices. |
| X1 RayField | delayed_charge |
10 |
Initial/rearm wait of 20 frames rather than 1. Bit 5’s special-event adapter is pending and is not offered as a working keyvalue. |
| X2 BariteLaser | carrier_mounted, stationary_firing_cycle |
80, 01 |
Attached-carrier state and post-attachment firing cycle. Carrier mounting also requires a valid Carrier reference. |
| X3 Helit | descending_missiles |
80 |
Forwarded to HelitMissile: descend to X’s height before horizontal flight. It controls the missile, not the body. The unreviewed body remains idle. |
| X2 LiftPlatform | route |
FF |
Routes 0..4: Down/up, Right/left, Left/right, Down/left/up/right, Up/down, from LiftPlatform.control.json. Native positive Y velocity means upward motion. |
Actor files are under XSharp.Enemies.X1/Enemies/Functional,
XSharp.Enemies.X2/Enemies (including Functional),
XSharp.Enemies.X3/Enemies/Functional, and XSharp.Objects.X2.
Subtype meanings belonging only to helper entities are deliberately not offered on their parent: Tubamail’s departure bit is not consumed by TubamailS, and GarakutaPiece’s pair-role bit does not configure the GarakutaRobot body. Future bindings must trace the value through the actual placed actor and its children. The editor does not run generic controllers or infer unreviewed behavior.
The editor reads existing embedded PNGs and declarative frame data, preserving the assembly pivot, alpha and nearest-neighbor scaling. It uses each roster’s first declared Idle frame; Ride Armor uses the native idle selector, and Lift Platform uses the initial route’s idle frame. Scriver/Aclanda reuse their native frame metadata; Aclanda and Axe Max compose body parts at declared offsets. Chill Penguin Ride Armor uses its existing green palette mapping. No actor is constructed and no precache, AI, renderer or audio device is initialized.
Legacy native dispatch bindings, first-frame declarations and pickup frames are exported from C# source as presentation metadata by:
python tools/Export-EditorSpriteMetadata.py
The script reads literal declarations, never executes their methods, and writes
XSharpLevelEditor/Assets/Entities/LegacySprites.json with source/sequence
provenance and LegacyPlacements.json from BaseEngine.AddObjectEvent with
source/factory provenance. This includes pre-roster actors such as Axe Max,
Bomb Been, Ray Bit and Snow Shooter. Logical entities, tile-based scenery and actor stubs without a
declared sprite retain editor markers. This is a placement preview, not a
simulation of player-relative targeting or of every native animation phase.