예제 #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);
            }
        }
예제 #2
0
 protected override int GetIdentityId()
 {
     //allow modify return value
     return(UserID.ToInt());
 }
예제 #3
0
 public override int GetUserId()
 {
     return(UserID.ToInt());
 }
예제 #4
0
 protected override int GetIdentityId()
 {
     //设置玩家的UserID
     //若要做为全局使用设置类绑定的自定义属性[EntityTable(CacheType.Entity, DbConfig.Config, @TableName, @PeriodTime)]
     return(UserID.ToInt());
 }
예제 #5
0
 protected override int GetIdentityId()
 {
     return(UserID.ToInt());
 }