示例#1
0
 internal Style(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         m_styleAttributes = new Dictionary <string, AttributeInfo>();
     }
 }
示例#2
0
 public Style(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         this.m_styleAttributes = new StyleAttributeHashtable();
     }
 }
    public void setCurrentPhase(ConstructionPhase phase)
    {
        currentPhase = phase;
        switch (phase)
        {
        case ConstructionPhase.NotBuilding:
            UIManager.instance.ShowConstructionHelpText(false);
            UIManager.instance.ShowConstructionInfoText(false);
            currentSelection = -1;
            UIManager.instance.DeselectActionBar();

            break;

        case ConstructionPhase.SelectingBuilding:
            UIManager.instance.ShowConstructionHelpText(true);
            UIManager.instance.ShowConstructionInfoText(true);

            break;

        case ConstructionPhase.PlacingBuilding:
            UIManager.instance.ShowConstructionHelpText(true);
            UIManager.instance.ShowConstructionInfoText(true);
            break;

        default:
            break;
        }
    }
示例#4
0
 internal Style(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         m_styleAttributes = new StyleAttributeHashtable();
     }
 }
示例#5
0
 public Sorting(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         this.m_sortExpressions = new ExpressionInfoList();
         this.m_sortDirections  = new BoolList();
     }
 }
示例#6
0
 internal Sorting(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         m_sortExpressions = new ExpressionInfoList();
         m_sortDirections  = new BoolList();
     }
 }
示例#7
0
 public Sorting(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         this.m_sortExpressions   = new List <ExpressionInfo>();
         this.m_sortDirections    = new List <bool>();
         this.m_naturalSortFlags  = new List <bool>();
         this.m_deferredSortFlags = new List <bool>();
     }
 }
示例#8
0
 internal Grouping(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         m_groupExpressions    = new ExpressionInfoList();
         m_aggregates          = new DataAggregateInfoList();
         m_postSortAggregates  = new DataAggregateInfoList();
         m_recursiveAggregates = new DataAggregateInfoList();
     }
 }
示例#9
0
 internal Grouping(int id, ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         m_groupExpressions    = new List <ExpressionInfo>();
         m_aggregates          = new List <DataAggregateInfo>();
         m_postSortAggregates  = new List <DataAggregateInfo>();
         m_recursiveAggregates = new List <DataAggregateInfo>();
     }
     m_ID = id;
 }
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
     currentPhase = ConstructionPhase.NotBuilding;
 }
示例#11
0
 private void ChangePhase(ConstructionPhase newPhase)
 {
     currentPhase = newPhase;
 }
示例#12
0
 internal Grouping(ConstructionPhase phase)
     : this(-1, phase)
 {
 }
示例#13
0
 public Grouping(ConstructionPhase phase)
     : this(-1, phase)
 {
 }