getTileStructures() public static method

public static getTileStructures ( ) : List
return List
Example #1
0
        private void lbStructures_SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = lbStructures.SelectedIndex;
            var tss   = FormStructures.getTileStructures();

            if (index == -1 || index >= tss.Count)
            {
                return;
            }
            curTileStruct = tss[index];
        }
Example #2
0
 private void updateBlocksPanelVisible()
 {
     pnBlocks.Visible     = !useStructs;
     lbStructures.Visible = useStructs;
     if (useStructs)
     {
         lbStructures.Items.Clear();
         var tss = FormStructures.getTileStructures();
         foreach (var ts in tss)
         {
             lbStructures.Items.Add(ts.Name);
         }
     }
 }