예제 #1
0
 internal NhtrBaseItem(NhtrList parent, byte marker) : base(parent)
 {
     marker2 = marker;
     pos     = Vector3f.Zero;
     min     = Vector2f.Zero;
     max     = Vector2f.Zero;
 }
예제 #2
0
        internal NhtrRoadItem(NhtrList parent) : base(parent, 3)
        {
            topleft  = new NhtrLocation();
            topright = new NhtrLocation();
            botleft  = new NhtrLocation();
            botright = new NhtrLocation();
            texture  = 0x00000300;

            data = new byte[10];
        }
예제 #3
0
 public Nhtr() : base()
 {
     Ambertation.BaseChangeableNumber.DigitBase = 16;
     Version = NhtrVersions.Business;
     NhtrListType[] types = Enum.GetValues(typeof(NhtrListType)) as NhtrListType[];
     items = new NhtrList[types.Length];
     foreach (NhtrListType tp in types)
     {
         items[(int)tp] = new NhtrList(this, tp);
     }
 }
예제 #4
0
        private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            lb.Items.Clear();
            if (cb.SelectedItem == null)
            {
                return;
            }

            NhtrList list = (cb.SelectedItem as CountedListItem).Object as NhtrList;

            foreach (NhtrItem i in list)
            {
                SimPe.CountedListItem.Add(lb, i);
            }
        }
예제 #5
0
 internal NhtrDecorationItem(NhtrList parent) : base(parent, 8)
 {
 }
예제 #6
0
 internal NhtrBridgeItem(NhtrList parent) : base(parent)
 {
     marker3 = 3;
     data2   = new byte[40];
 }
예제 #7
0
 internal NhtrTreeItem(NhtrList parent) : base(parent)
 {
 }
예제 #8
0
 internal NhtrItem(NhtrList parent)
 {
     this.parent = parent;
     marker      = 2;
 }