本文整理汇总了C#中WoWPoint.ToInvariantString方法的典型用法代码示例。如果您正苦于以下问题:C# WoWPoint.ToInvariantString方法的具体用法?C# WoWPoint.ToInvariantString怎么用?C# WoWPoint.ToInvariantString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WoWPoint
的用法示例。
在下文中一共展示了WoWPoint.ToInvariantString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CancelAuctionAction
public CancelAuctionAction()
{
Properties["ItemID"] = new MetaProp("ItemID", typeof(string), new DisplayNameAttribute("Item ID List"));
Properties["AutoFindAh"] = new MetaProp("AutoFindAh", typeof(bool), new DisplayNameAttribute("Auto find AH"));
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["UseCategory"] = new MetaProp("UseCategory", typeof(bool), new DisplayNameAttribute("Use Category"));
Properties["Category"] = new MetaProp("Category", typeof(WoWItemClass), new DisplayNameAttribute("Item Category"));
Properties["SubCategory"] = new MetaProp("SubCategory", typeof(WoWItemTradeGoodsClass), new DisplayNameAttribute("Item SubCategory"));
Properties["MinBuyout"] = new MetaProp("MinBuyout", typeof(PropertyBag.GoldEditor),
new DisplayNameAttribute("Min Buyout"), new TypeConverterAttribute(typeof(PropertyBag.GoldEditorConverter)));
ItemID = "0";
AutoFindAh = true;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
UseCategory = false;
Category = WoWItemClass.TradeGoods;
SubCategory = WoWItemTradeGoodsClass.None;
MinBuyout = new PropertyBag.GoldEditor("0g0s0c");
Properties["AutoFindAh"].PropertyChanged += new EventHandler(AutoFindAHChanged);
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
Properties["UseCategory"].PropertyChanged += UseCategoryChanged;
Properties["Category"].PropertyChanged += CategoryChanged;
Properties["Category"].Show = false;
Properties["SubCategory"].Show = false;
Properties["Location"].Show = false;
}
示例2: MoveToAction
public MoveToAction()
{
Properties["Entry"] = new MetaProp("Entry", typeof (uint),
new EditorAttribute(typeof (PropertyBag.EntryEditor),
typeof (UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_Entry"]));
Properties["Location"] = new MetaProp("Location",
typeof (string),
new EditorAttribute(typeof (PropertyBag.LocationEditor),
typeof (UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_Location"]));
Properties["MoveType"] = new MetaProp("MoveType", typeof (MoveToType),
new DisplayNameAttribute(Pb.Strings["Action_MoveToAction_MoveToType"]));
Properties["Pathing"] = new MetaProp("Pathing", typeof (NavigationType),
new DisplayNameAttribute(Pb.Strings["Action_Common_Use"]));
Entry = 0u;
_loc = WoWPoint.Zero;
Location = _loc.ToInvariantString();
MoveType = MoveToType.Location;
Pathing = NavigationType.Navigator;
Properties["Entry"].Show = false;
Properties["MoveType"].PropertyChanged += MoveToActionPropertyChanged;
Properties["Location"].PropertyChanged += LocationChanged;
}
示例3: BuyItemAction
public BuyItemAction()
{
Properties["Location"] = new MetaProp("Location", typeof(string),
new EditorAttribute(typeof(PropertyBag.LocationEditor),
typeof(UITypeEditor)));
Properties["NpcEntry"] = new MetaProp("NpcEntry", typeof(uint),
new EditorAttribute(typeof(PropertyBag.EntryEditor),
typeof(UITypeEditor)));
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["Count"] = new MetaProp("Count", typeof(DynamicProperty<int>),
new TypeConverterAttribute(typeof(DynamicProperty<int>.DynamivExpressionConverter)));
Properties["BuyItemType"] = new MetaProp("BuyItemType", typeof(BuyItemActionType),
new DisplayNameAttribute("Buy"));
Properties["BuyAdditively"] = new MetaProp("BuyAdditively", typeof(bool),
new DisplayNameAttribute("Buy Additively"));
ItemID = "";
Count = new DynamicProperty<int>(this, "0"); // dynamic expression
RegisterDynamicProperty("Count");
BuyItemType = BuyItemActionType.Material;
_loc = WoWPoint.Zero;
Location = _loc.ToInvariantString();
NpcEntry = 0u;
BuyAdditively = true;
Properties["ItemID"].Show = false;
Properties["Count"].Show = false;
Properties["BuyAdditively"].Show = false;
Properties["Location"].PropertyChanged += LocationChanged;
Properties["BuyItemType"].PropertyChanged += BuyItemActionPropertyChanged;
}
示例4: BuyItemFromAhAction
public BuyItemFromAhAction() {
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["MaxBuyout"] = new MetaProp("MaxBuyout", typeof(PropertyBag.GoldEditor),
new DisplayNameAttribute("Max Buyout"), new TypeConverterAttribute(typeof(PropertyBag.GoldEditorConverter)));
Properties["Amount"] = new MetaProp("Amount", typeof(uint));
Properties["ItemListType"] = new MetaProp("ItemListType", typeof(ItemType), new DisplayNameAttribute("Buy ..."));
Properties["AutoFindAh"] = new MetaProp("AutoFindAh", typeof(bool), new DisplayNameAttribute("Auto find AH"));
Properties["BuyAdditively"] = new MetaProp("BuyAdditively", typeof(bool), new DisplayNameAttribute("Buy Additively"));
Properties["BidOnItem"] = new MetaProp("BidOnItem", typeof(bool), new DisplayNameAttribute("Bid on Item"));
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
ItemID = "";
Amount = 1u;
ItemListType = ItemType.Item;
AutoFindAh = true;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
MaxBuyout = new PropertyBag.GoldEditor("100g0s0c");
BidOnItem = false;
BuyAdditively = true;
Properties["AutoFindAh"].PropertyChanged += new EventHandler(AutoFindAHChanged);
Properties["ItemListType"].PropertyChanged += new EventHandler(BuyItemFromAhAction_PropertyChanged);
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
Properties["Amount"].Show = true;
Properties["Location"].Show = false;
}
示例5: TrainSkillAction
public TrainSkillAction()
{
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["NpcEntry"] = new MetaProp("NpcEntry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor)));
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
NpcEntry = 0u;
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
}
示例6: CancelAuctionAction
public CancelAuctionAction()
{
Properties["ItemID"] = new MetaProp("ItemID", typeof (string),
new DisplayNameAttribute(Pb.Strings["Action_Common_ItemEntries"]));
Properties["AutoFindAh"] = new MetaProp("AutoFindAh", typeof (bool),
new DisplayNameAttribute(Pb.Strings["Action_Common_AutoFindAH"]));
Properties["Location"] = new MetaProp("Location", typeof (string),
new EditorAttribute(typeof (PropertyBag.LocationEditor),
typeof (UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_Location"]));
Properties["UseCategory"] = new MetaProp("UseCategory", typeof (bool),
new DisplayNameAttribute(Pb.Strings["Action_Common_UseCategory"]));
Properties["Category"] = new MetaProp("Category", typeof (WoWItemClass),
new DisplayNameAttribute(Pb.Strings["Action_Common_ItemCategory"]));
Properties["SubCategory"] = new MetaProp("SubCategory", typeof (WoWItemTradeGoodsClass),
new DisplayNameAttribute(
Pb.Strings["Action_Common_ItemSubCategory"]));
Properties["MinBuyout"] = new MetaProp("MinBuyout", typeof (PropertyBag.GoldEditor),
new TypeConverterAttribute(typeof (PropertyBag.GoldEditorConverter)),
new DisplayNameAttribute(Pb.Strings["Action_Common_MinBuyout"]));
Properties["IgnoreStackSizeBelow"] = new MetaProp("IgnoreStackSizeBelow", typeof (uint),
new DisplayNameAttribute(
Pb.Strings["Action_Common_IgnoreStackSizeBelow"]));
ItemID = "0";
AutoFindAh = true;
_loc = WoWPoint.Zero;
Location = _loc.ToInvariantString();
UseCategory = false;
Category = WoWItemClass.TradeGoods;
SubCategory = WoWItemTradeGoodsClass.None;
MinBuyout = new PropertyBag.GoldEditor("0g0s0c");
IgnoreStackSizeBelow = 1u;
Properties["AutoFindAh"].PropertyChanged += AutoFindAHChanged;
Properties["Location"].PropertyChanged += LocationChanged;
Properties["UseCategory"].PropertyChanged += UseCategoryChanged;
Properties["Category"].PropertyChanged += CategoryChanged;
Properties["Category"].Show = false;
Properties["SubCategory"].Show = false;
Properties["Location"].Show = false;
}
示例7: MoveToAction
public MoveToAction()
{
Properties["Entry"] = new MetaProp("Entry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor)));
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["MoveType"] = new MetaProp("MoveType", typeof(MoveToType), new DisplayNameAttribute("MoveTo Type"));
Properties["Pathing"] = new MetaProp("Pathing", typeof(NavigationType), new DisplayNameAttribute("Use"));
Entry = 0u;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
MoveType = MoveToType.Location;
Pathing = NavigationType.Navigator;
Properties["Entry"].Show = false;
Properties["MoveType"].PropertyChanged += new EventHandler(MoveToAction_PropertyChanged);
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
}
示例8: SellItemAction
public SellItemAction() {
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["NpcEntry"] = new MetaProp("NpcEntry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor)));
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["Count"] = new MetaProp("Count", typeof(uint));
Properties["SellItemType"] = new MetaProp("SellItemType", typeof(SellItemActionType), new DisplayNameAttribute("Sell Item Type"));
ItemID = "";
Count = 0u;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
NpcEntry = 0u;
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
Properties["SellItemType"].Value = SellItemActionType.Specific;
Properties["SellItemType"].PropertyChanged += new EventHandler(SellItemAction_PropertyChanged);
}
示例9: TrainSkillAction
public TrainSkillAction()
{
Properties["Location"] = new MetaProp("Location", typeof(string),
new EditorAttribute(typeof(PropertyBag.LocationEditor),
typeof(UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_Location"]));
Properties["NpcEntry"] = new MetaProp("NpcEntry", typeof(uint),
new EditorAttribute(typeof(PropertyBag.EntryEditor),
typeof(UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_NpcEntry"]));
_loc = WoWPoint.Zero;
Location = _loc.ToInvariantString();
NpcEntry = 0u;
Properties["Location"].PropertyChanged += LocationChanged;
}
示例10: SellItemAction
public SellItemAction()
{
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["NpcEntry"] = new MetaProp("NpcEntry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor)));
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["Count"] = new MetaProp("Count", typeof(DynamicProperty<int>),
new TypeConverterAttribute(typeof(DynamicProperty<int>.DynamivExpressionConverter)));
Properties["SellItemType"] = new MetaProp("SellItemType", typeof(SellItemActionType), new DisplayNameAttribute("Sell Item Type"));
ItemID = "";
Count = new DynamicProperty<int>(this,"0");
RegisterDynamicProperty("Count");
_loc = WoWPoint.Zero;
Location = _loc.ToInvariantString();
NpcEntry = 0u;
Properties["Location"].PropertyChanged += LocationChanged;
Properties["SellItemType"].Value = SellItemActionType.Specific;
Properties["SellItemType"].PropertyChanged += SellItemActionPropertyChanged;
}
示例11: BuyItemAction
public BuyItemAction() {
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["NpcEntry"] = new MetaProp("NpcEntry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor)));
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["Count"] = new MetaProp("Count", typeof(uint));
Properties["BuyItemType"] = new MetaProp("BuyItemType", typeof(BuyItemActionType), new DisplayNameAttribute("Buy"));
Properties["BuyAdditively"] = new MetaProp("BuyAdditively", typeof(bool), new DisplayNameAttribute("Buy Additively"));
ItemID = "";
Count = 0u;
BuyItemType = BuyItemActionType.Material;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
NpcEntry = 0u;
BuyAdditively = true;
Properties["ItemID"].Show = false;
Properties["Count"].Show = false;
Properties["BuyAdditively"].Show = false;
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
Properties["BuyItemType"].PropertyChanged += new EventHandler(BuyItemAction_PropertyChanged);
}
示例12: MailItemAction
public MailItemAction() {
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["AutoFindMailBox"] = new MetaProp("AutoFindMailBox", typeof(bool), new DisplayNameAttribute("Automatically find Mailbox"));
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
Properties["UseCategory"] = new MetaProp("UseCategory", typeof(bool), new DisplayNameAttribute("Use Category"));
Properties["Category"] = new MetaProp("Category", typeof(WoWItemClass), new DisplayNameAttribute("Item Category"));
Properties["SubCategory"] = new MetaProp("SubCategory", typeof(WoWItemTradeGoodsClass), new DisplayNameAttribute("Item SubCategory"));
ItemID = "";
AutoFindMailBox = true;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
UseCategory = true;
Category = WoWItemClass.TradeGoods;
SubCategory = WoWItemTradeGoodsClass.None;
Properties["Location"].Show = false;
Properties["ItemID"].Show = false;
Properties["AutoFindMailBox"].PropertyChanged += new EventHandler(AutoFindMailBoxChanged);
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
Properties["UseCategory"].PropertyChanged += UseCategoryChanged;
Properties["Category"].PropertyChanged += CategoryChanged;
}
示例13: GetMailAction
public GetMailAction()
{
//CheckNewMail
Properties["ItemID"] = new MetaProp("ItemID", typeof(string));
Properties["MinFreeBagSlots"] = new MetaProp("MinFreeBagSlots", typeof(uint), new DisplayNameAttribute("Min Free Bagslots"));
Properties["CheckNewMail"] = new MetaProp("CheckNewMail", typeof(bool), new DisplayNameAttribute("Check for New Mail"));
Properties["GetMailType"] = new MetaProp("GetMailType", typeof(GetMailActionType), new DisplayNameAttribute("Get Mail"));
Properties["AutoFindMailBox"] = new MetaProp("AutoFindMailBox", typeof(bool), new DisplayNameAttribute("Auto find Mailbox"));
Properties["Location"] = new MetaProp("Location", typeof(string), new EditorAttribute(typeof(PropertyBag.LocationEditor), typeof(UITypeEditor)));
ItemID = "";
CheckNewMail = true;
GetMailType = (GetMailActionType)GetMailActionType.AllItems;
AutoFindMailBox = true;
loc = WoWPoint.Zero;
Location = loc.ToInvariantString();
MinFreeBagSlots = 2u;
Properties["GetMailType"].PropertyChanged += new EventHandler(GetMailAction_PropertyChanged);
Properties["AutoFindMailBox"].PropertyChanged += new EventHandler(AutoFindMailBoxChanged);
Properties["ItemID"].Show = false;
Properties["Location"].Show = false;
Properties["Location"].PropertyChanged += new EventHandler(LocationChanged);
}
示例14: GetItemfromBankAction
public GetItemfromBankAction()
{
Properties["Amount"] = new MetaProp("Amount", typeof (DynamicProperty<int>),
new TypeConverterAttribute(
typeof (DynamicProperty<int>.DynamivExpressionConverter)),
new DisplayNameAttribute(Pb.Strings["Action_Common_Amount"]));
Properties["ItemID"] = new MetaProp("ItemID", typeof (string),
new DisplayNameAttribute(Pb.Strings["Action_Common_ItemEntries"]));
Properties["MinFreeBagSlots"] = new MetaProp("MinFreeBagSlots", typeof (uint),
new DisplayNameAttribute(
Pb.Strings["Action_Common_MinFreeBagSlots"]));
Properties["GetItemfromBankType"] = new MetaProp("GetItemfromBankType",
typeof (BankWithdrawlItemType),
new DisplayNameAttribute(
Pb.Strings["Action_Common_ItemsToWithdraw"]));
Properties["Bank"] = new MetaProp("Bank", typeof (BankType),
new DisplayNameAttribute(Pb.Strings["Action_Common_Bank"]));
Properties["AutoFindBank"] = new MetaProp("AutoFindBank", typeof (bool),
new DisplayNameAttribute(Pb.Strings["Action_Common_AutoFindBank"]));
Properties["Location"] = new MetaProp("Location", typeof (string),
new EditorAttribute(typeof (PropertyBag.LocationEditor),
typeof (UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_Location"]));
Properties["NpcEntry"] = new MetaProp("NpcEntry",
typeof (uint),
new EditorAttribute(typeof (PropertyBag.EntryEditor),
typeof (UITypeEditor)),
new DisplayNameAttribute(Pb.Strings["Action_Common_NpcEntry"]));
Properties["WithdrawAdditively"] = new MetaProp("WithdrawAdditively", typeof (bool),
new DisplayNameAttribute(
Pb.Strings["Action_Common_WithdrawAdditively"]));
Properties["Withdraw"] = new MetaProp("Withdraw", typeof (DepositWithdrawAmount),
new DisplayNameAttribute(Pb.Strings["Action_Common_Withdraw"]));
Amount = new DynamicProperty<int>(this, "1");
RegisterDynamicProperty("Amount");
ItemID = "";
MinFreeBagSlots = 2u;
GetItemfromBankType = BankWithdrawlItemType.SpecificItem;
Bank = BankType.Personal;
AutoFindBank = true;
_loc = WoWPoint.Zero;
Location = _loc.ToInvariantString();
NpcEntry = 0u;
WithdrawAdditively = true;
Withdraw = DepositWithdrawAmount.All;
Properties["Location"].Show = false;
Properties["NpcEntry"].Show = false;
Properties["Amount"].Show = false;
Properties["AutoFindBank"].PropertyChanged += AutoFindBankChanged;
Properties["GetItemfromBankType"].PropertyChanged += GetItemfromBankActionPropertyChanged;
Properties["Location"].PropertyChanged += LocationChanged;
Properties["Withdraw"].PropertyChanged += WithdrawChanged;
}
示例15: ReadXml
public override void ReadXml(XmlReader reader)
{
ItemID = reader["ItemID"];
MinBuyout = new PropertyBag.GoldEditor(reader["MinBuyout"]);
bool boolVal;
bool.TryParse(reader["AutoFindAh"], out boolVal);
AutoFindAh = boolVal;
bool.TryParse(reader["UseCategory"], out boolVal);
UseCategory = boolVal;
Category = (WoWItemClass)Enum.Parse(typeof(WoWItemClass), reader["Category"]);
string subCatType = "";
subCatType = reader["SubCategoryType"];
if (!string.IsNullOrEmpty(subCatType))
{
Type t;
if (subCatType != "SubCategoryType")
{
string typeName = string.Format("Styx.{0}", subCatType);
t = Assembly.GetEntryAssembly().GetType(typeName);
}
else
t = typeof(SubCategoryType);
object subVal = Activator.CreateInstance(t);
subVal = Enum.Parse(t, reader["SubCategory"]);
SubCategory = subVal;
}
float x, y, z;
x = reader["X"].ToSingle();
y = reader["Y"].ToSingle();
z = reader["Z"].ToSingle();
loc = new WoWPoint(x, y, z);
Location = loc.ToInvariantString();
reader.ReadStartElement();
}