本文整理汇总了C#中TagMap类的典型用法代码示例。如果您正苦于以下问题:C# TagMap类的具体用法?C# TagMap怎么用?C# TagMap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TagMap类属于命名空间,在下文中一共展示了TagMap类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Artisan
public Artisan(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Attributes[GameAttribute.MinimapActive] = true;
Interactions.Add(new CraftInteraction());
}
示例2: Vendor
public Vendor(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Attributes[GameAttribute.MinimapActive] = true;
_vendorGrid = new InventoryGrid(this, 1, 20, (int)EquipmentSlotId.Vendor);
PopulateItems();
}
示例3: FindTagMapWithKey
public static TagMap FindTagMapWithKey(int powerSNO, TagKey key)
{
Power power = (Power)MPQStorage.Data.Assets[SNOGroup.Power][powerSNO].Data;
// TODO: figure out which tagmaps to search and in what order, eventually will probably
// have to reorder them based on whether PvPing or not.
TagMap[] tagMaps = new TagMap[]
{
power.Powerdef.GeneralTagMap,
power.Powerdef.TagMap,
power.Powerdef.ContactTagMap0,
power.Powerdef.ContactTagMap1,
power.Powerdef.ContactTagMap2,
power.Powerdef.ContactTagMap3,
power.Powerdef.PVPGeneralTagMap,
power.Powerdef.PVPContactTagMap0,
power.Powerdef.PVPContactTagMap1,
power.Powerdef.PVPContactTagMap2,
power.Powerdef.PVPContactTagMap3,
};
foreach (TagMap tagmap in tagMaps)
{
if (tagmap.ContainsKey(key))
return tagmap;
}
return null;
}
示例4: NPC
public NPC(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Field2 = 0x9;
this.Field7 = 2;
this.Attributes[GameAttribute.Is_NPC] = true;
}
示例5: Hireling
public Hireling(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
//this.Attributes[GameAttribute.TeamID] = 2;
Interactions.Add(new HireInteraction());
Interactions.Add(new InventoryInteraction());
}
示例6: Portal
public Portal(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Destination = new ResolvedPortalDestination
{
WorldSNO = tags[MarkerKeys.DestinationWorld].Id,
};
if (tags.ContainsKey(MarkerKeys.DestinationLevelArea))
this.Destination.DestLevelAreaSNO = tags[MarkerKeys.DestinationLevelArea].Id;
if (tags.ContainsKey(MarkerKeys.DestinationActorTag))
this.Destination.StartingPointActorTag = tags[MarkerKeys.DestinationActorTag];
else
Logger.Warn("Found portal {0}without target location actor", this.ActorSNO.Id);
this.Field2 = 16;
// FIXME: Hardcoded crap; probably don't need to set most of these. /komiga
this.Attributes[GameAttribute.MinimapActive] = true;
this.Attributes[GameAttribute.Hitpoints_Max_Total] = 1f;
this.Attributes[GameAttribute.Hitpoints_Max] = 0.0009994507f;
this.Attributes[GameAttribute.Hitpoints_Total_From_Level] = 3.051758E-05f;
this.Attributes[GameAttribute.Hitpoints_Cur] = 0.0009994507f;
this.Attributes[GameAttribute.Level] = 1;
}
示例7: ServerProp
public ServerProp(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Field2 = 16;
this.Field7 = 0x00000001;
this.CollFlags = 0; // a hack for passing through blockers /fasbat
}
示例8: TreasurePygmy
public TreasurePygmy(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
(Brain as MonsterBrain).AddPresetPower(105371);
(Brain as MonsterBrain).AddPresetPower(54836);
(Brain as MonsterBrain).AddPresetPower(105665);
}
示例9: Barricade
public Barricade(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
base.Attributes[GameAttribute.Experience_Granted] = 0;
base.Attributes[GameAttribute.DropsNoLoot] = true;
this.Attributes[GameAttribute.Hitpoints_Cur] = 1;
}
示例10: Monster
public Monster(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Field2 = 0x8;
this.GBHandle.Type = (int)GBHandleType.Monster; this.GBHandle.GBID = 1;
this.Attributes[GameAttribute.Experience_Granted] = 125;
}
示例11: Gizmo
public Gizmo(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Field2 = 16;
this.Field7 = 0x00000001;
this.Attributes[Mooege.Net.GS.Message.GameAttribute.Hitpoints_Cur] = 1;
}
示例12: Cain
public Cain(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Attributes[GameAttribute.MinimapActive] = true;
Conversations.Add(new ConversationInteraction(72416));
Conversations.Add(new ConversationInteraction(198588));
Conversations.Add(new ConversationInteraction(73171));
Interactions.Add(new IdentifyAllInteraction());
}
示例13: DesctructibleLootContainer
public DesctructibleLootContainer(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
if (ActorData.TagMap.ContainsKey(ActorKeys.LootTreasureClass))
TreasureClass = (TreasureClass)ActorData.TagMap[ActorKeys.LootTreasureClass].Target;
base.Attributes[GameAttribute.Experience_Granted] = 0;
this.Attributes[GameAttribute.Hitpoints_Cur] = 1;
base.Attributes[GameAttribute.DropsNoLoot] = true;
}
示例14: Templar
public Templar(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
mainSNO = 4538;
hirelingSNO = 0x0000CDD5;
proxySNO = 0x0002F1AC;
skillKit = 0x8AFB;
hirelingGBID = StringHashHelper.HashItemName("Templar");
this.Attributes[GameAttribute.Hireling_Class] = 1;
}
示例15: Enchantress
public Enchantress(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
mainSNO = 4062;
hirelingSNO = -1;
proxySNO = 192942;
skillKit = 87094;
hirelingGBID = StringHashHelper.HashItemName("Enchantress");
Attributes[Mooege.Net.GS.Message.GameAttribute.Hireling_Class] = 3;
}