public bool QueueInput(Command cmd) { if (canQueueCommands) { NetAssert.True(HasControl); if (CommandQueue.Count < Core.Config.commandQueueSize) { cmd.ServerFrame = Core.ServerFrame; cmd.Sequence = CommandSequence = NetMath.SeqNext(CommandSequence, Command.SEQ_MASK); } else { NetLog.Error("Input queue for {0} is full", this); return(false); } CommandQueue.AddLast(cmd); return(true); } else { NetLog.Error("You can only queue commands to the host in the 'SimulateController' callback"); return(false); } }