public MyProjectorBase()
            : base()
        {
            m_clipboard = new MyProjectorClipboard(this);
            m_spawnClipboard = new MyProjectorClipboard(this);

            m_keepProjection.Value = false;
            m_instantBuildingEnabled.Value = false;
            m_maxNumberOfProjections.Value = 0;
            m_maxNumberOfBlocksPerProjection.Value = 0;
            m_getOwnershipFromProjector.Value = false;

            m_instantBuildingEnabled.ValueChanged += m_instantBuildingEnabled_ValueChanged;
            m_maxNumberOfProjections.ValueChanged += m_maxNumberOfProjections_ValueChanged;
            m_maxNumberOfBlocksPerProjection.ValueChanged += m_maxNumberOfBlocksPerProjection_ValueChanged;
            m_getOwnershipFromProjector.ValueChanged += m_getOwnershipFromProjector_ValueChanged;
        }
        public MyProjectorBase()
            : base()
        {
#if XB1 // XB1_SYNC_NOREFLECTION
            m_keepProjection = SyncType.CreateAndAddProp<bool>();
            m_instantBuildingEnabled = SyncType.CreateAndAddProp<bool>();
            m_maxNumberOfProjections = SyncType.CreateAndAddProp<int>();
            m_maxNumberOfBlocksPerProjection = SyncType.CreateAndAddProp<int>();
            m_getOwnershipFromProjector = SyncType.CreateAndAddProp<bool>();
#endif // XB1
            m_clipboard = new MyProjectorClipboard(this, MyClipboardComponent.ClipboardDefinition.PastingSettings);
            m_spawnClipboard = new MyProjectorClipboard(this, MyClipboardComponent.ClipboardDefinition.PastingSettings);

            m_keepProjection.Value = false;
            m_instantBuildingEnabled.Value = false;
            m_maxNumberOfProjections.Value = 0;
            m_maxNumberOfBlocksPerProjection.Value = 0;
            m_getOwnershipFromProjector.Value = false;

            m_instantBuildingEnabled.ValueChanged += m_instantBuildingEnabled_ValueChanged;
            m_maxNumberOfProjections.ValueChanged += m_maxNumberOfProjections_ValueChanged;
            m_maxNumberOfBlocksPerProjection.ValueChanged += m_maxNumberOfBlocksPerProjection_ValueChanged;
            m_getOwnershipFromProjector.ValueChanged += m_getOwnershipFromProjector_ValueChanged;
        }
Beispiel #3
0
 public MyProjector()
     : base()
 {
     m_clipboard = new MyProjectorClipboard(this);
 }
 public MyProjectorBase()
     : base()
 {
     m_clipboard = new MyProjectorClipboard(this);
     m_spawnClipboard = new MyProjectorClipboard(this);
 }