func NewError(message string, id int) ClientError {
	return ClientError{message: message, id: id}
}
NewError creates a new error with a provided message and ID.
package actions
import (
	"errors"
	"github.com/gorilla/websocket"
	"github.com/hewiefreeman/GopherGameServer/core"
	"github.com/hewiefreeman/GopherGameServer/helpers"
)
type CustomClientAction struct {
	dataType int
	callback func(interface{}, *Client)
}
type Client struct {
	action string
	user   *core.User
	connID string
	socket *websocket.Conn
	responded bool
}
type ClientError struct {
	message string
	id      int
}
var (
	customClientActions map[string]CustomClientAction = make(map[string]CustomClientAction)
	serverStarted = false
	serverPaused  = false
)
const (
	ErrorMismatchedTypes    = iota + 1001  
	ErrorUnrecognizedAction                
)
const (
	DataTypeBool   = iota  
	DataTypeInt            
	DataTypeFloat          
	DataTypeString         
	DataTypeArray          
	DataTypeMap            
	DataTypeNil            
)
func New(actionType string, dataType int, callback func(interface{}, *Client)) error {
	if serverStarted {
		return errors.New("Cannot make a new CustomClientAction once the server has started")
	}
	customClientActions[actionType] = CustomClientAction{
		dataType: dataType,
		callback: callback,
	}
	return nil
}