当前位置: 首页>>代码示例>>C#>>正文


C# NetGore类代码示例

本文整理汇总了C#中NetGore的典型用法代码示例。如果您正苦于以下问题:C# NetGore类的具体用法?C# NetGore怎么用?C# NetGore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NetGore类属于命名空间,在下文中一共展示了NetGore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IGuildMemberTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["character_id"] = (System.Int32)source.CharacterID;
paramValues["guild_id"] = (System.UInt16)source.GuildID;
paramValues["joined"] = (System.DateTime)source.Joined;
paramValues["rank"] = (System.Byte)source.Rank;
}
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:GuildMemberTableDbExtensions.cs

示例2: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this ICharacterTemplateEquippedTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["chance"] = (System.UInt16)source.Chance;
paramValues["character_template_id"] = (System.UInt16)source.CharacterTemplateID;
paramValues["id"] = (System.Int32)source.ID;
paramValues["item_template_id"] = (System.UInt16)source.ItemTemplateID;
}
开发者ID:wtfcolt,项目名称:game,代码行数:14,代码来源:CharacterTemplateEquippedTableDbExtensions.cs

示例3: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this ICharacterQuestStatusKillsTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["character_id"] = (System.Int32)source.CharacterID;
paramValues["character_template_id"] = (System.UInt16)source.CharacterTemplateID;
paramValues["count"] = (System.UInt16)source.Count;
paramValues["quest_id"] = (System.UInt16)source.QuestID;
}
开发者ID:wtfcolt,项目名称:game,代码行数:14,代码来源:CharacterQuestStatusKillsTableDbExtensions.cs

示例4: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IItemTemplateTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["action_display_id"] = (System.Nullable<System.UInt16>)source.ActionDisplayID;
paramValues["description"] = (System.String)source.Description;
paramValues["equipped_body"] = (System.String)source.EquippedBody;
paramValues["graphic"] = (System.UInt16)source.Graphic;
paramValues["height"] = (System.Byte)source.Height;
paramValues["hp"] = (System.Int16)source.HP;
paramValues["id"] = (System.UInt16)source.ID;
paramValues["mp"] = (System.Int16)source.MP;
paramValues["name"] = (System.String)source.Name;
paramValues["range"] = (System.UInt16)source.Range;
paramValues["stat_agi"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Agi);
paramValues["stat_defence"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Defence);
paramValues["stat_int"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Int);
paramValues["stat_maxhit"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MaxHit);
paramValues["stat_maxhp"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MaxHP);
paramValues["stat_maxmp"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MaxMP);
paramValues["stat_minhit"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MinHit);
paramValues["stat_req_agi"] = (System.Int16)source.GetReqStat((DemoGame.StatType)DemoGame.StatType.Agi);
paramValues["stat_req_int"] = (System.Int16)source.GetReqStat((DemoGame.StatType)DemoGame.StatType.Int);
paramValues["stat_req_str"] = (System.Int16)source.GetReqStat((DemoGame.StatType)DemoGame.StatType.Str);
paramValues["stat_str"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Str);
paramValues["type"] = (System.Byte)source.Type;
paramValues["value"] = (System.Int32)source.Value;
paramValues["weapon_type"] = (System.Byte)source.WeaponType;
paramValues["width"] = (System.Byte)source.Width;
}
开发者ID:wtfcolt,项目名称:game,代码行数:35,代码来源:ItemTemplateTableDbExtensions.cs

示例5: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IViewUserCharacterTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["ai_id"] = (System.Nullable<System.UInt16>)source.AIID;
paramValues["body_id"] = (System.UInt16)source.BodyID;
paramValues["cash"] = (System.Int32)source.Cash;
paramValues["character_template_id"] = (System.Nullable<System.UInt16>)source.CharacterTemplateID;
paramValues["chat_dialog"] = (System.Nullable<System.UInt16>)source.ChatDialog;
paramValues["exp"] = (System.Int32)source.Exp;
paramValues["hp"] = (System.Int16)source.HP;
paramValues["id"] = (System.Int32)source.ID;
paramValues["level"] = (System.Int16)source.Level;
paramValues["load_map_id"] = (System.UInt16)source.LoadMapID;
paramValues["load_x"] = (System.UInt16)source.LoadX;
paramValues["load_y"] = (System.UInt16)source.LoadY;
paramValues["move_speed"] = (System.UInt16)source.MoveSpeed;
paramValues["mp"] = (System.Int16)source.MP;
paramValues["name"] = (System.String)source.Name;
paramValues["respawn_map_id"] = (System.Nullable<System.UInt16>)source.RespawnMapID;
paramValues["respawn_x"] = (System.Single)source.RespawnX;
paramValues["respawn_y"] = (System.Single)source.RespawnY;
paramValues["shop_id"] = (System.Nullable<System.UInt16>)source.ShopID;
paramValues["statpoints"] = (System.Int32)source.StatPoints;
paramValues["stat_agi"] = (System.Int16)source.StatAgi;
paramValues["stat_defence"] = (System.Int16)source.StatDefence;
paramValues["stat_int"] = (System.Int16)source.StatInt;
paramValues["stat_maxhit"] = (System.Int16)source.StatMaxhit;
paramValues["stat_maxhp"] = (System.Int16)source.StatMaxhp;
paramValues["stat_maxmp"] = (System.Int16)source.StatMaxmp;
paramValues["stat_minhit"] = (System.Int16)source.StatMinhit;
paramValues["stat_str"] = (System.Int16)source.StatStr;
}
开发者ID:wtfcolt,项目名称:game,代码行数:38,代码来源:ViewUserCharacterTableDbExtensions.cs

示例6: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IQuestTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["id"] = (System.UInt16)source.ID;
paramValues["repeatable"] = (System.Boolean)source.Repeatable;
paramValues["reward_cash"] = (System.Int32)source.RewardCash;
paramValues["reward_exp"] = (System.Int32)source.RewardExp;
}
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:QuestTableDbExtensions.cs

示例7: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this ICharacterTemplateTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["ai_id"] = (System.Nullable<System.UInt16>)source.AIID;
paramValues["alliance_id"] = (System.Byte)source.AllianceID;
paramValues["body_id"] = (System.UInt16)source.BodyID;
paramValues["chat_dialog"] = (System.Nullable<System.UInt16>)source.ChatDialog;
paramValues["exp"] = (System.Int32)source.Exp;
paramValues["give_cash"] = (System.Int32)source.GiveCash;
paramValues["give_exp"] = (System.Int32)source.GiveExp;
paramValues["id"] = (System.UInt16)source.ID;
paramValues["level"] = (System.Int16)source.Level;
paramValues["move_speed"] = (System.UInt16)source.MoveSpeed;
paramValues["name"] = (System.String)source.Name;
paramValues["respawn"] = (System.UInt16)source.Respawn;
paramValues["shop_id"] = (System.Nullable<System.UInt16>)source.ShopID;
paramValues["statpoints"] = (System.Int32)source.StatPoints;
paramValues["stat_agi"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Agi);
paramValues["stat_defence"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Defence);
paramValues["stat_int"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Int);
paramValues["stat_maxhit"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MaxHit);
paramValues["stat_maxhp"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MaxHP);
paramValues["stat_maxmp"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MaxMP);
paramValues["stat_minhit"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.MinHit);
paramValues["stat_str"] = (System.Int16)source.GetStat((DemoGame.StatType)DemoGame.StatType.Str);
}
开发者ID:wtfcolt,项目名称:game,代码行数:32,代码来源:CharacterTemplateTableDbExtensions.cs

示例8: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IAccountIpsTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["account_id"] = (System.Int32)source.AccountID;
paramValues["id"] = (System.UInt32)source.ID;
paramValues["ip"] = (System.UInt32)source.Ip;
paramValues["time"] = (System.DateTime)source.Time;
}
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:AccountIpsTableDbExtensions.cs

示例9: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IWorldStatsGuildUserChangeTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["guild_id"] = (System.Nullable<System.UInt16>)source.GuildID;
paramValues["id"] = (System.UInt32)source.ID;
paramValues["user_id"] = (System.Int32)source.UserID;
paramValues["when"] = (System.DateTime)source.When;
}
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:WorldStatsGuildUserChangeTableDbExtensions.cs

示例10: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IWorldStatsCountUserKillNpcTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["count"] = (System.Int32)source.Count;
paramValues["last_update"] = (System.DateTime)source.LastUpdate;
paramValues["npc_template_id"] = (System.UInt16)source.NPCTemplateID;
paramValues["user_id"] = (System.Int32)source.UserID;
}
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:WorldStatsCountUserKillNpcTableDbExtensions.cs

示例11: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IGuildTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["created"] = (System.DateTime)source.Created;
paramValues["id"] = (System.UInt16)source.ID;
paramValues["name"] = (System.String)source.Name;
paramValues["tag"] = (System.String)source.Tag;
}
开发者ID:wtfcolt,项目名称:game,代码行数:14,代码来源:GuildTableDbExtensions.cs

示例12: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this ICharacterQuestStatusTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["character_id"] = (System.Int32)source.CharacterID;
paramValues["completed_on"] = (System.Nullable<System.DateTime>)source.CompletedOn;
paramValues["quest_id"] = (System.UInt16)source.QuestID;
paramValues["started_on"] = (System.DateTime)source.StartedOn;
}
开发者ID:mateuscezar,项目名称:netgore,代码行数:14,代码来源:CharacterQuestStatusTableDbExtensions.cs

示例13: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this ICharacterStatusEffectTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["character_id"] = (System.Int32)source.CharacterID;
paramValues["id"] = (System.Int32)source.ID;
paramValues["power"] = (System.UInt16)source.Power;
paramValues["status_effect_id"] = (System.Byte)source.StatusEffect;
paramValues["time_left_secs"] = (System.UInt16)source.TimeLeftSecs;
}
开发者ID:wtfcolt,项目名称:game,代码行数:15,代码来源:CharacterStatusEffectTableDbExtensions.cs

示例14: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this ICharacterTemplateInventoryTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["chance"] = (System.UInt16)source.Chance;
paramValues["character_template_id"] = (System.UInt16)source.CharacterTemplateID;
paramValues["id"] = (System.Int32)source.ID;
paramValues["item_template_id"] = (System.UInt16)source.ItemTemplateID;
paramValues["max"] = (System.Byte)source.Max;
paramValues["min"] = (System.Byte)source.Min;
}
开发者ID:wtfcolt,项目名称:game,代码行数:16,代码来源:CharacterTemplateInventoryTableDbExtensions.cs

示例15: CopyValues

/// <summary>
/// Copies the column values into the given DbParameterValues using the database column name
/// with a prefixed @ as the key. The keys must already exist in the DbParameterValues;
///  this method will not create them if they are missing.
/// </summary>
/// <param name="source">The object to copy the values from.</param>
/// <param name="paramValues">The DbParameterValues to copy the values into.</param>
public static void CopyValues(this IWorldStatsUserConsumeItemTable source, NetGore.Db.DbParameterValues paramValues)
{
paramValues["id"] = (System.UInt32)source.ID;
paramValues["item_template_id"] = (System.UInt16)source.ItemTemplateID;
paramValues["map_id"] = (System.Nullable<System.UInt16>)source.MapID;
paramValues["user_id"] = (System.Int32)source.UserID;
paramValues["when"] = (System.DateTime)source.When;
paramValues["x"] = (System.UInt16)source.X;
paramValues["y"] = (System.UInt16)source.Y;
}
开发者ID:wtfcolt,项目名称:game,代码行数:17,代码来源:WorldStatsUserConsumeItemTableDbExtensions.cs


注:本文中的NetGore类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。