示例#1
0
        void GenerateRandomCommand()
        {
            RandomTestCommand command = new RandomTestCommand();

            command.m_random = m_random_generator.Rand();
            m_combat_client.GetSyncClient().PushLocalCommand(command);
        }
示例#2
0
        public void OnNetworkMessage_SyncCommands(NetworkMessages_SyncCommands msg)
        {
            List <Command> commands = msg.m_commands;

            for (int i = 0; i < commands.Count; ++i)
            {
                m_combat_client.GetSyncClient().PushServerCommand(commands[i]);
            }
        }