本文整理汇总了C#中TagMap类的典型用法代码示例。如果您正苦于以下问题:C# TagMap类的具体用法?C# TagMap怎么用?C# TagMap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TagMap类属于命名空间,在下文中一共展示了TagMap类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Artisan
public Artisan(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Attributes[GameAttribute.MinimapActive] = true;
Interactions.Add(new CraftInteraction());
}
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:Artisan.cs
示例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();
}
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:Vendor.cs
示例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;
}
开发者ID:loonbg,项目名称:mooege,代码行数:29,代码来源:PowerTag.cs
示例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;
}
开发者ID:Im2ortal,项目名称:mooege,代码行数:7,代码来源:NPC.cs
示例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());
}
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:Hireling.cs
示例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;
}
开发者ID:wow4all,项目名称:mooege,代码行数:26,代码来源:Portal.cs
示例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
}
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:ServerProp.cs
示例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);
}
开发者ID:sergeev,项目名称:mooege,代码行数:7,代码来源:Monsters.cs
示例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;
}
开发者ID:vrobel,项目名称:mooege,代码行数:7,代码来源:Barricade.cs
示例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;
}
开发者ID:God601,项目名称:mooege,代码行数:8,代码来源:Monster.cs
示例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;
}
开发者ID:loonbg,项目名称:mooege,代码行数:8,代码来源:Gizmo.cs
示例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());
}
开发者ID:God601,项目名称:mooege,代码行数:9,代码来源:Cain.cs
示例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;
}
开发者ID:Im2ortal,项目名称:mooege,代码行数:9,代码来源:DesctructibleLootContainer.cs
示例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;
}
开发者ID:loonbg,项目名称:mooege,代码行数:10,代码来源:Templar.cs
示例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;
}
开发者ID:loonbg,项目名称:mooege,代码行数:10,代码来源:Enchantress.cs
示例16: Scoundrel
public Scoundrel(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
mainSNO = 4644;
hirelingSNO = 52694;
proxySNO = 192941;
skillKit = 0x8AFE;
hirelingGBID = StringHashHelper.HashItemName("Scoundrel");
Attributes[GameAttribute.Hireling_Class] = 2;
}
开发者ID:loonbg,项目名称:mooege,代码行数:10,代码来源:Scoundrel.cs
示例17: Zombie
public Zombie(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Brain = new MonsterBrain(this);
this.Attributes[GameAttribute.Hitpoints_Max_Total] = 5f;
this.Attributes[GameAttribute.Hitpoints_Max] = 5f;
this.Attributes[GameAttribute.Hitpoints_Total_From_Level] = 0f;
this.Attributes[GameAttribute.Hitpoints_Cur] = 5f;
this.Attributes[GameAttribute.Attacks_Per_Second_Total] = 1.0f;
this.Attributes[GameAttribute.Damage_Weapon_Min_Total, 0] = 5f;
this.Attributes[GameAttribute.Damage_Weapon_Delta_Total, 0] = 7f;
}
开发者ID:vrobel,项目名称:mooege,代码行数:12,代码来源:Zombie.cs
示例18: Spawner
public Spawner(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Field2 = 8;
this.Field7 = 0x00000000;
//Actor.Data.TagMap contains: {66368 = 291072}
//public static TagKeyInt Spawn2 = new TagKeyInt(291072);
//TODO: Find why Tags is not the same as Actor.Data.TagMap
if (Tags.ContainsKey(MarkerKeys.SpawnActor))
this.ActorToSpawnSNO = Tags[MarkerKeys.SpawnActor];
}
开发者ID:loonbg,项目名称:mooege,代码行数:13,代码来源:Spawner.cs
示例19: InteractiveNPC
public InteractiveNPC(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
this.Attributes[GameAttribute.NPC_Has_Interact_Options, 0] = true;
this.Attributes[GameAttribute.NPC_Is_Operatable] = true;
//this.Attributes[GameAttribute.Buff_Visual_Effect, 0x00FFFFF] = true;
Interactions = new List<IInteraction>();
Conversations = new List<ConversationInteraction>();
foreach(var quest in World.Game.Quests)
quest.OnQuestProgress += new Games.Quest.QuestProgressDelegate(quest_OnQuestProgress);
UpdateConversationList(); // show conversations with no quest dependency
}
开发者ID:God601,项目名称:mooege,代码行数:13,代码来源:InteractiveNPC.cs
示例20: LootContainer
public LootContainer(World world, int snoId, TagMap tags)
: base(world, snoId, tags)
{
try
{
_treasureClass = (TreasureClass)ActorData.TagMap[ActorKeys.LootTreasureClass].Target;
}
catch (Exception)
{
Logger.Warn("Could not load treasure class for loot actor because it is either not tagged or the treasure class is not available. Using standard treasure class instead");
_treasureClass = TreasureClass.GenericTreasure;
}
}
开发者ID:loonbg,项目名称:mooege,代码行数:13,代码来源:LootContainer.cs
注:本文中的TagMap类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论