Пример #1
0
 protected override void OnOpen(object userData)
 {
     base.OnOpen(userData);
     m_ItemInfoType = (ItemInfoType)(int)GameEntry.DataNode.GetData <VarInt>(Constant.NodeKey.ItemInfoType);
     GameEntry.DataNode.RemoveNode(Constant.NodeKey.ItemInfoType);
     SetupItemData((ItemModel)userData);
 }
Пример #2
0
 public UBXItemInfo(string name, string unit, int len, double scale,ItemInfoType infotype)
 {
     this.Name = name;
        this.Unit = unit;
        this.Length = len;
        this.Scale = scale;
        this.ItemType = infotype;
 }