package action import ( "pro2d/common/components" "pro2d/common/logger" "pro2d/models" "strconv" ) type GmAction struct { } func (gm *GmAction) AddExp(conn components.IConnection, role *models.RoleModel, properties map[string]interface{}) int { logger.Debug(properties) exp, _ := strconv.Atoi(properties["exp"].(string)) role.IncrPropertyChan(conn, "exp", int64(exp)) return 0 }