Beispiel #1
0
        protected override void ProcessCmd(string[] args)
        {
            int abilityId = args.Length > 0 ? args[0].Trim().ToInt() : 0;

            if (abilityId > 0)
            {
                AddUserAbility(abilityId, UserID.ToInt(), 0, 0);
            }
        }
Beispiel #2
0
 protected override int GetIdentityId()
 {
     //allow modify return value
     return(UserID.ToInt());
 }
 public override int GetUserId()
 {
     return(UserID.ToInt());
 }
 protected override int GetIdentityId()
 {
     //设置玩家的UserID
     //若要做为全局使用设置类绑定的自定义属性[EntityTable(CacheType.Entity, DbConfig.Config, @TableName, @PeriodTime)]
     return(UserID.ToInt());
 }
Beispiel #5
0
 protected override int GetIdentityId()
 {
     return(UserID.ToInt());
 }