コード例 #1
0
        public ResourceNodeLocationCanon(ResourceSignals resourceSignals, HexCellSignals cellSignals)
        {
            ResourceSignals = resourceSignals;

            resourceSignals.NodeBeingDestroyed.Subscribe(OnNodeBeingDestroyed);

            cellSignals.MapBeingClearedSignal.Subscribe(unit => Clear(false));
        }
コード例 #2
0
        public ResourceNodeFactory(
            DiContainer container, IPossessionRelationship <IHexCell, IResourceNode> resourceNodeLocationCanon,
            IResourceRestrictionLogic restrictionCanon, ResourceSignals signals,
            [InjectOptional(Id = "Resource Node Container")] Transform nodeContainer
            )
        {
            Container = container;
            ResourceNodeLocationCanon = resourceNodeLocationCanon;
            RestrictionCanon          = restrictionCanon;
            NodeContainer             = nodeContainer;

            signals.NodeBeingDestroyed.Subscribe(OnNodeBeingDestroyed);
        }
コード例 #3
0
 public void InjectDependencies(ResourceSignals signals)
 {
     Signals = signals;
 }