本文整理汇总了C#中Users.GetSubscriptionManager方法的典型用法代码示例。如果您正苦于以下问题:C# Users.GetSubscriptionManager方法的具体用法?C# Users.GetSubscriptionManager怎么用?C# Users.GetSubscriptionManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Users
的用法示例。
在下文中一共展示了Users.GetSubscriptionManager方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CalculateHCSubscription
public int CalculateHCSubscription(Users.Habbo Habbo)
{
if (Habbo.GetSubscriptionManager().HasSubscription("habbo_club"))
{
return ((int)GoldTree.GetUnixTimestamp() - Habbo.GetSubscriptionManager().method_1("habbo_club").Int32_1) / 2678400;
}
else
{
if (Habbo.GetSubscriptionManager().method_1(Habbo.Id.ToString()) != null)
return (Habbo.GetSubscriptionManager().method_1("habbo_club").Int32_0 - Habbo.GetSubscriptionManager().method_1("habbo_club").Int32_1) / 2678400;
return 0;
}
}
示例2: GetHave
internal static int GetHave(uint AchievementId, Users.Habbo Habbo)
{
switch (AchievementId)
{
case 4:
return Habbo.RespectGiven;
case 6:
return Habbo.Respect;
case 7:
return Habbo.list_3.Count;
case 8:
return Habbo.RoomVisits;
case 10:
return Habbo.GiftsGiven;
case 11:
return Habbo.GiftsReceived;
case 13:
return Habbo.FireworkPixelLoadedCount;
case 14:
return Habbo.PetBuyed;
case 15:
return Habbo.OnlineTime / 60;
case 16:
return Habbo.GetSubscriptionManager().CalculateHCSubscription(Habbo);
case 17:
return Habbo.RegistrationDuration;
case 18:
return Habbo.RegularVisitor;
case 19:
return Habbo.FootballGoalScorer;
case 20:
return Habbo.FootballGoalHost;
case 21:
return Habbo.TilesLocked;
case 22:
return Habbo.StaffPicks;
case 24:
return Habbo.GetMessenger().hashtable_0.Count;
}
return 0;
}