/// <summary> /// Adds a Command to this behavior that will be executed on the client and on the server /// </summary> /// <param name="condition"></param> /// <param name="clientExecution">The delegate to the code that will be executed by the client</param> /// <param name="serverExecution">The delegate to the code that will be executed by the server</param> /// <param name="applyServerResult">The delegate to the code that will be executed by all clients in the session when server returns</param> /// <param name="dataType">The Type of the data exchanged between the clients and server</param> /// <param name="dataTransferOptions">Tells how the command orders are transfered throught the network</param> /// <param name="frequency"></param> protected void AddLocalAndServerCommand(Condition condition, Command.ClientCommand clientExecution, Command.ServerCommand serverExecution, Command.ApplyServerCommand applyServerResult, Type dataType, DataTransferOptions dataTransferOptions, ExecutionFrequency frequency) { AddCommand(Command.CreateLocalAndServerCommand(condition, clientExecution, serverExecution, applyServerResult, dataType, dataTransferOptions, frequency)); }
/// <summary> /// Adds a Command to this behavior that will be executed on the client and on the server /// </summary> /// <param name="clientExecution">The delegate to the code that will be executed by the client</param> /// <param name="serverExecution">The delegate to the code that will be executed by the server</param> /// <param name="applyServerResult">The delegate to the code that will be executed by all clients in the session when server returns</param> /// <param name="dataType">The Type of the data exchanged between the clients and server</param> /// <param name="dataTransferOptions">Tells how the command orders are transfered throught the network</param> protected void AddLocalAndServerCommand(Command.ClientCommand clientExecution, Command.ServerCommand serverExecution, Command.ApplyServerCommand applyServerResult, Type dataType, DataTransferOptions dataTransferOptions) { AddCommand(Command.CreateLocalAndServerCommand(clientExecution, serverExecution, applyServerResult, dataType, dataTransferOptions)); }
/// <summary> /// Adds a Command to this behavior that will be executed solely on the client /// </summary> /// <param name="clientCommand">The delegate to the code that will be executed by the client</param> /// <param name="condition"></param> protected void AddLocalCommand(Condition condition, Command.ClientCommand clientCommand) { AddCommand(Command.CreateLocalCommand(condition, clientCommand)); }
/// <summary> /// Adds a Command to this behavior that will be executed solely on the client /// </summary> /// <param name="clientCommand">The delegate to the code that will be executed by the client</param> /// <param name="condition"></param> /// <param name="frequency"></param> protected void AddLocalCommand(Condition condition, Command.ClientCommand clientCommand, ExecutionFrequency frequency) { AddCommand(Command.CreateLocalCommand(condition, clientCommand, frequency)); }
/// <summary> /// Adds a Command to this behavior that will be executed solely on the client /// </summary> /// <param name="clientCommand">The delegate to the code that will be executed by the client</param> protected void AddLocalCommand(Command.ClientCommand clientCommand) { AddCommand(Command.CreateLocalCommand(clientCommand)); }