Files
shawn e7299b17e9 Phase 7: netfox + godot-jolt stack upgrade
Stack installed:
- netfox v1.35.3 (core + extras + noray + internals)
- godot-jolt v0.16.0-stable

Architecture:
- Server: ENet transport (works headless, no netfox deps)
- Client/Editor: netfox rollback (RollbackSynchronizer, TickInterpolator)

New/modified:
- docs/migration-netfox-plan.md — migration architecture
- scripts/network/network_manager.gd — netfox-aware ENet fallback
- scripts/network/player.gd — clean base player
- client/characters/player_netfox.gd — rollback player w/ WeaponManager
- client/characters/input/player_net_input.gd — BaseNetInput subclass
- client/characters/character/fps_character_controller.gd — netfox input feed
- client/weapons/ — weapon data, registry, TacticalWeaponHitscan, WeaponManager
- client/scripts/round_replicator.gd — client-side round state bridge
- server/scripts/round_manager.gd — improved state machine
- server/scripts/plugin_api/plugin_manager.gd — refined plugin system
- config: enemy_tag, ally_tag for meatball targeting

Removed: old C++ SimulationServer GDExtension (replaced by netfox rollback)
2026-07-02 17:39:22 -04:00

36 lines
1001 B
GDScript

extends NetworkWeapon
class_name _NetworkWeaponProxy
var c_can_fire: Callable
var c_can_peer_use: Callable
var c_after_fire: Callable
var c_spawn: Callable
var c_get_data: Callable
var c_apply_data: Callable
var c_is_reconcilable: Callable
var c_reconcile: Callable
func _can_fire() -> bool:
return c_can_fire.call()
func _can_peer_use(peer_id: int) -> bool:
return c_can_peer_use.call(peer_id)
func _after_fire(projectile: Node):
c_after_fire.call(projectile)
func _spawn() -> Node:
return c_spawn.call()
func _get_data(projectile: Node) -> Dictionary:
return c_get_data.call(projectile)
func _apply_data(projectile: Node, data: Dictionary):
c_apply_data.call(projectile, data)
func _is_reconcilable(projectile: Node, request_data: Dictionary, local_data: Dictionary) -> bool:
return c_is_reconcilable.call(projectile, request_data, local_data)
func _reconcile(projectile: Node, local_data: Dictionary, remote_data: Dictionary):
c_reconcile.call(projectile, local_data, remote_data)