Indiefreaks.Xna.Logic.Command.CreateLocalAndServerCommand C# (CSharp) Method

CreateLocalAndServerCommand() public static method

public static CreateLocalAndServerCommand ( ClientCommand clientCommand, ServerCommand serverCommand, ApplyServerCommand applyServerResult, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions ) : Command
clientCommand ClientCommand
serverCommand ServerCommand
applyServerResult ApplyServerCommand
typeOfDataExchanged System.Type
dataTransferOptions DataTransferOptions
return Command
        public static Command CreateLocalAndServerCommand(ClientCommand clientCommand, ServerCommand serverCommand, ApplyServerCommand applyServerResult, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions)
        {
            return CreateLocalAndServerCommand(null, clientCommand, serverCommand, applyServerResult, typeOfDataExchanged, dataTransferOptions, ExecutionFrequency.FullUpdate60Hz);
        }

Same methods

Command::CreateLocalAndServerCommand ( ClientCommand clientCommand, ServerCommand serverCommand, ApplyServerCommand applyServerResult, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions, ExecutionFrequency frequency ) : Command
Command::CreateLocalAndServerCommand ( ClientCommand clientCommand, ServerCommand serverCommand, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions ) : Command
Command::CreateLocalAndServerCommand ( ClientCommand clientCommand, ServerCommand serverCommand, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions, ExecutionFrequency frequency ) : Command
Command::CreateLocalAndServerCommand ( System.Condition condition, ClientCommand clientCommand, ServerCommand serverCommand, ApplyServerCommand applyServerResult, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions ) : Command
Command::CreateLocalAndServerCommand ( System.Condition condition, ClientCommand clientCommand, ServerCommand serverCommand, ApplyServerCommand applyServerResult, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions, ExecutionFrequency frequency ) : Command
Command::CreateLocalAndServerCommand ( System.Condition condition, ClientCommand clientCommand, ServerCommand serverCommand, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions ) : Command
Command::CreateLocalAndServerCommand ( System.Condition condition, ClientCommand clientCommand, ServerCommand serverCommand, Type typeOfDataExchanged, DataTransferOptions dataTransferOptions, ExecutionFrequency frequency ) : Command

Usage Example

Exemplo n.º 1
0
 /// <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));
 }
All Usage Examples Of Indiefreaks.Xna.Logic.Command::CreateLocalAndServerCommand