/// <summary> /// Create an empty QBS of given type /// </summary> /// <param name="type"></param> /// <returns></returns> public static QuickBarSlot Empty(QuickBarSlotType type) { QuickBarSlot qbs = new QuickBarSlot { ObjectType = type, Item = (new NWGameObject()), SecondaryItem = (new NWGameObject()), MultiClass = 0, Resref = "", CommandLabel = "", CommandLine = "", ToolTip = "", INTParam1 = 0, MetaType = 0, DomainLevel = 0, AssociateType = 0, Associate = (new NWGameObject()) }; return(qbs); }
/// <summary> /// Create an empty QBS of given type /// </summary> /// <param name="type"></param> /// <returns></returns> public static QuickBarSlot Empty(QuickBarSlotType type) { var qbs = new QuickBarSlot { ObjectType = type, Item = OBJECT_INVALID, SecondaryItem = OBJECT_INVALID, MultiClass = 0, Resref = "", CommandLabel = "", CommandLine = "", ToolTip = "", INTParam1 = 0, MetaType = 0, DomainLevel = 0, AssociateType = 0, Associate = OBJECT_INVALID }; return(qbs); }