@deprecated Deprecated in 6.0. Use [PlacementSession] directly. Will be removed in 6.1. Thin backward-compatible wrapper that delegates all calls to its [member session]. Exists only so that [code].tres[/code] files and consumer code that still type against [code]PlacementContainer[/code] continue to compile during the one-release deprecation window. [b]Migration:[/b] Replace [code]PlacementContainer[/code] with [code]PlacementSession[/code]. The session exposes every method that the container previously exposed (plus [method PlacementSession.get_templates], [method PlacementSession.get_debug_settings], etc.). Validation methods ([code]validate_editor[/code], [code]validate_runtime[/code]) live on [PlacementConfigurationValidator] as static utilities.
Source: addons/grid_placement/resources/placement_container.gd
Syntax
class PlacementContainer extends PlacementResourceMembers
| Name | Kind | Summary |
|---|---|---|
session | Property | The [PlacementSession] this wrapper delegates to. Must be set before any method is called. The injector and [method PlacementSession.from_container] both wire this automatically. |
grid_placement_bundle | Property | Configuration resource. Kept for [code].tres[/code] backward compat; reads are delegated to [member session]. |
get_contexts | Method | |
get_states | Method | |
get_logger | Method | |
set_logger | Method | |
set_states | Method | |
get_mode_state | Method | |
get_targeting_state | Method | |
get_building_state | Method | |
get_manipulation_state | Method | |
get_settings | Method | |
get_placement_rules | Method | |
get_actions | Method | |
get_templates | Method | |
get_visual_settings | Method | |
get_manipulation_settings | Method | |
get_debug_settings | Method | |
get_runtime_checks | Method | |
get_indicator_context | Method | |
get_action_history | Method | |
dump_action_history | Method | |
get_systems_context | Method | |
get_runtime_issues | Method | |
get_editor_issues | Method | |
log_runtime_issues | Method | |
issues | Property | |
log | Property | |
validate_editor | Method | |
validate_runtime | Method |
Source
addons/grid_placement/resources/placement_container.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs